{"id":407984,"date":"2026-11-26T17:23:22","date_gmt":"2026-11-26T17:23:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/upshift-php-upgrade-check-guard\/"},"modified":"2026-11-26T17:22:56","modified_gmt":"2026-11-26T17:22:56","slug":"qasim-php-upgrade-check-guard","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/qasim-php-upgrade-check-guard\/","author":23560629,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"6.2","requires_php":"7.4","requires_plugins":null,"header_name":"Qasim PHP Upgrade Check & Guard","header_author":"Muhammad Qasim","header_description":"Checks your plugins and themes for code that breaks on a newer PHP version. Optional: see which of that code really runs on your site, and get warned when a plugin starts failing after a PHP change.","last_updated":"2026-11-26 17:22:56","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/profiles.wordpress.org\/qasimwp\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":25,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"qasimwp","date":"2026-11-26 17:22:56","revision":3827803}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3827803,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3827803,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3827803,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3827803,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3827803,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3827803,"resolution":"1","location":"assets","locale":"","width":1600,"height":1000},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3827803,"resolution":"2","location":"assets","locale":"","width":1600,"height":1000},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3827803,"resolution":"3","location":"assets","locale":"","width":1600,"height":1000},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3827803,"resolution":"4","location":"assets","locale":"","width":1600,"height":1000},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3827803,"resolution":"5","location":"assets","locale":"","width":1600,"height":1000},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3827803,"resolution":"6","location":"assets","locale":"","width":1600,"height":1000}},"screenshots":{"1":"The answer after a check: one sentence, four counts and what to do first.","2":"A plugin opened: each problem with what it is, how to fix it and what it means for your site.","3":"A check running in the background, with progress.","4":"Upgrade guard, waiting for your host to change PHP.","5":"Settings: Smart results, Upgrade guard and the crash email, all off by default.","6":"The Plugins screen: each checked plugin shows its PHP compatibility status right in the list."}},"plugin_section":[],"plugin_tags":[3005,662,219646,35037,5939],"plugin_category":[],"plugin_contributors":[289563],"plugin_business_model":[],"class_list":["post-407984","plugin","type-plugin","status-publish","hentry","plugin_tags-compatibility","plugin_tags-php","plugin_tags-php-8","plugin_tags-php-version","plugin_tags-upgrade","plugin_contributors-qasimwp","plugin_committers-qasimwp"],"banners":{"banner":"https:\/\/ps.w.org\/qasim-php-upgrade-check-guard\/assets\/banner-772x250.png?rev=3827803","banner_2x":"https:\/\/ps.w.org\/qasim-php-upgrade-check-guard\/assets\/banner-1544x500.png?rev=3827803","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/qasim-php-upgrade-check-guard\/assets\/icon.svg?rev=3827803","icon":"https:\/\/ps.w.org\/qasim-php-upgrade-check-guard\/assets\/icon.svg?rev=3827803","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/qasim-php-upgrade-check-guard\/assets\/screenshot-1.png?rev=3827803","caption":"The answer after a check: one sentence, four counts and what to do first."},{"src":"https:\/\/ps.w.org\/qasim-php-upgrade-check-guard\/assets\/screenshot-2.png?rev=3827803","caption":"A plugin opened: each problem with what it is, how to fix it and what it means for your site."},{"src":"https:\/\/ps.w.org\/qasim-php-upgrade-check-guard\/assets\/screenshot-3.png?rev=3827803","caption":"A check running in the background, with progress."},{"src":"https:\/\/ps.w.org\/qasim-php-upgrade-check-guard\/assets\/screenshot-4.png?rev=3827803","caption":"Upgrade guard, waiting for your host to change PHP."},{"src":"https:\/\/ps.w.org\/qasim-php-upgrade-check-guard\/assets\/screenshot-5.png?rev=3827803","caption":"Settings: Smart results, Upgrade guard and the crash email, all off by default."},{"src":"https:\/\/ps.w.org\/qasim-php-upgrade-check-guard\/assets\/screenshot-6.png?rev=3827803","caption":"The Plugins screen: each checked plugin shows its PHP compatibility status right in the list."}],"raw_content":"<!--section=description-->\n<p>Your host wants to move your site to a newer PHP version. Will your plugins survive it? Qasim PHP Upgrade Check &amp; Guard reads the code of your plugins, themes, must-use plugins and special WordPress files (such as object-cache.php) and tells you, in plain words, what would break.<\/p>\n\n<p><strong>Check<\/strong><\/p>\n\n<p>Pick the PHP version you plan to move to (8.0 to 8.5) and click Check. Every plugin and theme gets one of four answers:<\/p>\n\n<ul>\n<li><strong>Will break<\/strong>: this code stops working on the new PHP version.<\/li>\n<li><strong>Ask your host<\/strong>: the code needs a PHP feature that newer PHP no longer includes by default (for example IMAP).<\/li>\n<li><strong>Works, fix later<\/strong>: works, but shows a warning and will stop working in a future version.<\/li>\n<li><strong>Ready<\/strong>: nothing found.<\/li>\n<\/ul>\n\n<p>You get a short \"Do this first\" list, the file and line of every problem with what it means and how to fix it, a CSV report, a print view and a text you can copy to your developer or host. The check runs in small steps in the background, so it also works on shared hosting.<\/p>\n\n<p><strong>Smart results (optional, off by default)<\/strong><\/p>\n\n<p>Turn it on and Qasim PHP Upgrade Check &amp; Guard learns which plugin files your site really loads, for example on checkout, shop pages or the admin. Each problem then says where it runs, or that it was not seen running in the last days, so you can fix what matters first. It looks at some page views only (1 in 4 by default) and stores file names and counts, nothing about your visitors.<\/p>\n\n<p><strong>Upgrade guard (optional, off by default)<\/strong><\/p>\n\n<p>Turn it on before your host changes PHP. Qasim PHP Upgrade Check &amp; Guard learns how your site normally behaves, notices the PHP change by itself and compares the next 7 days with before. If a plugin starts crashing or showing new errors, the Upgrade guard tab names it and tells you what to do. It can also email the site's admin address about new crashes (off by default).<\/p>\n\n<p><strong>What Qasim PHP Upgrade Check &amp; Guard does not do<\/strong><\/p>\n\n<ul>\n<li>It does not run or change your code. It reads files as text.<\/li>\n<li>It is not a guarantee. Code that is built at run time, or loaded in unusual ways, can be missed. Always test on a staging copy before you upgrade a live shop.<\/li>\n<li>The rules for PHP 8.5 may be incomplete.<\/li>\n<li>It does not switch your PHP version. Your host does that.<\/li>\n<li>All PHP compatibility scanning and 7-day Upgrade guard monitoring run 100% locally on your server. The plugin makes zero external API requests, loads no remote assets, and sends no telemetry.<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>This plugin does not connect to any third-party API or external service, makes no remote HTTP requests, loads no remote assets and sends no telemetry.<\/p>\n\n<p>The only data that can leave your site is the optional Upgrade guard crash email, which is off by default. When you turn it on in Settings, the plugin uses WordPress's built-in <code>wp_mail()<\/code> function, at most once per day, to send a plain-text message to your site's own admin email address. The message contains only the name of the plugin or theme that crashed, the crash count, the general page type (for example checkout or admin) and a link to the plugin's Upgrade guard tab in your dashboard. It does not contain error text, file paths or visitor data. The email is delivered by whatever mail method your site is already set up to use.<\/p>\n\n<p>The Help tab shows three plain links to WordPress.org: the support forum (https:\/\/wordpress.org\/support\/plugin\/qasim-php-upgrade-check-guard\/), the reviews page (https:\/\/wordpress.org\/support\/plugin\/qasim-php-upgrade-check-guard\/reviews\/) and the author's other plugin (https:\/\/wordpress.org\/plugins\/qasim-checkout-test-lab-for-woocommerce\/). Nothing is loaded from these addresses. A page on WordPress.org opens only if an administrator clicks a link, and WordPress.org's own privacy policy (https:\/\/wordpress.org\/about\/privacy\/) then applies.<\/p>\n\n<h3>Privacy<\/h3>\n\n<p>Qasim PHP Upgrade Check &amp; Guard makes no remote requests, has no tracking and loads no files from other servers.<\/p>\n\n<p>What is stored, and where: everything is stored in your own WordPress database, in Qasim PHP Upgrade Check &amp; Guard's tables and options.<\/p>\n\n<ul>\n<li>Check results: the file name, line and problem of each finding, and a cache of unchanged files so the next check is faster.<\/li>\n<li>Smart results (only if you turn it on): the names of the plugin and theme files that loaded, counted per day and per type of page (for example checkout or admin). No visitor, customer, IP address or URL is stored.<\/li>\n<li>Upgrade guard (only if you turn it on): PHP errors from plugins and themes, with the plugin, file, error type, counts and dates. The error message is cleaned before it is stored: only its first line is kept, and URLs, email addresses and IP addresses are removed. A plugin can still put other text in its own error message, so the cleaning is best effort.<\/li>\n<\/ul>\n\n<p>Smart results, Upgrade guard and the crash email are all off by default.<\/p>\n\n<p>The only data that can leave your site is the optional crash email. It is off by default, and when turned on it is sent to your site's admin email address, at most once a day.<\/p>\n\n<p>How long it is kept: collected data older than 30 days is removed automatically, and each finished day is summarised and its raw rows deleted. Qasim PHP Upgrade Check &amp; Guard keeps its collected data under 50 MB. The latest check results stay until you check again, until you click \"Delete collected data\" in Settings, or until you uninstall Qasim PHP Upgrade Check &amp; Guard. Uninstalling removes all of Qasim PHP Upgrade Check &amp; Guard's tables and options, unless you turned off \"Delete all data when Qasim PHP Upgrade Check &amp; Guard is uninstalled\".<\/p>\n\n<h3>Credits and licenses<\/h3>\n\n<p>Qasim PHP Upgrade Check &amp; Guard is free software under the GNU General Public License, version 3 or later.<\/p>\n\n<p>The check uses these open-source projects, bundled in <code>vendor-prefixed\/<\/code> with their own license files:<\/p>\n\n<ul>\n<li>PHP_CodeSniffer 4.0.4, BSD-3-Clause, https:\/\/github.com\/PHPCSStandards\/PHP_CodeSniffer<\/li>\n<li>PHPCompatibility 10.0.0-alpha2, PHPCompatibilityWP 3.0.0-alpha2 and PHPCompatibilityParagonie 2.0.0-alpha2, LGPL-3.0-or-later, https:\/\/github.com\/PHPCompatibility. Version 10 is still marked alpha by its authors; it is the only version with rules for PHP 8.<\/li>\n<li>PHPCSUtils 1.2.3, LGPL-3.0-or-later, https:\/\/github.com\/PHPCSStandards\/PHPCSUtils<\/li>\n<li>Composer's class loader, MIT<\/li>\n<\/ul>\n\n<p>The bundled code in <code>vendor-prefixed\/<\/code> contains only the stripped runtime parser libraries needed to check PHP files statically (no tests, docs or command-line binaries). PHP_CodeSniffer, PHPCompatibility, PHPCompatibilityWP, PHPCompatibilityParagonie and PHPCSUtils are renamed into the <code>Qpucg\\Vendor<\/code> namespace with PHP-Scoper so they cannot clash with other plugins. Composer's standard class loader and the global token constants that PHP_CodeSniffer defines (<code>T_*<\/code>, <code>PHP_CODESNIFFER_*<\/code>) keep their standard names. Lines that would run shell commands, <code>eval()<\/code>, <code>ini_set()<\/code> or <code>error_reporting()<\/code> are removed from the bundled code.<\/p>\n\n<p>Source code: https:\/\/github.com\/qasimwp\/qasim-php-upgrade-check-guard . The build files are in that repository: <code>engine\/composer.json<\/code> and <code>engine\/composer.lock<\/code> (library versions), <code>scoper.inc.php<\/code> (prefixing and patches), <code>bin\/build-engine.php<\/code> (builds <code>vendor-prefixed\/<\/code>) and <code>bin\/build-zip.php<\/code> (builds the release zip). To reproduce them, run <code>php bin\/build-engine.php<\/code> followed by <code>php bin\/build-zip.php<\/code>; full build requirements are in the repository README.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install Qasim PHP Upgrade Check &amp; Guard from Plugins &gt; Add New, or upload the zip under Plugins &gt; Add New &gt; Upload Plugin.<\/li>\n<li>Activate it.<\/li>\n<li>Go to Tools &gt; PHP Upgrade and click Check.<\/li>\n<li>Optional: in the Settings tab, turn on Smart results and Upgrade guard.<\/li>\n<\/ol>\n\n<p>WP-CLI users can also run <code>wp qpucg scan --target=8.4<\/code>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20does%20%22not%20seen%20running%22%20mean%3F\"><h3>What does \"not seen running\" mean?<\/h3><\/dt>\n<dd><p>With Smart results on, Qasim PHP Upgrade Check &amp; Guard didn't see that code run on the page views it looked at during the last days. It may still run at other times, for example once a month or only for one user. Treat it as \"probably less urgent\", not as \"safe to ignore\".<\/p><\/dd>\n<dt id=\"the%20check%20says%20a%20file%20is%20too%20large%20for%20the%20memory%20limit.%20what%20now%3F\"><h3>The check says a file is too large for the memory limit. What now?<\/h3><\/dt>\n<dd><p>Large files need more memory to check. Ask your host to raise the PHP memory limit to 512M, then check again. You can also run the check with WP-CLI, which usually has more memory.<\/p><\/dd>\n<dt id=\"does%20it%20check%20must-use%20plugins%3F\"><h3>Does it check must-use plugins?<\/h3><\/dt>\n<dd><p>Yes. Must-use plugins and special WordPress files (drop-ins such as object-cache.php) are checked like normal plugins. Upgrade guard cannot see crashes that happen before Qasim PHP Upgrade Check &amp; Guard loads (such as in must-use plugins or during initial file loading of earlier plugins), though runtime crashes inside hooks, pages, checkout and admin are captured.<\/p><\/dd>\n<dt id=\"where%20is%20my%20data%20stored%3F\"><h3>Where is my data stored?<\/h3><\/dt>\n<dd><p>In your own WordPress database, in Qasim PHP Upgrade Check &amp; Guard's own tables (with the prefix <code>qpucg_<\/code>) and a few <code>qpucg_<\/code> options. See Privacy below.<\/p><\/dd>\n<dt id=\"will%20it%20slow%20my%20site%3F\"><h3>Will it slow my site?<\/h3><\/dt>\n<dd><p>The check runs only when you start it. Smart results and Upgrade guard are off until you turn them on; when on, they look at some page views only and write to the database once, at the end of those page views.<\/p><\/dd>\n<dt id=\"does%20it%20work%20on%20multisite%3F\"><h3>Does it work on multisite?<\/h3><\/dt>\n<dd><p>Each site has its own check and data under Tools &gt; PHP Upgrade. Deleting the plugin from the network removes the data of every site (unless a site turned off \"Delete all data\").<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First public release.<\/li>\n<\/ul>","raw_excerpt":"Check your plugins and themes for code that breaks on a newer PHP version, see which of it really runs, and catch new crashes after a PHP change.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/407984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=407984"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/qasimwp"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=407984"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=407984"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=407984"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=407984"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=407984"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=407984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}