Title: Qasim PHP Upgrade Check &amp; Guard
Author: Muhammad Qasim
Published: <strong>November 26, 2026</strong>
Last modified: November 26, 2026

---

Search plugins

![](https://ps.w.org/qasim-php-upgrade-check-guard/assets/banner-772x250.png?rev
=3827803)

![](https://ps.w.org/qasim-php-upgrade-check-guard/assets/icon.svg?rev=3827803)

# Qasim PHP Upgrade Check & Guard

 By [Muhammad Qasim](https://profiles.wordpress.org/qasimwp/)

[Download](https://downloads.wordpress.org/plugin/qasim-php-upgrade-check-guard.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/qasim-php-upgrade-check-guard/#description)
 * [Reviews](https://wordpress.org/plugins/qasim-php-upgrade-check-guard/#reviews)
 *  [Installation](https://wordpress.org/plugins/qasim-php-upgrade-check-guard/#installation)
 * [Development](https://wordpress.org/plugins/qasim-php-upgrade-check-guard/#developers)

 [Support](https://wordpress.org/support/plugin/qasim-php-upgrade-check-guard/)

## Description

Your host wants to move your site to a newer PHP version. Will your plugins survive
it? Qasim PHP Upgrade Check & 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.

**Check**

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:

 * **Will break**: this code stops working on the new PHP version.
 * **Ask your host**: the code needs a PHP feature that newer PHP no longer includes
   by default (for example IMAP).
 * **Works, fix later**: works, but shows a warning and will stop working in a future
   version.
 * **Ready**: nothing found.

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.

**Smart results (optional, off by default)**

Turn it on and Qasim PHP Upgrade Check & 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.

**Upgrade guard (optional, off by default)**

Turn it on before your host changes PHP. Qasim PHP Upgrade Check & 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).

**What Qasim PHP Upgrade Check & Guard does not do**

 * It does not run or change your code. It reads files as text.
 * 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.
 * The rules for PHP 8.5 may be incomplete.
 * It does not switch your PHP version. Your host does that.
 * 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.

### External services

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.

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 `wp_mail()` 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.

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.

### Privacy

Qasim PHP Upgrade Check & Guard makes no remote requests, has no tracking and loads
no files from other servers.

What is stored, and where: everything is stored in your own WordPress database, 
in Qasim PHP Upgrade Check & Guard’s tables and options.

 * Check results: the file name, line and problem of each finding, and a cache of
   unchanged files so the next check is faster.
 * 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.
 * 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.

Smart results, Upgrade guard and the crash email are all off by default.

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.

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 & 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 & Guard. Uninstalling removes all of Qasim
PHP Upgrade Check & Guard’s tables and options, unless you turned off “Delete all
data when Qasim PHP Upgrade Check & Guard is uninstalled”.

### Credits and licenses

Qasim PHP Upgrade Check & Guard is free software under the GNU General Public License,
version 3 or later.

The check uses these open-source projects, bundled in `vendor-prefixed/` with their
own license files:

 * PHP_CodeSniffer 4.0.4, BSD-3-Clause, https://github.com/PHPCSStandards/PHP_CodeSniffer
 * 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.
 * PHPCSUtils 1.2.3, LGPL-3.0-or-later, https://github.com/PHPCSStandards/PHPCSUtils
 * Composer’s class loader, MIT

The bundled code in `vendor-prefixed/` 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 `Qpucg\Vendor` 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 (`T_*`, `PHP_CODESNIFFER_*`) keep their
standard names. Lines that would run shell commands, `eval()`, `ini_set()` or `error_reporting()`
are removed from the bundled code.

Source code: https://github.com/qasimwp/qasim-php-upgrade-check-guard . The build
files are in that repository: `engine/composer.json` and `engine/composer.lock` (
library versions), `scoper.inc.php` (prefixing and patches), `bin/build-engine.php`(
builds `vendor-prefixed/`) and `bin/build-zip.php` (builds the release zip). To 
reproduce them, run `php bin/build-engine.php` followed by `php bin/build-zip.php`;
full build requirements are in the repository README.

## Screenshots

[⌊The answer after a check: one sentence, four counts and what to do first.⌉⌊The
answer after a check: one sentence, four counts and what to do first.⌉[

The answer after a check: one sentence, four counts and what to do first.

[⌊A plugin opened: each problem with what it is, how to fix it and what it means
for your site.⌉⌊A plugin opened: each problem with what it is, how to fix it and
what it means for your site.⌉[

A plugin opened: each problem with what it is, how to fix it and what it means for
your site.

[⌊A check running in the background, with progress.⌉⌊A check running in the background,
with progress.⌉[

A check running in the background, with progress.

[⌊Upgrade guard, waiting for your host to change PHP.⌉⌊Upgrade guard, waiting for
your host to change PHP.⌉[

Upgrade guard, waiting for your host to change PHP.

[⌊Settings: Smart results, Upgrade guard and the crash email, all off by default.⌉⌊
Settings: Smart results, Upgrade guard and the crash email, all off by default.⌉[

Settings: Smart results, Upgrade guard and the crash email, all off by default.

[⌊The Plugins screen: each checked plugin shows its PHP compatibility status right
in the list.⌉⌊The Plugins screen: each checked plugin shows its PHP compatibility
status right in the list.⌉[

The Plugins screen: each checked plugin shows its PHP compatibility status right
in the list.

## Installation

 1. Install Qasim PHP Upgrade Check & Guard from Plugins > Add New, or upload the zip
    under Plugins > Add New > Upload Plugin.
 2. Activate it.
 3. Go to Tools > PHP Upgrade and click Check.
 4. Optional: in the Settings tab, turn on Smart results and Upgrade guard.

WP-CLI users can also run `wp qpucg scan --target=8.4`.

## FAQ

### What does “not seen running” mean?

With Smart results on, Qasim PHP Upgrade Check & 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”.

### The check says a file is too large for the memory limit. What now?

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.

### Does it check must-use plugins?

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 & 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.

### Where is my data stored?

In your own WordPress database, in Qasim PHP Upgrade Check & Guard’s own tables (
with the prefix `qpucg_`) and a few `qpucg_` options. See Privacy below.

### Will it slow my site?

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.

### Does it work on multisite?

Each site has its own check and data under Tools > PHP Upgrade. Deleting the plugin
from the network removes the data of every site (unless a site turned off “Delete
all data”).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Qasim PHP Upgrade Check & Guard” is open source software. The following people 
have contributed to this plugin.

Contributors

 *   [ Muhammad Qasim ](https://profiles.wordpress.org/qasimwp/)

[Translate “Qasim PHP Upgrade Check & Guard” into your language.](https://translate.wordpress.org/projects/wp-plugins/qasim-php-upgrade-check-guard)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/qasim-php-upgrade-check-guard/),
check out the [SVN repository](https://plugins.svn.wordpress.org/qasim-php-upgrade-check-guard/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/qasim-php-upgrade-check-guard/)
by [RSS](https://plugins.trac.wordpress.org/log/qasim-php-upgrade-check-guard/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * First public release.

## Meta

 *  Version **1.0.0**
 *  Last updated **1 hour ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [compatibility](https://wordpress.org/plugins/tags/compatibility/)[php](https://wordpress.org/plugins/tags/php/)
   [php 8](https://wordpress.org/plugins/tags/php-8/)[php version](https://wordpress.org/plugins/tags/php-version/)
   [upgrade](https://wordpress.org/plugins/tags/upgrade/)
 *  [Advanced View](https://wordpress.org/plugins/qasim-php-upgrade-check-guard/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/qasim-php-upgrade-check-guard/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/qasim-php-upgrade-check-guard/reviews/)

## Contributors

 *   [ Muhammad Qasim ](https://profiles.wordpress.org/qasimwp/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/qasim-php-upgrade-check-guard/)