外掛標籤
開發者團隊
② 後台搜尋「Versionwise – Upgrade Check for PHP」→ 直接安裝(推薦)
原文外掛簡介
Your host is moving you to a newer PHP version, or WordPress is telling you your PHP is outdated. Before you switch, you want to know: will anything on my site break?
Versionwise reads the code of your plugins and themes and tells you, file by file and line by line, what will stop working on the PHP version you pick.
What makes it different
Checks PHP 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5. It uses the current development version of the PHPCompatibility rules, so changes made in recent PHP releases are covered, not just PHP 7.
Works on any host. The scan runs inside PHP itself. It does not need exec(), shell_exec() or any command-line tools, so it works on managed hosts that disable them.
Tells you what actually changes for you. Problems that already exist on the PHP version you run today are listed separately, so the report shows what the upgrade itself will break, not old code that never runs.
Sorted by how bad it is. “Site may go down” (PHP cannot even read the file), “Will break” (fails when that code runs) and “Deprecated” (still works, logs a warning) are kept apart, worst first.
Explains each problem in plain words and what to do: update the plugin, ask the author, or change one line.
Spots updates you have not installed. If a plugin with problems has a newer version available, the report tells you to update first and scan again.
Fewer false alarms on WordPress. Functions that WordPress itself provides on older PHP versions (polyfills) are not reported.
Safe. It only reads files. Nothing on your site is changed. The scan runs in small batches, so it finishes even on hosts with short time limits, and it keeps memory use low on large sites.
Share the result. Copy the report as text or download it as CSV to send to your developer or plugin authors.
How to use it
Go to Tools → Versionwise.
Pick the PHP version you want to move to. The recommended one is preselected.
Select the plugins and themes to check (active ones are preselected) and click Start scan.
Read the report. Anything marked “Site may go down” or “Will break” should be fixed or updated before you upgrade.
Important
This is a static check of the code. It finds most compatibility problems, but not all of them: some depend on data that only exists when the site runs. Always test on a staging copy before upgrading a live site.
Credits
The scan is powered by PHP_CodeSniffer (BSD-3-Clause), PHPCSUtils (LGPL-3.0-or-later), PHPCompatibility, PHPCompatibilityWP and PHPCompatibilityParagonie (LGPL-3.0-or-later). Their licence files are included in the lib/ folder.
