Leaplens – Upgrade Advisor for PHP
Your host wants you on PHP 8.4 or 8.5, and you want to know what breaks first. Leaplens reads the code of your plugins and themes, finds what a newer PHP removes or deprecates, and tells you what to do about each one. One verdict per plugin and theme Ready – nothing changes for it on the PHP version
Your host wants you on PHP 8.4 or 8.5, and you want to know what breaks first. Leaplens reads the code of your plugins and themes, finds what a newer PHP removes or deprecates, and tells you what to do about each one.
One verdict per plugin and theme
- Ready – nothing changes for it on the PHP version you picked.
- Notices – it keeps working; it only logs deprecation notices that its author should fix before the next major PHP.
- Update – the version you have breaks, a newer one is available. With “Also check available updates” on, Leaplens downloads that update to a temporary folder, scans it and tells you whether updating fixes the problem. Nothing is installed.
- Fix needed – no update fixes it yet: report it to the author (the support forum link is right there), or, for premium and custom code, send the exact lines to the vendor or developer.
- Replace – it breaks, and it is closed on WordPress.org or has not been updated for two years.
Only what is new for your site
A problem that already applies to the PHP version the site runs today is not counted: the site already works with it, so that code is either guarded or never runs. You can still show those lines with one click. This keeps the list short and the verdicts honest.
Not fooled by version checks
Plugins often keep old code for old PHP behind a check: if ( PHP_VERSION_ID < 80000 ) , version_compare( PHP_VERSION, '8.0', '<' ) , function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc() or defined( 'MB_OVERLOAD_STRING' ) . When such a check is false on the target version, the code behind it never runs there, so it is not counted. Leaplens follows if , elseif and else branches, && , || and ? : ; the lines it set aside are one click away.
PHP 7.4 to 8.5
Pick the target version: 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 or 8.5. The checks come from the PHPCompatibility rules for PHP_CodeSniffer, development version, which already cover PHP 8.5: the backtick operator, (boolean) , (integer) , (double) and (binary) casts, case ending with a semicolon, curl_close() , imagedestroy() , mysqli_execute() and the other 8.5 deprecations, along with everything removed in PHP 8.0 and deprecated in 8.1 to 8.4.
Built for shared hosting