PHP Compatibility Checker


Le vérificateur de compatibilité PHP Engine peut être utilisé par tout site WordPress sur tout hébergeur web pour vérifier la compatibilité de la version PHP.

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.

Cette extension n’exécute pas votre code de thème et d’extension, elle ne peut donc pas détecter les problèmes de compatibilité à l’exécution.

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

  • Use this plugin to check your site for compatibility up to PHP 7.3!
  • As of July 2019, 20.1% of WordPress websites run a PHP version older than PHP 5.6.
  • These versions of PHP have been deprecated and unsupported for over 2 years.
  • Only 54.1% of WordPress websites run PHP 7, the current main version of PHP.


Bien que cette extension soit conçue pour détecter autant de problèmes que possible, une détection fiable à 100 % est très difficile à garantir. Il est recommandé d’exécuter des tests complets avant de migrer vers une nouvelle version PHP.

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.

Pour informer des problèmes de sécurité liés à cette extension, veuillez envoyer un e-mail à
PHP Compatibility Checker inclut le support des commandes WP-CLI :

wp phpcompat <version> [--scan=<scan>]

    PHP version to test.

  Whether to scan only active plugins and themes or all of them.
  default: active
    - active
    - all

Exemple : wp phpcompat 7.2 --scan=active

Captures d’écran

  • Écran principal : options du vérificateur de compatibilité
  • Écran de résultats de compatibilité


Note: If you have WordPress 2.7 or above you can simply go to ‘Plugins’ > ‘Add New’ in the WordPress admin and search for « PHP Compatibility Checker » and install it from there.

Pour installer manuellement :
1. Téléverser phpcompat dans le répertoire /wpengine-wp-content/plugins/
2. Activer l’extension via le menu “Extensions” de WordPress

Vous trouverez les options de l’extension dans le menu de l’administration WP Outils => Compatibilité PHP . Une fois que vous cliquez démarrer Il faudra quelques minutes pour effectuer l’analyse. N’hésitez pas laisser la page en cours et revenez voir les résultats ultérieurement.

Des commandes WP-CLI sont disponibles, voir l’onglet Autres notes pour plus de détails.


  1. Cela fonctionnera-t-il en dehors du compte hébergeur de WP Engine ?

    Oui, cette extension peut être utilisée sur n’importe quel site WordPress sur n’importe quel hébergeur.

  2. Des commandes WP-CLI sont-elles disponibles ?

    Yes, this plugin does extend WP-CLI and provide commands. See the Other Notes tab for details.

  3. Une extension que j’ai créée est répertoriée comme non compatible, que dois-je faire ?

    We maintain a whitelist of plugins that cause false positives. If your plugin shows up as incompatible but you think that is wrong, please open a GitHub issue on the project, or email with info about your plugin and why you know it is compatible (you have automated tests, the failure is on backwards compatibility code paths, etc).

  4. Puis-je l’utiliser pour tester des projets PHP non-WordPress ?

    Oui ! Bien que vous ne puissiez pas utiliser cette extension WordPress pour tester vos projets autres que WordPress, vous pouvez utiliser la librairie open source PHPCompatibility sur laquelle est bâtie cette extension.

  5. Pourquoi mon thème ou extension a-t-il été ignoré ?

    Some servers have timeouts to prevent long running queries, this is commonly 60 seconds. This can prevent the checker from being able to process large themes or plugins. You should check with your host to see if this timeout can be temporarily removed. The best way around this timeout issue is to run this plugin on a local copy of your site, or you can use the WP-CLI command.

    You can use the filter wpephpcompat_scan_timeout to customize the scan timeout. See this for an example.

    Définir le délai d’attente à 0 désactive le cron/délai d’attente.

  6. L’analyse est bloquée, que puis-je faire ?

    The PHP Compatibility Checker relies on WP-Cron to process plugins/themes in batches, this is necessary to avoid server timeouts. The scan will get stuck if your site’s WP-Cron isn’t functioning. You can look into this using WP Crontrol. The cron is called wpephpcompat_start_test_cron. This could also be an issue if your site is using basic authentication.

    You can also use the WP-CLI command or disable the timeout to avoid using WP-Cron.

  7. J’ai trouvé un bogue ou j’ai une suggestion, puis-je contribuer en retour ?

    Yes! WP Engine has a public GitHub repo where you can contribute back to this plugin. Please open an issue on the Plugin GitHub. We actively develop this plugin, and are always happy to receive pull requests.

    Cette extension a été créé par WP Engine pour aider la communauté WordPress à adopter les versions récentes de PHP. Nous souhaitons la bienvenue aux contributeurs de cette extensions et sommes impatients de voir comment les développeurs et les autres hébergeurs WordPress utilisent cette extension.

