Skip to content

Sends non-PII website information to our monitor for support purposes

License

Notifications You must be signed in to change notification settings

eighteen73/wordpress-beacon

Repository files navigation

Status Beacon for WordPress

This plugin gathers data that's useful for diagnostic checks. Nothing collected is PII nor does it contain information that would be otherwise considered as highly sensitive.

Installation

Using Composer

  1. Run composer require eighteen73/wordpress-beacon
  2. Activate the plugin in your CMS as normal

Once activated it sends data to our monitoring server every 3 hours.

Without Composer

We highly encourage you to install the plugin using Composer where possible. On website's that are not package-managed it can be unzipped into the plugins directory though.

Configuration

Add the following configuration so the plugin knows where to send the data:

define( 'BEACON_URL', 'https://example.com/your/api/endpoint' );

You may also set BEACON_INTERVAL to change the number of seconds between runs (default is 3 hours) and use the filter beacon_headers to adjust the headers sent to the URL above.

Included Data

You can see what information the plugin collects by clicking the "Copy data to clipboard" on the Plugins page. This puts the exact JSON that is sent to our server into your clipboard.

Data it includes things like the WordPress version, a list of running plugins and their versions, hosting data (server version, PHP version, etc.), and the Git repo information if applicable

Here is an example of the compiled data:

{
  "cms": {
    "contact": "[email protected]",
    "name": "wordpress",
    "version": "6.0"
  },
  "theme": {
    "name": "Pulsar",
    "uri": "https://github.com/eighteen73/pulsar",
    "version": "0.1.0"
  },
  "plugins": [
    {
      "active": true,
      "name": "nebula-autoloader",
      "title": "Nebula Autoloader",
      "uri": "https://github.com/eighteen73/nebula/",
      "version": "0.1.0"
    },
    {
      "active": true,
      "name": "wordpress-beacon",
      "title": "eighteen73 Beacon",
      "uri": "https://github.com/eighteen73/wordpress-beacon",
      "version": "1.0.0"
    },
    ...
  ],
  "technical": {
    "git": {
      "last_commit_date": "Sat Jun 11 12:00:51 2022 +0100",
      "origin": "[email protected]:path_to/gitrepo",
      "path": "/local/path/to/gitrepo"
    },
    "os": {
      "architecture": "x86_64",
      "hostname": "example.com",
      "name": "Linux",
      "version": "4.15.0-167-generic"
    },
    "php": {
      "composer-dev": true,
      "interface": "fpm-fcgi",
      "version": "8.0.15"
    },
    "web": {
      "domain": "website.example.com",
      "https": true,
      "ip": "127.0.0.1",
      "path": "/local/path/to/gitrepo/web",
      "protocol": "HTTP/2.0",
      "server": "nginx/1.21.6",
      "url": "https://website.example.com"
    }
  }
}

About

Sends non-PII website information to our monitor for support purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages