DIAGNOSE TREAT PROTECT
One engine runs all four pillars
SiteHealth covers four systems on your site: Get found (SEO and discoverability), Run clean (media, email, hygiene), Prove it (reporting and support), and Stay safe (security). One engine drives all four, and it runs the same three phases regardless of which pillar a given check belongs to.
- Diagnose. The Googlebot-view scanner walks your site as Google sees it and parses the rendered HTML, and the same diagnostic eye reaches into your media library, your email setup, and your sitemaps.
- Treat. Hub-delivered fix code applies real changes into your own database, snapshotted first so any treatment rolls back in one click.
- Protect. Your subscription keeps fix code and threat signatures current from the Hub, so the protection you pay for each month covers the latest attacks and ailments we know about, not just the ones that existed the day you installed.
The architecture below is the machinery that makes that loop work across every pillar.
How SiteHealth works under the hood
SiteHealth is the complete care system for your WordPress site: SEO, media, email, crawlability, and a built-in immune system, all running on one Diagnose, Treat, Protect loop. It runs as a local plugin on your site that talks to a central Hub for fix-code bundles, AI generation, and license validation. Everything below explains what runs where, what data crosses the boundary, and the security controls on every hop.
HUB AND SPOKE
Local scanner, central fix delivery
SiteHealth's two-tier design separates the work that has to run on your site from the work that benefits from running centrally.
On your site (the Spoke): the local scanner that fetches each page over HTTP and parses the rendered HTML, the local fix executor that applies postmeta writes against your active SEO plugin, the local debug log, and the local settings surfaces. All operator-facing screens are on your site so the plugin keeps reporting state even when the Hub is unreachable.
On the Hub: the fix-code bundle (so we can ship new detection and treatment rules without forcing a plugin update), the AI generation proxy (so the AI provider key never lives on your site), license validation, and the OAuth token exchange that gates bundle fetches.
WHY 72 / 24
24 hour refresh keeps you current, 72 hour TTL is a cancellation grace period
SiteHealth caches the fix code bundle in a WordPress transient with a 72 hour TTL. Past a 24 hour refresh threshold the plugin schedules a background re-fetch on the next request. The two windows do different jobs.
The 24 hour refresh threshold keeps your bundle current. New fixes and detection rule updates ship continuously from the Hub. As long as your subscription is active and the Hub can verify it, the refresh succeeds and your site picks up new fixes within roughly a day of release. No plugin update required.
The 72 hour TTL is a cancellation grace period. When a subscription ends, the next 24 hour refresh attempt fails verification, and the bundle keeps serving the cached fixes for the remaining 48 hours until the TTL expires. That gives the operator a graceful window to finish their last batch of fixes or reactivate without losing mid-flight work. After the 72 hour TTL the bundle drops, fix execution pauses, and the plugin falls back to detection only.
PAYLOAD INTEGRITY
HMAC-SHA256 on every fix code bundle
Every fix code bundle the Hub delivers to your site is signed with HMAC-SHA256 using a per-license signing secret. The Spoke verifies the X-Bundle-Signature header against the raw response body before any bundle data is parsed. A bundle with a mismatched signature gets rejected and the cached bundle keeps running.
The signing secret is provisioned during license activation. Strict mode is in force: an empty signing secret on the client, a missing X-Bundle-Signature header on the response, or a mismatched HMAC all hard-reject the bundle. Each individual fix also carries its own SHA-256 code hash that the Spoke re-verifies inside the executor immediately before eval, so a tampered cache cannot bypass the signature gate either.
The Hub also stamps each bundle with an issued_at timestamp; bundles older than one hour or with a timestamp more than five minutes in the future are rejected as stale or skewed.
SCAN MODE
Fetch the rendered HTML, not just the database
SiteHealth's scanner fetches each page over HTTP and parses the rendered HTML. That matters because most SEO plugins evaluate page state by reading the database only. Reading the database misses everything a theme template, page builder, or third-party plugin injects, mutates, or suppresses at render time.
When SiteHealth needs to scan a post that hasn't been crawled, it also expands shortcodes through the LinkChecker helper so xyz-ihs menus, Fusion containers, Elementor widgets, and similar dynamic content surface in the analyzed body. The scanner identifies itself with the SiteHealth user-agent so server logs and analytics can distinguish its traffic from real visitors.
COEXISTENCE
A registry driven mu plugin handles the known clashers
A handful of WordPress themes emit their own title filters and meta tag blocks even when an SEO plugin is active, which creates duplicate or conflicting tags in the head. The current registry covers Bridge (Qode), Divi, Avada, dt-the7, Jupiter, Hello-Elementor, and Hello-Biz.
SiteHealth ships a must-use plugin (theme-suppression-mu-source.php) that PluginActivator copies into wp-content/mu-plugins on plugin activation. The mu-plugin walks $wp_filter on the wp hook, finds the specific theme callback registered on pre_get_document_title or wp_head, and unsets it before it runs. Each registry entry targets exactly one filter and one priority; nothing else is touched.
A second registry in the same mu-plugin emits viewport and charset meta tags on themes that omit them from header.php, with a theme blocklist that prevents duplicate emission on themes that already ship them.
REVERSIBILITY
Every fix snapshots the prior value before writing
Every fix handler in SiteHealth writes the prior value to a _sitehealth_<field>_prior postmeta key before overwriting the target field on the active SEO plugin's postmeta. Canonical fixes, for example, snapshot _sitehealth_canonical_prior plus matching _legacy_prior keys for any legacy SiteHealth state on the post.
Rollback restores the prior value, deletes the _prior key, and leaves the post in its original state. The pattern is uniform across handlers so the same restore path works regardless of which SEO plugin owns the field. No fix is final.
AI USAGE
Deterministic first, AI only when needed, scoped per page
Most SiteHealth fixes run as plain deterministic code. The AI proxy fires only when deterministic code cannot reach the problem, typically for title generation, meta description generation, alt text generation, anchor text suggestions, and internal link validation. Each AI path has its own typed Hub endpoint (/ai/generate-title, /ai/generate-description, /ai/generate-alt-text, /ai/generate-anchor, /ai/validate-link).
When AI fires, the Spoke sends a per-page payload to the Hub: the relevant page_data fields for the active prompt type. The Hub builds the prompt server-side and forwards to the AI provider, which keeps the provider API key off your site entirely. AI access also requires the ai_fixes feature flag on your license tier.
PRIVACY
What the Hub sees, what stays local
The Hub sees: your license key (for activation and validation), the per-license signing secret (for HMAC bundle signature verification), the OAuth token exchange used to fetch fix bundles, and the per-page payload during AI invocations (only the fields the active AI endpoint requires).
The Hub does not receive: your full site content, your user list, your form submissions, your media library, your private postmeta, or any data from pages other than the one being actively processed by an AI endpoint.
The split is deliberate. Anything we do not strictly need to deliver the service stays on your server.