Pour informer des problèmes de sécurité liés à cette extension, veuillez envoyer un e-mail à


24 juin 2020
Ran test. Was quick. 90% of my 15 plugins were not tested. Site told me I needed a paid plan to test.
13 mai 2020
I have 47 plugins. A scan for php7.3 takes hours, and still not finished. I tried three times. This is just a stupid static source code scanner, so what in the hell is it doing for 1 hour on one plugin? Can one tell me? My recommendation: deactivate and delete. Do not waste your time on this one. Put your 7.3 in a staging area and test all your plugins. You will have to do it anyway before upgrading. Didier.
15 mars 2020
This is an excellent plugin if you want to find out which plugins are compatible with the latest PHP before updating. It works as it should, no issues on my end. To all the negative reviews complaining about it being slow, that is not the plugin's fault as it depends on how fast your server is. If it's slow upgrade your server and don't blame the plugin.
5 mars 2020
Like others have noted, scans but does not yield results because plugins are too large. I tried twice testing different php versions. Wish it would have worked. It would have been very useful.
Lire les 84 avis

Contributeurs & développeurs

« PHP Compatibility Checker » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.


“PHP Compatibility Checker” a été traduit dans 16 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « PHP Compatibility Checker » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.



  • Added support for PHP 7.3 compatibility checks


  • Update dependencies.


  • Better translation support.


  • Switched to new PHPCompatibilityWP library to help prevent false positives.


  • Use plugin version number to enqueue scripts and styles.


  • PHP 5.2 Support & PHP 7.1 and 7.2 Lints.
  • Updated call to action sidebar depending on platform.


  • Fixed Composer issue.


  • Updated PHP_CodeSniffer to fix a security advisory.
  • Whitelisted a number of plugins.


  • Updated UX for viewing PHP errors to be more intuitive and require less scrolling.
  • Added links for non-technical users who need assistance from developers to fix PHP errors or to test their site in PHP 7 enabled hosting environments.


  • Added a « Clean up » button and uninstall.php.
  • Added phpcompat_phpversions filter.


  • Whitelisted a number of plugins.


  • Updated the PHPCompatibility library to latest version. Should fix many false positives.
  • Changed language and added help text to Admin UI.


  • Fixed Composer issue.


  • Updated the PHPCompatibility library to latest version.
  • Whitelisted TablePress.


  • Whitelisted UpdraftPlus and Max Mega Menu.


  • Updated the PHPCompatibility library to latest version


  • Updated the PHPCompatibility library to latest version
  • Added support for PHP 5.6


  • Fixed issue with WordPress notices breaking the plugin header.
  • Changed the way we send and parse JSON.
  • You can now restart an in progress scan.
  • Updated download.js to v4.2 for better Safari compatibility.


  • Fixed bug with active job display.
  • Updated progress bar calculation.


  • Test results now persist page reloads.
  • Failed tests will show an overview of the results.
  • The scan timeout is now configurable using a filter. See the FAQ for more details.


  • Fixed a bug in the WP-CLI command
  • Added a handful of PHP 7 compatible plugins to the whitelist


  • Added additional role protections
  • Changed the UI colors to better understand output at a glance
  • Exclude checking node_modules and tmp directories
  • Added support for child theme’s parent theme


  • Updated compatibility library with a few bugfixes
  • Added skip logic to prevent checker from hanging


  • Major update to add PHP 7 checking support
  • Improved the UX of the progress bar
  • Fixed bug with the way the plugin menu was registered


  • Initial version
  • PHP 5.5, 5.4, and 5.3 Support
  • Basic WP-CLI Commands