Your theme and plugins are just PHP code, and code ages. Your host upgrades PHP and a function your theme relied on disappears. A plugin’s developer moves on and security holes stop getting fixed. Someone “quickly” edits a theme file and the next update wipes it out, or worse, an attacker drops an extra file into it. Here is how to check your WordPress code for these problems, what each one means, and how to fix them without breaking your site.
Why WordPress code breaks over time
- PHP upgrades. PHP 8 removed old functions such as
create_function(),each()and themysql_*family. Code that calls them stops the page with a fatal error the moment it runs. - Abandoned plugins. WordPress.org closes plugins with unfixed security problems, and many others simply stop being updated.
- Direct edits. Changes made in a parent theme or plugin are lost on update. Unexpected extra PHP files in a theme folder are a common sign of a hack.
- Custom code shortcuts. Printing
$_GET['s']straight onto a page, or building a database query from form input, opens the door to cross-site scripting and SQL injection.
The manual way
- Turn on
WP_DEBUG_LOGin wp-config.php and read wp-content/debug.log for warnings and fatal errors (switch it off again on a live site). - Check each plugin’s page on WordPress.org for its “last updated” date, and search for plugins that show “This plugin has been closed”.
- Compare your theme’s files with a fresh download of the same version.
- Ask a developer to review custom code for escaping (
esc_html(),esc_attr(),esc_url()) and for$wpdb->prepare()around database queries.
It works, but it takes hours and you have to remember to do it again after every PHP upgrade.
The quick way: Fixwise’s code check
Fixwise (free) checks all of this on every scan. Open Fixwise → Health and click Scan my site, or Check code on the Theme & plugin code card. It reads the code you control line by line without running it, compares WordPress.org themes with their official copy, and asks WordPress.org whether your themes and plugins are still maintained.

What the labels mean
- Urgent: the code breaks now on your PHP version, or is a security hole. Fix it first.
- Fix soon: edited theme files, abandoned plugins and PHP warnings. Not broken today, but a risk.
- Tidy up: old WordPress functions that still work but may be removed later.

Fixing the problems with AI (Pro)
With Fixwise Pro, each problem in code you control has a ✨ Explain & fix button. The AI explains what is wrong in plain English and writes only the corrected lines, keeping everything else exactly as it was.
The corrected code has already passed PHP’s own syntax check on your server. Click Copy corrected code, keep a copy of the original file, paste the fix over the lines shown in your code editor or over SFTP, then run the check again. Fixwise never edits theme or plugin files itself.
What about code in WordPress.org plugins?
Fixwise never edits WordPress.org themes and plugins, because their next update would overwrite the change. If the check flags one, update it first. If it has been removed from WordPress.org or abandoned, replace it with a maintained alternative. If you rely on it, send the explanation to its developer.
Run the check after every PHP upgrade your host announces, and before you switch on a new PHP version in your hosting panel. Most hosts let you switch back if something breaks.