DSSarl Upgrade Scanner for PHP Compatibility
Scan plugins and themes for likely PHP incompatibilities before you upgrade PHP.
Install in
Your host wants you on a newer PHP version. Will your plugins and themes keep working?
DSSarl Upgrade Scanner for PHP Compatibility helps you prepare. It reads the PHP code of your plugins and themes and flags code that is likely to break, or is deprecated, on the PHP version you choose. You get a static analysis report organised by plugin or theme, then by file and line, so you (or your developer) know where to look before you switch.
Everything runs on your own server. There is no outside service, no account, no API key, and your code is never sent anywhere. Because the scan is local, it also covers premium and custom plugins and themes that are not on WordPress.org.
How it works
- Go to Tools DSSarl Upgrade Scanner (administrators only).
- Pick the PHP version you plan to move to. Released PHP versions are offered (PHP 7.0 to 8.5, plus PHP 8.6 as a preview), and you check against one exact version, so you are not flooded with alerts about PHP versions that do not exist yet.
- Pick the plugins and themes to scan. Your active plugins and theme are selected by default.
- Click Scan. A progress bar shows the scan running in short batches. Cancel scan stops it at any time.
- Read the results: errors first, then warnings, grouped by plugin or theme, then by rule and by file and line.
Built for shared hosting
- The scan runs in short, resumable batches, so it fits within typical shared-hosting time limits.
- Large files get their own batch.
- A file too large for your server’s memory is reported as “Skipped: too large for this server’s memory limit” instead of stopping the scan.
- Close the tab and the scan continues in the background (more slowly, using WordPress cron, which runs when your site has visits). Come back later to see the results.
- Cancel at any time.
Clear, usable results
- Errors – code that is likely to stop working on the chosen PHP version.
- Warnings – code that is deprecated or may break in a later PHP version.
- Each finding shows the file, the line and the rule that flagged it.
- An “update available” hint appears next to plugins and themes that already have an update waiting. Updating first often removes many findings.
- Ignore a rule or a whole file you have already reviewed.
- Third-party and development code (for example
vendorandtestsfolders) is labelled and can be hidden, so you can focus on code that actually runs. - Common false positives in template files are filtered out.
- Every report shows the version of the ruleset used, so you know what the scan was based on.
- Download CSV saves the findings of the latest scan as a spreadsheet file for your developer or your records. Ignored findings are left out, and files that could not be scanned are listed with the reason. The file is created on your server and downloaded by your browser; nothing is sent anywhere.
What it does not do
- It does not change any file.
- It does not change your PHP version.
- It does not fix code. It shows you where to look.
- It is a static analysis tool: it reads code, it does not run it. Some problems only show up at run time and cannot be detected this way. Use the report together with a test on a staging site.
Features
- Scan plugins and themes against one released PHP version (PHP 7.0 to 8.5, plus PHP 8.6 as a preview)
- Local scan: no external service, no account, no API key, no data sent
- Works with premium and custom plugins and themes
- Resumable background batches with progress bar, designed for shared hosting limits
- Memory guard: oversized files are skipped and reported, not crashed on
- Errors vs warnings, by plugin/theme, file, line and rule
- “Update available” hint
- Ignore list for rules and files
- Vendor and test code labelled and hideable
- Template false positives filtered
- Ruleset version shown in every report
- CSV download of the results (UTF-8, for spreadsheet apps)
- Read-only: never edits your files
Powered by open-source tools
The scan engine uses the open-source PHP_CodeSniffer and PHPCompatibility projects. DSSarl Upgrade Scanner is an independent plugin by Digital Services SARL and is not affiliated with those projects. See “Credits / Third-party libraries” below.
About coverage
DSSarl Upgrade Scanner 1.1.1 uses PHPCompatibility 10.0.0-alpha3, a pre-release. It flags many known changes in recent PHP versions, but coverage of the newest PHP versions is not yet complete. A clean report means no known issue was flagged by the current rules; it is not a guarantee. We update the ruleset when new upstream releases are available.
Trademarks
PHP is a project of The PHP Group. DSSarl Upgrade Scanner for PHP Compatibility is an independent product of DIGITAL SERVICES – SARL and is not affiliated with, endorsed by or sponsored by The PHP Group or the PHP project.
Disclaimer
DSSarl Upgrade Scanner uses static analysis: it reads the PHP files of your installed plugins and themes without running them, and compares them with the PHPCompatibility rulesets for PHP_CodeSniffer. The PHP 8 rules come from pre-release versions of those rulesets (PHPCompatibility 10.0.0-alpha3); the exact rules version is shown in every report.
Results are guidance only, not a guarantee:
- Static analysis can report issues that are not real problems (false positives).
- It can miss issues that appear only when code runs, such as dynamically built code, code loaded from outside the scanned folders, encoded or obfuscated files, server configuration or missing PHP extensions (false negatives).
- Files that are too large for your server’s memory limit are skipped, and the report says so.
- A report with no errors does not guarantee that your site will work on a given PHP version.
Always make a full backup and test on a staging site before you change your PHP version or update plugins or themes.
DSSarl Upgrade Scanner never changes your PHP version and never edits your files.
DSSarl Upgrade Scanner is free software, provided “as is”, without warranty of any kind, as stated in the GNU General Public License. To the extent permitted by applicable law, DIGITAL SERVICES – SARL is not liable for downtime, data loss or any other damage arising from the use of the plugin or from decisions made on the basis of its results.
DSSarl Upgrade Scanner is developed by DIGITAL SERVICES – SARL. It is not affiliated with or endorsed by the PHP_CodeSniffer or PHPCompatibility projects, The PHP Group or WordPress.org. Credits and licences for the bundled open-source components are in THIRD-PARTY-NOTICES.txt.
Credits / Third-party libraries
DSSarl Upgrade Scanner bundles the following open-source projects. Full licence texts and copyright notices are in the THIRD-PARTY-NOTICES.txt file included with the plugin.
- PHP_CodeSniffer – https://github.com/PHPCSStandards/PHP_CodeSniffer
- PHPCSUtils – https://github.com/PHPCSStandards/PHPCSUtils
- PHPCompatibility – https://github.com/PHPCompatibility/PHPCompatibility
- PHPCompatibilityWP – https://github.com/PHPCompatibility/PHPCompatibilityWP
- PHPCompatibilityParagonie – https://github.com/PHPCompatibility/PHPCompatibilityParagonie
DSSarl Upgrade Scanner is developed by Digital Services SARL – https://dssarl.com/
Written by Joobi from the project's own listing. See the source page
1.2.0
- For developers: hooks for add-ons. New actions
dssarl_upgrade_scanner_loaded,dssarl_upgrade_scanner_scan_started,dssarl_upgrade_scanner_scan_finished,dssarl_upgrade_scanner_results_actionsanddssarl_upgrade_scanner_render_tab, and thedssarl_upgrade_scanner_screen_tabsfilter, which lets add-ons add tabs to Tools > DSSarl Upgrade Scanner; thedssarl_upgrade_scanner_time_budgetfilter now also receives what runs the batch and the job; scans can be started to run through WP-Cron only; API version constantDSSARL_UPGRADE_SCANNER_API_VERSION(1). Nothing changes on the screen or in how scans run when no add-on uses them. - Uninstall also removes the new internal option
dssarl_upgrade_scanner_finished. - Readme: a short note about the separate paid add-on, DSSarl Upgrade Scanner Pro. The free plugin has no paid features and shows no advertising.
- Ruleset unchanged: PHPCompatibility 10.0.0-alpha3.
1.1.2
- PHP 8.6 is now a normal target (no longer “preview”), using the PHP 8.6 rules of the bundled PHPCompatibility 10.0.0-alpha3. On a site running PHP 8.5 the default target is now 8.6. Scans made earlier against 8.6 (preview) keep their label.
- Tested with WordPress 7.2.
- Ruleset unchanged: PHPCompatibility 10.0.0-alpha3.
1.1.1
- Renamed from “Upgrade Checker – PHP Compatibility Scanner” to “DSSarl Upgrade Scanner for PHP Compatibility” (slug and text domain
dssarl-upgrade-scanner), the first version submitted under the new name. Translations now come from translate.wordpress.org instead of bundled files. - Fix: on phones, the rule code in the “By rule” and file tables is shown on its own line under the message, instead of wrapping letter by letter in a narrow column.
- Updated the bundled PHPCompatibilityWP (3.0.0-alpha3) and PHPCompatibilityParagonie (2.0.0-alpha3) rulesets. PHPCompatibility is unchanged (10.0.0-alpha3).
- Readme: the multisite FAQ now describes who can use the plugin on a network and where results are stored.
1.1.0
- New: Download CSV button on the results screen. One row per finding (plugin or theme, version, file, line, severity, rule, message, third-party/dev code), with the scan date, target PHP version and rules version. Ignored findings are left out; files that could not be scanned are listed with the reason. UTF-8 with a byte order mark, so spreadsheet apps such as Excel read accented and Arabic text as UTF-8. Cells that a spreadsheet could read as a formula are written as text.
- New: PHP 8.6 (preview) target. Rules for PHP 8.6 are not complete yet, so some 8.6 issues may be missed; the results screen and the CSV mark 8.6 scans as a preview. Never the default target.
- Fix: a cancelled or unfinished scan no longer shows “no likely issues found” for plugins or themes it did not finish; they are marked “not finished”, as in the CSV.
- Fix: on phones, the results tables scroll inside the screen instead of widening the whole admin page.
- Fix: multisite – only the main site creates the results table and settings, and uninstall now removes them from every site of the network. When network-activated, the bundled French and Arabic translations are now loaded.
- Fix: no PHP warning when “Cancel” is sent before any scan exists.
- Ruleset unchanged: PHPCompatibility 10.0.0-alpha3.
1.0.0
- First release.
- Scan plugins and themes against a chosen released PHP version (up to PHP 8.5).
- Local, resumable background scanning with progress bar and cancel.
- Memory guard: oversized files reported as skipped.
- Results by plugin/theme, file, line and rule, with errors and warnings.
- “Update available” hint, ignore list, vendor/test code labelling, template false-positive filtering.
- Memory guard estimates each file from its code (tokens) as well as its size, so that dense files are skipped and reported on 128–256 MB servers instead of running out of memory.
- On PHP 7.2 servers, files using PHP 7.3+ flexible heredoc/nowdoc syntax are listed as “Not scanned” with the reason, instead of producing false errors.
- “Ignore this file” is offered on files with findings (not on files that could not be scanned, where it would have no effect).
- Ruleset: PHPCompatibility 10.0.0-alpha3.
1.1.2
- PHP 8.6 is now a normal target (no longer “preview”), using the PHP 8.6 rules of the bundled PHPCompatibility 10.0.0-alpha3. On a site running PHP 8.5 the default target is now 8.6. Scans made earlier against 8.6 (preview) keep their label.
- Tested with WordPress 7.2.
- Ruleset unchanged: PHPCompatibility 10.0.0-alpha3.
1.1.1
- Renamed from “Upgrade Checker – PHP Compatibility Scanner” to “DSSarl Upgrade Scanner for PHP Compatibility” (slug and text domain
dssarl-upgrade-scanner), the first version submitted under the new name. Translations now come from translate.wordpress.org instead of bundled files. - Fix: on phones, the rule code in the “By rule” and file tables is shown on its own line under the message, instead of wrapping letter by letter in a narrow column.
- Updated the bundled PHPCompatibilityWP (3.0.0-alpha3) and PHPCompatibilityParagonie (2.0.0-alpha3) rulesets. PHPCompatibility is unchanged (10.0.0-alpha3).
- Readme: the multisite FAQ now describes who can use the plugin on a network and where results are stored.
1.1.0
- New: Download CSV button on the results screen. One row per finding (plugin or theme, version, file, line, severity, rule, message, third-party/dev code), with the scan date, target PHP version and rules version. Ignored findings are left out; files that could not be scanned are listed with the reason. UTF-8 with a byte order mark, so spreadsheet apps such as Excel read accented and Arabic text as UTF-8. Cells that a spreadsheet could read as a formula are written as text.
- New: PHP 8.6 (preview) target. Rules for PHP 8.6 are not complete yet, so some 8.6 issues may be missed; the results screen and the CSV mark 8.6 scans as a preview. Never the default target.
- Fix: a cancelled or unfinished scan no longer shows “no likely issues found” for plugins or themes it did not finish; they are marked “not finished”, as in the CSV.
- Fix: on phones, the results tables scroll inside the screen instead of widening the whole admin page.
- Fix: multisite – only the main site creates the results table and settings, and uninstall now removes them from every site of the network. When network-activated, the bundled French and Arabic translations are now loaded.
- Fix: no PHP warning when “Cancel” is sent before any scan exists.
- Ruleset unchanged: PHPCompatibility 10.0.0-alpha3.
1.0.0
- First release.
- Scan plugins and themes against a chosen released PHP version (up to PHP 8.5).
- Local, resumable background scanning with progress bar and cancel.
- Memory guard: oversized files reported as skipped.
- Results by plugin/theme, file, line and rule, with errors and warnings.
- “Update available” hint, ignore list, vendor/test code labelling, template false-positive filtering.
- Memory guard estimates each file from its code (tokens) as well as its size, so that dense files are skipped and reported on 128–256 MB servers instead of running out of memory.
- On PHP 7.2 servers, files using PHP 7.3+ flexible heredoc/nowdoc syntax are listed as “Not scanned” with the reason, instead of producing false errors.
- “Ignore this file” is offered on files with findings (not on files that could not be scanned, where it would have no effect).
- Ruleset: PHPCompatibility 10.0.0-alpha3.
1.1.1
- Renamed from “Upgrade Checker – PHP Compatibility Scanner” to “DSSarl Upgrade Scanner for PHP Compatibility” (slug and text domain
dssarl-upgrade-scanner), the first version submitted under the new name. Translations now come from translate.wordpress.org instead of bundled files. - Fix: on phones, the rule code in the “By rule” and file tables is shown on its own line under the message, instead of wrapping letter by letter in a narrow column.
- Updated the bundled PHPCompatibilityWP (3.0.0-alpha3) and PHPCompatibilityParagonie (2.0.0-alpha3) rulesets. PHPCompatibility is unchanged (10.0.0-alpha3).
- Readme: the multisite FAQ now describes who can use the plugin on a network and where results are stored.
1.1.0
- New: Download CSV button on the results screen. One row per finding (plugin or theme, version, file, line, severity, rule, message, third-party/dev code), with the scan date, target PHP version and rules version. Ignored findings are left out; files that could not be scanned are listed with the reason. UTF-8 with a byte order mark, so spreadsheet apps such as Excel read accented and Arabic text as UTF-8. Cells that a spreadsheet could read as a formula are written as text.
- New: PHP 8.6 (preview) target. Rules for PHP 8.6 are not complete yet, so some 8.6 issues may be missed; the results screen and the CSV mark 8.6 scans as a preview. Never the default target.
- Fix: a cancelled or unfinished scan no longer shows “no likely issues found” for plugins or themes it did not finish; they are marked “not finished”, as in the CSV.
- Fix: on phones, the results tables scroll inside the screen instead of widening the whole admin page.
- Fix: multisite – only the main site creates the results table and settings, and uninstall now removes them from every site of the network. When network-activated, the bundled French and Arabic translations are now loaded.
- Fix: no PHP warning when “Cancel” is sent before any scan exists.
- Ruleset unchanged: PHPCompatibility 10.0.0-alpha3.
1.0.0
- First release.
- Scan plugins and themes against a chosen released PHP version (up to PHP 8.5).
- Local, resumable background scanning with progress bar and cancel.
- Memory guard: oversized files reported as skipped.
- Results by plugin/theme, file, line and rule, with errors and warnings.
- “Update available” hint, ignore list, vendor/test code labelling, template false-positive filtering.
- Memory guard estimates each file from its code (tokens) as well as its size, so that dense files are skipped and reported on 128–256 MB servers instead of running out of memory.
- On PHP 7.2 servers, files using PHP 7.3+ flexible heredoc/nowdoc syntax are listed as “Not scanned” with the reason, instead of producing false errors.
- “Ignore this file” is offered on files with findings (not on files that could not be scanned, where it would have no effect).
- Ruleset: PHPCompatibility 10.0.0-alpha3.
Follow this listing's changes (Atom feed)