WP Manifestindependent plugin directory
manifest / developer / mu-health-check

MU – Health Check

Exposes a /_health endpoint for uptime monitoring.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/marshallu/mu-health-check/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Exposes a /_health endpoint for uptime monitoring on Marshall University's WordPress sites.

  • Package: marshallu/mu-health-check
  • Type: WordPress plugin

Installation

Composer Installation

composer require marshallu/mu-health-check

Composer will install the plugin to wp-content/plugins/mu-health-check/. Activate it from the WordPress admin or via WP-CLI:

wp plugin activate mu-health-check

Usage

Once activated, the plugin exposes a health check endpoint at:

https://yoursite.com/_health

Response

Success (HTTP 200):

{"status": "ok", "db": true}

Failure (HTTP 500):

{"status": "error", "db": false}

The endpoint performs a simple database connectivity check by executing SELECT 1.


Development

# Install dev dependencies
composer install

# Check coding standards
composer run lint

# Auto-fix coding standards violations
composer run format

# Run static analysis
composer run analyse

All code follows WordPress Coding Standards.


File Structure

mu-health-check/
├── mu-health-check.php    # Plugin entry point
├── composer.json          # Package definition & dev dependencies
├── phpcs.xml              # PHP CodeSniffer configuration
├── phpstan.neon           # PHPStan configuration
└── README.md              # Documentation