Health Monitor

By twohourssleep

40+ active installationsVersion 1.4.12

Health Monitor is designed to help you keep your website running smoothly. It continuously checks your site’s performance, security, and overall healt …

Description

Health Monitor is designed to help you keep your website running smoothly. It continuously checks your site’s performance, security, and overall health by:

  • Monitoring Page Performance: Ensures your website loads quickly by checking page speed and performance scores.
  • Validating System Settings: Confirms that important WordPress settings, such as security salts and automatic update configurations, are in place.
  • Checking for Errors: Tracks potential issues like logged errors and file permissions, so you can quickly address them. Keeping Your Site Updated: Works with WordPress update APIs to validate plugin and theme versions, ensuring compatibility and optimal performance.

With these automated checks, Health Monitor provides clear insights and notifications to help you maintain a healthy and secure website—all without sending any personal or sensitive data externally. Enjoy peace of mind knowing your website’s well-being is always being watched over.

External Services

  1. AUTHOR / SUPPORT WEBSITE
  • Service: Two Hours Sleep Website (https://twohourssleep.com/)
  • Purpose: Provides users with plugin support, documentation, and updates.
  • Data Sent: The plugin does not automatically send or transmit any user data or usage information to the website. The URL is presented solely as a reference for support.
  • Terms of Service & Privacy Policy: Please review the relevant policies on the website if applicable.(https://www.twohourssleep.com/privacy-policy/)
  1. OTHER EXTERNAL CONNECTIONS
    • Google APIs – Page Speed API (https://www.googleapis.com/pagespeedonline, https://www.google.co.uk)

    • Purpose: To check page performance metrics.
    • Data Sent: The URL and minimal performance request details.
    • Conditions: Called when page speed data is required; subject to Google’s privacy policy.
    • URLs:
      • https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=[url]&category=pwa&category=performance&category=accessibility&category=best-practices&category=seo ([url] generated dynamically)
    • Terms of use: https://developers.google.com/terms
    • Privacy policy: https://developers.google.com/terms/api-services-user-data-policy

    • WordPress APIs (https://api.wordpress.org)

    • Purpose: To validate plugin updates and retrieve related information.
    • Data Sent: Plugin version and site URL.
    • Conditions: Accessed during update checks; no personal user data is sent.
    • URLs:
      • https://api.wordpress.org/core/version-check/1.7/
      • https://api.wordpress.org/plugins/info/1.0/[plugin_slug].json ([plugin_slug] generated dynamically)
      • https://api.wordpress.org/plugins/info/1.0/woocommerce.json
    • Terms/Privacy: https://wordpress.stackexchange.com/legal/api-terms-of-use

    • cURL (https://curl.se)

    • Purpose: Used as a tool to handle HTTP requests to various external APIs.
    • Data Sent: None, this checks the latest version of curl
    • Conditions: Utilized when external HTTP connections are required; follows standard security practices.
    • URLs:
      • https://curl.se/download.html
    • Terms/privacy: https://curl.se/docs/whodocs.html

    • MySQL (https://dev.mysql.com)

    • Purpose: To handle database interactions.
    • Data Sent: None.
    • Conditions: Operates under standard database connection protocols and security guidelines.
    • Terms: https://www.oracle.com/legal/terms/?er=221886
    • Privacy: https://www.oracle.com/legal/privacy/

    • Two Hours Sleep Shop (https://shop.twohourssleep.com)

    • Purpose: Linked from the plugin for product offerings and support.
    • Data Sent: None. The plugin makes no request to the shop.
    • Conditions: Linked only. As of 1.4.5 the plugin no longer queries the shop’s subscription
      API; nothing is transmitted unless the user follows a link.
    • Terms: https://shop.twohourssleep.com/terms-and-conditions/
    • Privacy: https://shop.twohourssleep.com/privacy-policy/

    • PHP Official Website (https://php.net)

    • Purpose: To provide users with up-to-date PHP documentation and language resources.
    • Data Sent: None, this is used to obtain the latest php version.
    • Conditions: Accessed only as an informational resource for best practices and compatibility references.
    • Terms/Privacy: https://www.php.net/privacy.php

FAQ

How does the plugin improve my site?

It monitors page speed performance, validates important system settings (like security salts and update configurations), and checks for errors so potential issues are flagged for quick resolution.

Does Health Monitor transmit any personal data?

No, it only transmits minimal, non-sensitive data necessary for performance and error checking. No confidential information is shared.

Do I need to manually run checks?

No. Health Monitor uses automated background tasks to continuously perform checks, so you don’t need to trigger them manually.

What external services does the plugin interact with?

It interfaces with services like Google PageSpeed API and WordPress APIs to gather performance metrics and validate updates—ensuring your site remains optimized and secure.

Screenshots

Changelog

1.4.12

Bugfix:
* Saving one settings tab no longer changes another tab’s settings. Saving the Settings or Lighthouse tab
used to switch notification emails off, and the Notifications checkbox now starts unticked until you
save it, instead of appearing already on.
* Saving the Lighthouse tab without editing the page list no longer replaces your pages with the word
“Array”, which the daily Lighthouse run then tested as a page of your site. A site that already has
“Array” in its page list has it removed on this update.
* Deactivating the plugin keeps your Lighthouse score history and settings, and stops its scheduled tasks.
Its scores, settings and scheduled tasks are removed only when you delete it, and not when you delete a
second copy while this one is active.
* A health check that throws an error is now reported as a failed check, not a fatal error on the page.
* The “Not recommended plugin” warning now matches the plugins on its list, and the list is cut to the two with a checkable reason: known malware (wp-vcd) and a plugin WordPress.org closed for security (yuzo-related-post).
* The Lighthouse page selector only accepts the pages you have configured.

1.4.11

Security:
* Every Health Monitor AJAX endpoint now checks that the user can manage options, as well as a nonce,
and refuses with a 403 otherwise. Before, any logged-in user could call the report endpoints.
* The unused site scan was removed, including its AJAX endpoint, which let any logged-in user make the
site fetch a URL of their choosing.
* The Lighthouse refresh endpoint is no longer open to logged-out visitors and checks a nonce.
* The page address sent to Google’s PageSpeed API is now URL-encoded.
* Health Monitor’s scripts and their security tokens now load only on its own admin pages, not on every
wp-admin page.

1.4.10

Bugfix:
* cURL version judges the server’s operating system, which provides and patches cURL, by its support
dates. A supported Ubuntu or Debian no longer reads Critical for keeping an older cURL; an operating
system past end of life does, and one within six months of it reads Recommended improvements.

1.4.9

Bugfix:
* Logged Errors judges the last seven days of the debug log, not every error it still holds. One
old fatal error no longer reads Critical for as long as the log is kept.

1.4.8

Bugfix:
* WP-Cron switched off by a host that runs scheduled tasks itself (GoDaddy Managed WordPress, for
one) no longer shows as Critical. It is Critical only when tasks are also overdue, so nothing is
running them.

1.4.7

Bugfix:
* PHP and database versions are judged by whether they still get security fixes, not by how far
they are behind the newest release. A supported PHP, MySQL LTS or MariaDB no longer shows as
Critical; one past end of life does, with the date.
* MariaDB is recognised as MariaDB instead of being compared against MySQL.
* cURL shows as Critical only when a whole major version behind.
* Version information is fetched with certificate checks on.

1.4.6

Bugfix:
* Error counts are correct again on sites with a very large debug.log. The log is now read line by
line, so its size no longer matters, and a log too large to read no longer exhausts PHP memory
and stops the whole report.
* A debug.log that cannot be read is no longer reported as Good. It now shows as a recommended
improvement, with the reason.
* Fixed a PHP notice on every Lighthouse score read for the home page.
* Database upgrades are now retried if they fail, instead of being recorded as done.

1.4.5

Bugfix:
* Fixed two database errors written to the log on every new install. The plugin tried to update its
Lighthouse score tables before it had created them.

Security:
* Removed API credentials that were included in the plugin source. Every release from 1.2.0 to
1.4.3 contained a key and secret for the Two Hours Sleep shop, which meant they were readable by
anyone with a copy of the plugin. They have been removed and revoked. No credential ships with
the plugin.
* The plugin no longer contacts the shop’s subscription API. Whether Health Monitor Premium is
installed is now determined locally, which is all the free plugin ever needed to know. The
External Services notice has been updated to match: no data is sent to the shop.

1.4.4

Bugfix:
* Fixed “Undefined array key 2” warning in status validators.
* Updated debug mode validation to correctly handle “Enabled (Display Off)” status.
* Updated file editing validation to report “Good” status when enabled.

1.4.3

Bugfix:
* Fixed bug preventing data being sent to the montership.

1.4.2

Bugfix:
* Fixed Ajax loading sections on all areas of the admin.

1.4.1

Tweak:
* Changed title from THS Audit to “Health Monitor”

Bugfix:
* Fixed “Note” field from appearing on other tabs than settings
* Fixed bug where database update didn’t run on previous release

1.4.0

Bugfix
* Lighthouse report table wasn’t updating with the most recent report.

Feature:
* Add settings tab for lightspeed options
* Add dropdown to select page on lightspeed section
* Add option to run light speed on multiple pages

Feature:
* Added XML-RPC Check

Feature:
* Enhanced the plugin validator to account for auto-updating plugins

Tweak:
* Added a new column to the plugins table to display the last updated date.

1.3.1

Bugfix:
* Fix for dashboard icon not appearing.

1.3.0

Changes:
* Add support for premium plugin

1.2.0

Changes:
* Release of Health Monitor