跳到内容

NPC Maintenance Inspector

v1.0.6

npc01 · 2026年5月14日 上架

WordPress maintenance health-check tool with 9-point diagnostics, history tracking, and optional AI-powered reports.

正在使用
20+
评分
暂无
累计下载
1,826
最近更新
2026年11月14日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

Dashboard with the latest diagnosis result and overall grade.
Dashboard with the latest diagnosis result and overall grade.
9-point health check cards (WP Core / Plugins / Site Health / PHP / Error Log / File Integrity / Suspicious Files / SSL / Permissions).
9-point health check cards (WP Core / Plugins / Site Health / PHP / Error Log / File Integrity / Suspicious Files / SSL / Permissions).
Diagnosis history accordion with per-entry download.
Diagnosis history accordion with per-entry download.
Settings — security and bound site URL.
Settings — security and bound site URL.
Settings — automatic diagnosis and email notification.
Settings — automatic diagnosis and email notification.
Settings — AI report feature configuration.
Settings — AI report feature configuration.
AI report rendered with severity badges.
AI report rendered with severity badges.
Suspicious files card with safe-by-default whitelist behavior.
Suspicious files card with safe-by-default whitelist behavior.

NPC Maintenance Inspector performs 9-point health diagnostics on your WordPress site directly from the admin dashboard:

  1. WordPress core updates — Detect missing core updates.
  2. Plugin updates — List plugins with available updates.
  3. Site Health issues — Extract critical issues from WP standard Site Health API.
  4. PHP version — Check whether a newer security release of the server’s PHP branch is out, and whether the branch still receives official security fixes (both from php.net).
  5. Error log analysis — Summarize debug.log entries and save a one-click backup to uploads/ for safe review.
  6. File integrity — Detect suspicious code patterns in core files (eval / base64_decode / etc.) by comparing checksums against the WordPress.org Checksum API.
  7. Suspicious files — Find unexpected PHP files in wp-content/uploads/, with built-in whitelist for known legitimate plugin files (Ajax Load More templates, WP STAGING index.php, AIOS firewall rules, etc.).
  8. SSL certificate — Check days until expiration (warn under 30 days, critical at 0).
  9. File permissions — Check critical files like wp-config.php, .htaccess, wp-content/.

Operational features:

  • History — Keep the last 10 diagnoses as a custom post type.
  • Scheduled auto-check — Run daily, weekly, or monthly via WP Cron.
  • Email notifications (automatic diagnosis) — Send alerts only on critical issues.
  • PHP security release alerts — Once a day, email when a security release of the server’s PHP branch is not applied yet, or when official security fixes for the branch have ended (each once, plus one reminder if nothing changes after 7 days), and when php.net could not be checked for 7 days. On by default; can be turned off in Settings.
  • One-click debug.log backup — Save a copy of debug.log without modifying the original.
  • Optional AI report — Generate maintenance suggestions via Anthropic Claude API. Disabled by default; opt-in via a wp-config.php constant.

The plugin is locked to the user who activated it and to the original site URL, so it stays inert after backup restores to a different domain.

External services

This plugin contacts four external services (two of them on php.net).

  1. WordPress.org Checksums API (https://api.wordpress.org/core/checksums/1.0/) — every diagnosis (manual or scheduled). The File Integrity check downloads the official checksums for the installed WordPress version to compare them with the core files on your site. Sent: the WordPress version and the site locale as URL parameters (if no checksums exist for the locale, the request is repeated with en_US). No file contents or diagnosis results are sent. As with all requests WordPress makes, the standard user agent includes the WordPress version and the site URL. WordPress.org privacy policy: https://wordpress.org/about/privacy/
  2. php.net release information (https://www.php.net/releases/?json) — every diagnosis and once a day (PHP security release alerts; results are cached for up to 6 hours). The PHP check downloads the list of releases of the server’s PHP branch to see whether a newer security release is out. Sent: the PHP branch (for example 8.3) as a URL parameter. As with all requests WordPress makes, the standard user agent includes the WordPress version and the site URL. php.net privacy policy: https://www.php.net/privacy.php
  3. php.net PHP branch support dates (https://www.php.net/releases/states.php) — at the same times as item 2. Downloads the date each PHP branch stops receiving official security fixes. Sent: nothing besides the request itself (no parameters). As with all requests WordPress makes, the standard user agent includes the WordPress version and the site URL. php.net privacy policy: https://www.php.net/privacy.php
  4. Anthropic Claude API (https://api.anthropic.com/v1/messages) — optional, to generate AI-powered maintenance reports. Details below.

The update checks for WordPress core and plugins use WordPress core’s own functions (wp_version_check() / wp_update_plugins()), which contact WordPress.org in the same way WordPress does on its own. The Site Health check runs WordPress core’s own Site Health tests; one of them is WordPress core’s PHP version check, which sends the PHP version to https://api.wordpress.org/core/serve-happy/1.0/ (WordPress caches the answer for a week). This plugin does not use that answer for its PHP security check, which uses php.net only.

The rest of this section describes the Anthropic Claude API.

When is data sent?

  • When you manually click the “Generate AI Report” button in the admin.
  • When an automatic scheduled diagnosis detects a critical issue and notifications are enabled. In that case the AI report is generated once per critical run and attached to the notification email.

What data is sent?

  • The diagnosis result text only:
    • Site URL, site name, WordPress version, theme name
    • Names and versions of plugins with available updates, Site Health issue titles (including notices from other plugins)
    • PHP version, web server name, memory limit, max upload size, whether a newer PHP security release exists, the date official security fixes for the PHP branch end, and the PHP branches that still receive them
    • The size of debug.log and up to 10 error lines from it, as written in the log. Error lines can contain file paths and any data that code wrote into the log, so review debug.log before generating a report if that is a concern
    • File Integrity counts, the paths of core files that differ or could not be checked, and suspicious code patterns found in those core files (function names like eval, base64_decode)
    • Paths of suspicious PHP files found in the uploads folder, and paths there that could not be read
    • Counts (plugins, Site Health results), the latest WordPress version, and the notes each check writes
    • SSL expiration date and days remaining
    • File-permission status of critical files
  • Values that come from the site (error lines, file paths, plugin names, Site Health titles) are shortened to one line of up to 300 characters, and the diagnosis is sent inside a delimited data block that the AI is told never to treat as instructions.
  • Apart from what may appear in the error lines above, the plugin does not collect login data, passwords or post content.

Is the data sent unconditionally?

No. The AI feature is completely disabled unless you define NPCMI_API_KEY in wp-config.php. Without that constant, no external connection to Anthropic is ever made.

Anthropic’s terms and privacy policy:

  • Consumer Terms of Service: https://www.anthropic.com/legal/consumer-terms
  • Privacy Policy: https://www.anthropic.com/legal/privacy
  • Commercial Terms of Service (if you use a paid API plan): https://www.anthropic.com/legal/commercial-terms

By enabling the AI report feature (i.e. by defining NPCMI_API_KEY), you agree to Anthropic’s applicable terms.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums