
外掛標籤
開發者團隊
② 後台搜尋「Upgrade Radar – compatibility checker for PHP」→ 直接安裝(推薦)
原文外掛簡介
Your host wants you on a newer PHP version, or the one you’re on is about to lose security support (PHP 8.2’s ends on December 31, 2026). Before you switch, Upgrade Radar reads the code of your active plugins and theme and tells you what to do about each one:
Ready: nothing breaks on the PHP version you picked.
Update first: a newer version is available, or WordPress hasn’t checked yet. Update, then scan again.
No compatible version yet: you have the latest version, and it still breaks. Ask its developer, or look for a replacement.
Needs a developer: code WordPress can’t check for updates, such as a custom plugin, that breaks.
Every problem is one click away, with its file and line, and you can download them all as a CSV file for your developer.
Works on any host
No exec() needed. The scan runs inside WordPress. Many hosts turn off exec() and similar functions, and Upgrade Radar doesn’t use them.
No timeouts. It scans in short batches, one per request, so it stays well under your server’s time limit, even on sites with dozens of plugins.
Leave the page if you like. The scan carries on in the background with WP-Cron, and picks up where it left off.
Read-only. It never changes a file, and only reads your plugins and themes.
Private. Nothing leaves your site. Verdicts use the update information WordPress already has.
How it decides
Upgrade Radar answers one question: will code that works on PHP 7.4 today keep working on the PHP version you pick? It checks with PHP_CodeSniffer and the PHPCompatibilityWP rules, the standard tools for this.
Errors are code that breaks on that PHP version. Only errors decide the verdict.
Warnings are code that’s deprecated there: it still works, but should be updated eventually.
Possible false alarms are findings in code that never runs on that PHP version, such as code that only runs on older versions. They’re listed, but don’t count.
It checks the active plugins, including network-activated ones, the active theme, and its parent theme if it’s a child theme.
Credits
Upgrade Radar includes PHP_CodeSniffer 4.0.4 (BSD-3-Clause license), and PHPCompatibility 10.0.0-alpha2, PHPCompatibilityWP 3.0.0-alpha2, PHPCompatibilityParagonie 2.0.0-alpha2 and PHPCSUtils 1.2.3 (LGPL-3.0-or-later license). Thank you to their authors.
These libraries are the scanner itself: every scan loads them inside WordPress to check your plugins’ and theme’s code, so they ship in the vendor folder. Only the parts a scan uses are included. PHP_CodeSniffer’s own coding standards, and its parts that run other programs, which only its command-line tool uses, are left out. Their namespaces start with UpgradeRadarVendor, so they can’t clash with the copies other plugins bundle.
Source code and build tools
The source code, with its tests and build tools, is on GitHub: github.com/PixelShinobi/Upgrade-Radar-compatibility-checker-for-PHP. The release zip is built by bin/build-release, which prefixes the bundled libraries’ namespaces with PHP-Scoper.
