How to Disable WP Optimize From Creating “wpo-plugins-tables-list.json”
WP-Optimize is a WordPress plugin that cleans up databases and helps pages load faster. But it also writes a file called wpo-plugins-tables-list.json to your uploads folder, where visitors may be able to download it.
Before reaching for the delete button, though, it's worth understanding what's in that file. Its long name makes it sound like an inventory of your website, which is where the confusion begins.
What's actually in the file?
The file contains a shared list that connects WordPress plugins with the database tables they use. A database table stores related information, such as posts or settings, in rows and columns.
WP-Optimize uses the list to help identify which plugin a table belongs to. JSON, short for JavaScript Object Notation, is simply the text format used to store that list.
The distinction matters: this isn't an export of your site's installed plugins or database contents. In the support discussion about this file, Marc Lacroix (@marcusig) explains that it's a general reference list.
For example, the list includes table names associated with Yoast SEO. Seeing those entries on a website doesn't establish that the website uses Yoast, any more than finding a cookbook proves you've made every recipe.
That analogy only explains the list's contents. If the file is publicly reachable, its presence can still suggest that WP-Optimize has been used on the site.
A clue about software and a confirmed security flaw are different findings. Understanding that gap helps you judge what a scan or an unfamiliar file really tells you.
How Researchers Go Looking for Weak Spots
Whether a visitor can download the file depends on your server's permissions and access rules. You can either block public access to it or stop WP-Optimize from writing it and delete the existing copy.
Another option: block public access
You can keep the file and block public access through your web server or hosting provider. A rule that blocks web requests to this file lets WP-Optimize keep reading and updating its local copy.
Ask your provider to block the file's address, including any older copy, and clear any cached copies. Web servers such as Apache and Nginx support this kind of access control.
Then open the address in a private browser window to check that the JSON no longer loads. This addresses the public-access concern without disabling the file's updates.
The one-line switch
Marc Lacroix (@marcusig) shared this PHP filter in a March 12, 2021 reply on WP-Optimize's WordPress.org support forum:
add_filter( 'wpo_update_plugin_json', '__return_false' );
Put this statement in the custom plugin shown below, or add it as a standalone line inside the PHP code of your active child theme's functions.php file. A child theme inherits another theme's design while keeping your custom code in separate files.
If you edit a parent theme's functions.php directly, an update can overwrite your change. Parent-theme updates leave the child theme's file alone, but switching to a different theme stops the filter from running.
A filter lets code change a value that WordPress or a plugin uses. This one tells WP-Optimize to skip updating this file.
The built-in WordPress function __return_false returns false, the code's way of saying no. In WP-Optimize 4.7.1's source code, the filter stops the update routine before it downloads the list or writes the file.
It doesn't delete an existing copy. We'll handle that after the filter is active.
Put the switch in a small plugin
A separate plugin keeps this change in place when you switch themes. It also avoids editing WP-Optimize's own files, which a plugin update can replace.
Have a current backup and access to your hosting account's file manager before you begin. If your host provides a staging site—a private copy for trying changes—use that first.
1. Create the file
On your computer, create a folder named disable-wpo-json-creation. Inside it, use a plain-text editor to create disable-wpo-json-creation.php, making sure the filename doesn't end in .php.txt.
Paste this complete code into that file:
<?php
/**
* Plugin Name: Disable WPO JSON Creation
* Description: Stops WP-Optimize from writing
* its plugin table JSON file.
* Version: 1.0
* Author: ThreatPicture.com
* Author URI: https://threatpicture.com
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
add_filter( 'wpo_update_plugin_json', '__return_false' );
The comment at the top is a plugin header, which tells WordPress what to call your plugin. The ABSPATH check prevents the file from running when someone requests it outside WordPress.
This is PHP for a plugin file, not a command to run in a terminal. Leave out a closing ?> tag, and keep the opening <?php exactly as shown.
2. Upload and activate it
Compress the disable-wpo-json-creation folder into a ZIP file. In your WordPress dashboard, open Plugins → Add New Plugin → Upload Plugin, choose that ZIP file and select Install Now.
Then select Activate Plugin. You should see Disable WPO JSON Creation on the Installed Plugins screen, with a Deactivate link showing that it's active.
If your dashboard doesn't allow ZIP uploads, use your host's file manager to put the folder inside wp-content/plugins/. The full path should look like this:
wp-content/plugins/disable-wpo-json-creation/disable-wpo-json-creation.php
Then activate it from Plugins → Installed Plugins. Both routes follow WordPress's plugin installation process; you only need to use one.
There isn't a settings screen or another switch to find. Activating this tiny plugin is the switch.
Delete the existing copy and check the result
Once the custom plugin is active, open your host's file manager and look for this file:
wp-content/uploads/wpo/wpo-plugins-tables-list.json
Delete that file only. Leave the surrounding wpo and uploads folders in place, along with the rest of their contents.
Older versions used the uploads folder directly, so also check for wp-content/uploads/wpo-plugins-tables-list.json. If your site uses a custom uploads location, look there instead.
Now check the corresponding address in a private browser window, replacing example.com with your domain. For a standard WordPress installation, it looks like this:
https://example.com/wp-content/uploads/wpo/wpo-plugins-tables-list.json
A 404 Not Found response is consistent with a missing file; 403 Forbidden means the server is refusing access. Neither should display the JSON list, but use the file manager to confirm that the file itself is gone.
If the browser still shows the list after deletion, check for a cached copy with your host or any content delivery network you use. A content delivery network stores copies of files on other servers, so deleting the original may leave a copy elsewhere.
Check again after WP-Optimize's next scheduled update of the list, and after future plugin upgrades. If the file returns, confirm that your custom plugin is still active and that WP-Optimize still supports the filter.
What happens if wpo-plugins-tables-list.json doesn't exist?
WP-Optimize 4.7.1 includes a fallback list inside the plugin itself. When the downloaded copy is missing, it can use that bundled list to help identify database tables, although it won't receive the separate list updates you've disabled.
The filter targets that update routine; it doesn't switch off WP-Optimize's page caching or image tools. It also doesn't remove the bundled list or hide WordPress from anyone inspecting your site.
- Set up, customize and maintain a WordPress site without hiring help.
- Find the answer fast when something breaks.
- Learn the settings that keep your site running smoothly.
To undo the change, deactivate Disable WPO JSON Creation in WordPress. WP-Optimize can then write the file again when its update routine next runs.
Keep WordPress and its plugins updated, too. Removing an unwanted file is useful housekeeping, while fixing known vulnerabilities addresses the flaws an attacker could actually exploit.
How to Secure WordPress (11 Suggestions)

MySQL Essentials: A Guide to Key Commands

How to Reset a WordPress User’s Password From Within MySQL

QUOTE:
"Amateurs hack systems, professionals hack people."
