Linux 软件免费装
Banner图

CompatNav – PHP Upgrade Checker

开发者 mouadwp
更新时间 2026年10月3日 18:36
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

php compatibility scanner upgrade php version

下载

1.1.0 1.0.0 1.2.0

详情介绍:

Before you or your host move your site to a newer PHP version, CompatNav reads the code of every installed plugin and theme and tells you, in plain words, what will break and what will only show deprecation notices. Documentation and guides: compatnav.com What you get Private by design Honest about its limits CompatNav reads code; it does not run it. Some problems only appear when code runs with real data, and no code reader can see those. Files that could not be checked are listed with the reason, and while any active file could not be checked, the verdict never says "Safe to upgrade". Documentation and guides The CompatNav website explains how to read the report and what to do when a plugin isn't ready yet, with plain guides to PHP upgrades: PHP 8.2's end of life, what changes in PHP 8.4 and 8.5, and how to fix a critical error after a PHP update. Libraries CompatNav includes PHP-Parser by Nikita Popov (BSD 3-Clause license), copied under CompatNav's own namespace so it can never clash with another plugin's copy.

安装:

  1. In your WordPress admin, go to Plugins → Add New Plugin and search for "CompatNav", or upload the zip file.
  2. Activate the plugin.
  3. Go to Tools → CompatNav. Next to "Check readiness for", choose the PHP version you plan to upgrade to, then click "Start scan".

屏幕截图:

  • The verdict when something needs attention, with the "What to do first" list.
  • One plugin opened: the recommended next step, each issue in plain words, and the details for developers.
  • The downloadable HTML report.

常见问题:

Does CompatNav change my code?

No. It only reads the files of your plugins and themes. It never changes them, never runs them, and never applies fixes. The report explains each issue and shows a before/after example for whoever maintains the code.

Does any data leave my site?

No. The scan and the report are made entirely on your own server, and CompatNav makes no external requests. The "update available" information comes from WordPress's own update check, which is already stored on your site.

Why so few results?

CompatNav reports only what changes when you move from your current PHP version to the one you chose, and only exact patterns, so it does not flag code that is fine. Code that already protects itself with a version check is not reported either. Well-maintained plugins often have nothing to report. The report always shows how many files were checked, so few results means good news, not a skipped scan.

What about files that could not be checked?

They are listed in the report with the reason, for example a file that already contains a syntax error, or one that is too large or too complex for your server's memory. Such a file may hide a problem, so while any active file could not be checked, the verdict says "Nothing found that will break" together with the number of files that could not be checked, never "Safe to upgrade".

Does it work on multisite?

Yes. On a multisite network only super admins can use CompatNav, because plugins, themes and the PHP version are shared by the whole network. The report is made per site, and "active" means active on that site.

For developers: can other plugins use CompatNav?

Yes. Since version 1.1.0, CompatNav has a small PHP API for add-ons: start a scan from a background task (WP-Cron or WP-CLI), run it in steps, read the report and its findings, and react when a scan finishes. Since 1.2.0 it can also check a piece of code, or a plugin or theme zip file without unpacking or installing it. It works on your own server like the rest of CompatNav: no HTTP endpoints and no external requests. Documentation: compatnav.com/docs/api.

Which PHP versions does it support?

It checks upgrades to PHP 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5. CompatNav itself needs PHP 7.4 or newer and WordPress 6.0 or newer. If your site still runs PHP 7.2 or 7.3, ask your host to move it to PHP 7.4 first (current WordPress needs PHP 7.4 too), then use CompatNav to prepare the move to PHP 8.

更新日志:

1.2.0 1.1.0 1.0.0