Advanced Custom Site Status is a WordPress plugin that adds a custom health check endpoint with rate limiting to your WordPress site.
GPL-2.0 License
Advanced Custom Site Status is a WordPress plugin that adds a custom health check endpoint with rate limiting to your WordPress site. This endpoint is specifically designed to check database connectivity, ensuring your WordPress site's database is accessible and responsive. The plugin supports a customizable endpoint slug through a constant, allowing for personalized integration into your WordPress environment.
To install the plugin using Composer, run the following command:
composer require devuri/advanced-custom-site-status
Replace your-vendor
with your actual vendor name on Packagist if you have submitted the plugin there.
advanced-custom-site-status
directory to your WordPress site's wp-content/plugins/
directory.To customize the endpoint slug, define the CUSTOM_HEALTH_CHECK_SLUG
constant in your wp-config.php
file like so:
define('CUSTOM_HEALTH_CHECK_SLUG', 'my-custom-health-endpoint');
If the constant is not defined, the plugin will default to using health-check-site-status
as the endpoint slug.
After installation and activation, the health check can be accessed via the configured slug (or the default slug if not configured). For example:
https://yourdomain.com/my-custom-health-endpoint
This URL will return a JSON response indicating the health status of your WordPress site's database.
Contributions are welcome! Please feel free to submit pull requests or open issues to improve the plugin.
The plugin is licensed under the GPLv2. For more details, see the License URI.