| 开发者 | mouadwp |
|---|---|
| 更新时间 | 2026年10月3日 18:36 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
function_exists()) is not reported. On three of the most-installed plugins (about 7,800 PHP files together), it reports 27 items for an upgrade from PHP 7.4 to 8.5 (tested in September 2026), all of them deprecation notices, each checked by hand.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.
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.
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.
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".
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.
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.
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.