Descrição
PressVitals Site Auditor is a headless-first diagnostic engine. It runs a
suite of read-only probes across performance, security, deliverability and
database health, assigns each a severity tier, rolls them up into a worst-of
verdict, and exposes the result where automation can actually consume it: a
token-gated REST report, a daily cron with email alerts, and a categorized admin
dashboard.
Battle-Tested in Production:
Verified and continuously tested across real-world hosting architectures, including
managed cloud platforms (IONOS Cloud WAAS) and traditional shared hosting (HostGator cPanel),
guaranteeing accurate diagnostics without false alarms across decoupled PHP runtimes (Web/FPM vs. CLI/Cron).
It is dependency-free — no WooCommerce, no page builder, no other plugin
required — and pluggable: every probe is registered through a filter, so the
60+ built-in probes are just the starting point. The architecture is designed
to scale; register your own via pvsa_registered_checks.
How is this different from the built-in Site Health?
WordPress core’s Tools Site Health is excellent, but it is an on-demand,
admin-only tool: you open a screen, it runs its status tests, and the Debug tab
prints a static environment dump for support. PressVitals is built for a different
job — continuous, automated, machine-readable monitoring and auditing:
- Headless / API-first. Core Site Health has no public report API. PressVitals
exposes a no-auth/pingliveness probe and a token-gated/reportJSON
endpoint (HTTP 503 on a failing verdict) so an external uptime monitor,
status page, or CI pipeline can read site health without logging in. - Scheduled + alerting. Core never runs on a schedule and never tells you
when something breaks. PressVitals runs daily via WP-Cron and emails the admin
when the verdict is fail. - Severity tiers + worst-of verdict. Core labels results good/recommended/
critical. PressVitals assigns each probe a 1–5 severity tier and computes a
single rolled-up verdict suitable for a green/red status signal. - Probes core does not have. TLS certificate-expiry countdown (core only
checks that HTTPS works today), PHP micro-patch security advisory auditing
(against active CVEs like PHP2Shell CVSS 9.2 RCE), PHP runtime hardening
(expose_php,disable_functions,allow_url_include),.env/secret-file
web exposure, a web-root stray-backup scanner, baseline security headers,
forced-HTTPS redirect, XML-RPC exposure, default-admin-username detection,
SPF + DMARC email-DNS records, homepage indexability, and database-bloat
(expired transients / revisions / spam) checks. - Pluggable + configurable. Core’s tests are fixed. PressVitals lets any plugin
or theme register probes via a filter and tune every threshold via filters.
Think of it as the layer on top of Site Health: the same read-only philosophy,
re-pointed at automation, alerting, and security/ops auditing.
Built-in probes
PressVitals ships 60 built-in probes, grouped by functional category:
- Availability — database connectivity, homepage HTTPS reachability, maintenance mode not stuck.
- Security — PHP runtime hardening (expose_php, high-risk disable_functions, allow_url_include),
.env not web-accessible (HTTP) and not exposed on disk, web-root stray/backup file scan,
TLS certificate expiry, baseline security headers, forced HTTPS, XML-RPC exposure,
no defaultadminuser, wp-config.php permissions, user-enumeration exposure,
debug.log public exposure, default table prefix detection, PHP execution blocked in uploads,
password hashing algorithm modernization (bcrypt vs MD5). - Errors — error-log size, recent PHP fatal errors.
- Database — core tables present, non-core/orphaned tables, autoloaded-options
size, heavy autoloaded options (> 100 KB), core table index health (PRIMARY keys),
postmeta orphans, table collation, DB client charset, database bloat (revisions, trashed posts). - Files — free disk space, uploads-directory writability, recent backup recency.
- Email — SPF + DMARC DNS records for the sending domain.
- SEO — homepage is indexable (not noindex).
- Performance — PHP memory limit, persistent object cache, OPcache status and hit rate,
WP-Cron HTTP loopback spawn, development mode off in production, modern image format support (WebP/AVIF). - Environment — supported PHP version & micro-patch security advisories (against active critical CVEs),
WordPress core update available, plugin updates pending, theme updates pending,
inactive plugins/themes count, environment type is production.
Extend it with your own checks
Probes are not hardcoded — the engine collects them from a filter, so any plugin
or theme can register its own:
add_filter( 'pvsa_registered_checks', function ( array $checks ) {
$checks['my_queue_backlog'] = array(
'label' => 'Job queue backlog',
'group' => 'Performance',
'tier' => 2,
'callback' => function () {
$pending = my_count_pending_jobs();
return $pending > 1000
? array( 'status' => 'warn', 'detail' => "$pending jobs pending" )
: array( 'status' => 'pass', 'detail' => "$pending jobs pending" );
},
);
return $checks;
} );
A callback returns array( 'status' => 'pass'|'warn'|'fail', 'detail' => '…' ).
Developer filters
pvsa_registered_checks— register/override probes.pvsa_setting_{key}— override a stored threshold at read time.pvsa_alert_email— change the failure-alert recipient.pvsa_http_timeout,pvsa_disk_free_min_bytes,pvsa_memory_min_bytes,
pvsa_fatal_lookback_hours,pvsa_fatal_scan_max_bytes— tune environment probes.pvsa_ssl_warn_days,pvsa_ssl_fail_days— TLS expiry thresholds.pvsa_backup_warn_days,pvsa_backup_fail_days— backup-recency thresholds.pvsa_last_backup_timestamp— report your last successful backup time (UNIX) so
the backup probe works with any backup plugin, host, or off-site service.pvsa_backup_plugins— list of backup-plugin basenames recognised by presence.pvsa_max_expired_transients,pvsa_max_revisions,pvsa_max_spam_comments—
database-bloat thresholds.pvsa_known_tables— full table names to treat as expected (silences the
non-core/orphaned-tables probe for legitimate plugin tables).pvsa_orphan_tables_warn— non-core table count above which the probe warns.pvsa_sending_domain— domain used for the SPF/DMARC lookup.
Compatibility
PressVitals has no plugin dependencies and runs on virtually any WordPress
install — single-site or multisite, with or without WooCommerce, page builders,
or a backup plugin. It calls only core WordPress APIs and guards every optional PHP
function (disk_free_space, stream_socket_client/OpenSSL, dns_get_record,
WP_Filesystem), degrading a probe to a neutral pass/skip when something isn’t
available rather than erroring. The backup probe is backup-agnostic: it reads
UpdraftPlus directly, recognises other common backup plugins, and lets any other
backup solution (including host-level backups) report in via
pvsa_last_backup_timestamp.
Development
Two local workflows are scaffolded (both Docker-based; neither ships in the
package):
Automated tests — wp-env (recommended): requires Docker + Node.js.
npm -g install @wordpress/env, then wp-env start and
wp-env run tests-cli –env-cwd=wp-content/plugins/pressvitals-site-auditor vendor/bin/phpunit.
Switch versions by editing core / phpVersion in .wp-env.json and running
wp-env start –update. Without Docker, run the suite the classic way:
composer install, bin/install-wp-tests.sh wordpress_test root '' localhost,
composer test. A GitHub Actions workflow runs PHPUnit across PHP
7.4 / 8.0 / 8.2 / 8.3.
Manual multi-version testing — docker-compose: docker compose up -d boots
three browsable installs at fixed WordPress x PHP combos (WP 6.7/PHP 8.3,
WP 6.4/PHP 8.1, WP 6.3/PHP 7.4) on ports 8083 / 8081 / 8074, each with the plugin
mounted. See docker-compose.yml for details.
Instalação
- Upload the
pressvitals-site-auditorfolder to/wp-content/plugins/, or install
it from the Plugins screen. - Activate the plugin through the Plugins menu in WordPress.
- Go to Tools PressVitals Site Auditor to view the report and configure
thresholds. - (Optional) Copy the probe URL shown on that page into your external uptime or
CI monitor.
Perguntas frequentes
-
Does it replace the built-in Site Health?
-
No — it complements it. Site Health is the on-demand, admin-facing status screen;
PressVitals adds headless REST reporting, scheduled monitoring with email alerts,
severity tiers, and security/ops audit probes that core does not run. -
Does it require WooCommerce or any other plugin?
-
No. It runs on any standard WordPress install with no dependencies.
-
Is the report endpoint safe to expose?
-
/report requires either a logged-in administrator or a secret token compared
withhash_equals(). Rotate the token any time from the settings page./ping
returns only a tiny liveness payload with no sensitive data. -
Does it write to my database or files?
-
The probes are read-only. The plugin stores only its own options (settings, last
report, token) and reads log files solely from standard WordPress locations. -
Is it tested?
-
Yes. It ships with a PHPUnit suite built on the WordPress core test framework
(WP_UnitTestCase) covering the check registry, the worst-of verdict aggregation,
defensive execution of a throwing/malformed check, the settings filters, the
backup-recency filter, and the REST routes (public/ping, token-gated/report,
and the 503-on-fail behaviour). Tests run in CI and locally viacomposer test
(seebin/install-wp-tests.sh); they are excluded from the distributed package and
never run on a live site. Activation performs only a lightweight requirements gate
(PHP version + engine load), not the test suite.
Avaliações
Não há avaliações para este plugin.
Colaboradores e desenvolvedores
“PressVitals Site Auditor” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.
ColaboradoresTraduzir o “PressVitals Site Auditor” para seu idioma.
Interessado no desenvolvimento?
Navegue pelo código, consulte o repositório SVN ou assine o registro de desenvolvimento por RSS.
Registro de alterações
1.5.4
- Fix: Differential runtime diagnosis for decoupled Web (Apache/FPM) vs CLI/WP-Cron environments. Distinguishes between web-facing PHP and system crontab/CLI binaries, preventing false positive EOL alerts when hosting defaults to legacy system CLI while running modern Web PHP.
- Enhancement: Added automatic web runtime PHP version detection and caching via transients (
pvsa_web_php_version) with fallback HTTP header inspection (X-Powered-By). - Developer: Added
pvsa_detected_web_php_version,pvsa_current_php_version, andpvsa_is_cli_or_cronfilters for granular diagnostic and testing overrides.
1.5.3
- New probe: PHP runtime hardening (php_hardening) — audits critical php.ini directives: expose_php version disclosure in HTTP headers, allow_url_include, and unconstrained high-risk execution functions (exec, shell_exec, system, proc_open, popen).
- Enhancement: Evolved php_version with granular micro-patch security advisory auditing against active critical CVEs (such as PHP2Shell CVE-2026-109618 / CVE-2026-109619 CVSS 9.2 unauthenticated RCE).
- Feature: Remote security advisory synchronization (PVSA_Security_Feed) via daily WP-Cron, caching via WordPress transients with resilient local offline fallback.
- Milestone: Built-in proactive diagnostic probes expanded to 60.
1.5.2
- Feature: Onboarding & Quick Start card in admin dashboard for frictionless first-run experience.
- Feature: Direct Dashboard and Settings navigation action links in WordPress Plugins list.
- Feature: Autonomous background monitoring status badge with next scheduled audit countdown and alert destination.
- Feature: Non-intrusive community review prompt to gather ratings on WordPress.org with permanent dismissal option.
- Optimization: Refreshed search tags and updated probe count documentation for improved directory discoverability.
1.5.1
- New probe: Password hashing algorithm modernization — scans wp_users to identify accounts retaining legacy MD5 (phpass) hashes, prompting migration to modern bcrypt hashing (introduced in WordPress 6.8+).
- New probe: Modern image format support — verifies active image editor (Imagick/GD) supports WebP and AVIF (WordPress 6.5+) to protect Core Web Vitals (LCP).
- Confirmed compatibility with WordPress 7.1.2.
- Total built-in probes increased from 50 to 52.
1.5.0
- New probe: Maintenance mode not stuck — inspects .maintenance file in WordPress root and flags outages exceeding 10 minutes.
- New probe: Development mode off in production — audits WP_DEVELOPMENT_MODE to prevent core caching disablement for theme.json, block templates, and translations.
- New probe: Environment type is production — validates WP_ENVIRONMENT_TYPE against production mode to prevent debug leakage and staging behavior.
- New probe: Custom database table prefix — warns on default “wp_” table prefix to harden against automated blind SQL injection attacks.
- New probe: PHP execution blocked in uploads — audits .htaccess policy and web server configuration to verify .php scripts cannot execute inside wp-content/uploads.
- Total built-in probes increased from 45 to 50.
1.4.0
- New probe: debug.log HTTP exposure audit — verifies error logs containing sensitive stack traces are not web-accessible.
- New probe: Large individual autoloaded options scanner (warns on single option rows >= 100 KB).
- New probe: Post revisions and trashed posts/comments accumulation auditor.
- New probe: WP-Cron HTTP loopback spawn health check.
- New probe: Zend OPcache status, hit rate, and memory utilization audit.
- Total built-in probes increased from 40 to 45.
1.3.0
- New probe: Expired transient bloat detection with configurable warn/fail thresholds.
- New probe: PHP execution limits (max_execution_time and max_input_vars) audit.
- New probe: Core table index health — verifies PRIMARY keys on all WordPress core tables.
- New probe: Orphaned post metadata detection (wp_postmeta rows without matching wp_posts).
- Total built-in probes increased from 36 to 40.
1.2.6
- Initial WordPress.org SVN release: includes directory branding assets (icons, banners) and automated SVN deployment CI pipeline.
1.2.5
- Documentation updates including the LLM Wiki addition for AI agents.
1.2.4
- Phase 4 CI complete: Expanded unit tests for network and DB probes, WP version matrix, and added strict PHPCS & Plugin Check CI gates.
1.2.3
- Phase 3 UX complete: Added Run Now button, JSON/CSV exports, and Slack webhook alert channel support.
1.2.2
- Add composer make-pot script and sample Spanish (es_ES) locale translation.
1.2.1
- Phase 1 of engineering roadmap complete: data migrations and GitHub update checker implemented.
1.2.0
- Implement the final P3 probes: https_mixed_content and rest_api_reachable.
enumeration exposure (?author=N+ REST users), and non-core/orphaned database
tables (filterable viapvsa_known_tables/pvsa_orphan_tables_warn). Total
built-in probes: 29.
1.1.0
- Add 3 security/database probes:
.envfile detected on disk (with permission
check), wp-config.php permissions, and core database tables present. Total
built-in probes: 25.
1.0.0
- Initial release: pluggable probe engine (
pvsa_registered_checksfilter), 22
built-in probes across performance, security, deliverability and database
health, categorized admin report with summary box, daily cron with email
alerts, severity tiers with a worst-of verdict, and/ping+ token-gated
/report REST endpoints.
