WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

PHP Compatibility Checker

Make sure your plugins and themes are compatible with newer PHP versions.

The WP Engine PHP Compatibility Checker can be used by any WordPress website on any web host to check PHP version compatibility.

This plugin will lint theme and plugin code inside your WordPress file system and give you back a report of compatibility issues for you to fix. Compatibility issues are categorized into errors and warnings and will list the file and line number of the offending code, as well as the info about why that line of code is incompatible with the chosen version of PHP. The plugin will also suggest updates to themes and plugins, as a new version may offer compatible code.

This plugin does not execute your theme and plugin code, as such this plugin cannot detect runtime compatibility issues.

Please note that linting code is not perfect. This plugin cannot detect unused code-paths that might be used for backwards compatibility, and thus might show false positives. We maintain a whitelist of plugins that can cause false positives. We are continuously working to ensure the checker provides the most accurate results possible.

This plugin relies on WP-Cron to scan files in the background. The scan will get stuck if the site's WP-Cron isn't running correctly. Please see the FAQ for more information.

Update to PHP 7

  • Use this plugin to check your site for compatibility for PHP 7!
  • As of November 2016, 52.9% of WordPress websites run a PHP version less PHP 5.5.
  • These versions of PHP have been deprecated and unsupported for over 9 months.
  • Only 3.4% of WordPress websites run PHP 7, the current main version of PHP.

Disclaimer

While this plugin is written to detect as many problems as accurately as possible, 100% reliable detection is very difficult to ensure. It is best practice to run comprehensive tests before you migrate to a new PHP version.

The plugin was created by WP Engine to help the WordPress community increase adoption of modern PHP versions. We welcome contributors to this plugin, and are excited to see how developers and other WordPress hosts use this plugin.

To disclose security issues for this plugin please email WordPress@wpengine.com

Requires: 3.5 or higher
Compatible up to: 4.6.2
Last Updated: 2 weeks ago
Active Installs: 8,000+

Ratings

4 out of 5 stars

Support

5 of 11 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
1 person says it's broken.

0,1,0
0,3,0
0,4,0 0,4,0 0,3,0 0,1,0
0,1,0
0,3,0 0,3,0 0,3,0 0,1,0
0,1,0 0,1,0 0,2,0
0,1,0 0,1,0 0,2,0
100,1,1 0,1,0 50,2,1 100,1,1 0,1,0 0,4,0 0,3,0 0,3,0 0,1,0
0,3,0 0,5,0 0,5,0 0,4,0 0,3,0 0,1,0
0,1,0
100,1,1 0,3,0 0,5,0 0,5,0 17,6,1 0,3,0 0,1,0
0,1,0 50,2,1 29,7,2 0,5,0 0,5,0 30,10,3 0,4,0 0,2,0
0,1,0
0,1,0 0,4,0 0,4,0 0,2,0
0,1,0