wpsnoop: fix Lazy Optimization plugin conflicts, errors & issues

When the plugin Lazy Optimization conflicts or throws a PHP error we hope wpsnoop can help you to fix the issue quickly.


Discover which shortcodes wp-options PHP functions database tables and files are created by Lazy Optimization, plus learn which plugins and/or themes could be in conflict with Lazy Optimization.


Troubleshooting theme and plugin conflicts is easier when you know what Lazy Optimization leaves behind after uninstalling it from a WordPress installation, there is a list down below for your convenience.

Expert advice is recommended if you are not technically proficient with PHP, MySQL etc. View support options for Lazy Optimization

Get professional support for Lazy Optimization here

When you need professional help with WordPress: get help here


What does Lazy Optimization version 1.0.4 add to WordPress? Answers Here.

This is an automatically generated report - it is possible for Lazy Optimization to perform differently in your installation, previous versions before 1.0.4 may have created a different set of shortcodes, used different function names or could have created entirely different database tables to store settings and operate. This is not an exhaustive list but shows how version 1.0.4 of Lazy Optimization behaves when installed and removed on a clean installation of WordPress.

We have not tested individual shortcodes, features or settings of this plugin but instead have concentrated on the potential for obvious errors and conflicts which can occur, if you need help with the plugin in your local installation you can get WordPress help and support for Lazy Optimization by clicking here.

Our testing covered the free version of this plugin there may or may not be a paid version or premium version available for purchase that unlocks additional features and could behave in a slightly or very different manner.

Which new files does Lazy Optimization add to WordPress?

This section will populate with a table showing an icon, size and filepath.

Type & Path Size Conflicts
wp-content/plugins/lazy-optimization/ 28.31kB No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/admin/ 5.43kB No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/admin/admin-settings.php 5.43kB No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/admin/index.php No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/img/ 5.46kB No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/img/loading.gif 5.46kB No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/index.php No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/lazy-optimization.php 13.31kB No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/readme.txt 2.57kB No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/settings/ 923.00B No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/settings/activate/ 923.00B No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/settings/activate/index.php No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/settings/activate/lzy-opti-activate.php 923.00B No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/settings/index.php No known conflicts with other themes or plugins.
wp-content/plugins/lazy-optimization/uninstall.php 643.00B No known conflicts with other themes or plugins.

Which new shortcodes does Lazy Optimization add to WordPress?

Which new database tables are created by the WordPress plugin Lazy Optimization?

Which new options are added to the wp-options table by Lazy Optimization?

What new PHP functions does Lazy Optimization declare when it is active?

Function   Conflicts Common Errors
wpdocs_register_my_custom_submenu_page 2 conflicts Fatal error: Cannot redeclare wpdocs_register_my_custom_submenu_page()
lazy_optimization_check_autoptimize_activation 0 conflicts Fatal error: Cannot redeclare lazy_optimization_check_autoptimize_activation()
lazy_optimization_delete_data 0 conflicts Fatal error: Cannot redeclare lazy_optimization_delete_data()
lazy_optimization_global_imgs_to_exclude 0 conflicts Fatal error: Cannot redeclare lazy_optimization_global_imgs_to_exclude()
lazy_optimization_plugin_settings 0 conflicts Fatal error: Cannot redeclare lazy_optimization_plugin_settings()
lazy_optimization_replace_image 0 conflicts Fatal error: Cannot redeclare lazy_optimization_replace_image()
lazy_optimization_save_global_images_to_exclude_option 0 conflicts Fatal error: Cannot redeclare lazy_optimization_save_global_images_to_exclude_option()
lazy_optimization_save_replace_image 0 conflicts Fatal error: Cannot redeclare lazy_optimization_save_replace_image()
lazy_optimization_settig_page_callback 0 conflicts Fatal error: Cannot redeclare lazy_optimization_settig_page_callback()
lazy_optimization_setting_section_callback_function 0 conflicts Fatal error: Cannot redeclare lazy_optimization_setting_section_callback_function()
lazyopti_bg_images_rules_extaction 0 conflicts Fatal error: Cannot redeclare lazyopti_bg_images_rules_extaction()
lzyopti_activating_function 0 conflicts Fatal error: Cannot redeclare lzyopti_activating_function()
lzyopti_code_work 0 conflicts Fatal error: Cannot redeclare lzyopti_code_work()
lzyopti_del_plugin_static_files 0 conflicts Fatal error: Cannot redeclare lzyopti_del_plugin_static_files()
lzyopti_getting_hash_value 0 conflicts Fatal error: Cannot redeclare lzyopti_getting_hash_value()
lzyopti_global_vars 0 conflicts Fatal error: Cannot redeclare lzyopti_global_vars()
lzyopti_injecting_css_and_js 0 conflicts Fatal error: Cannot redeclare lzyopti_injecting_css_and_js()

Using Lazy Optimization from the command line with WP-CLI

The following commands are provided for convenience and should only be used if you understand how WP-CLI works. These commands refer to a single WordPress instance and may need to be modified if you are working with a Multisite installation.


How to install Lazy Optimization from the command line with WP-CLI

Navigate to the root of your WordPress installation and type the following command:

wp plugin install lazy-optimization


How to activate Lazy Optimization from the command line with WP-CLI

To immediately activate Lazy Optimization after WP-CLI downloads the latest version you can use the following command:

wp plugin install lazy-optimization --activate


How to reinstall Lazy Optimization from the command line with WP-CLI

To force a reinstallation of Lazy Optimization which overwrites the current plugin without asking for confirmation you can use the following command:

wp plugin install lazy-optimization --force


How to update Lazy Optimization to the latest version from the command line with WP-CLI

wp plugin update lazy-optimization


How to delete Lazy Optimization from the command line with WP-CLI

wp plugin delete lazy-optimization

Where can you download earlier versions of Lazy Optimization?

Whenever possible you should use the latest version of plugins and themes, however if you have recently updated and discovered that you need to install an earlier version you may be able to download other versions of Lazy Optimization from the WordPress repository by visiting this link.

Please note that installing earlier versions of a theme or plugin is not generally a recommended course of action for most users and could re-introduce security, stability or other issues in Lazy Optimization

About our testing enviroment

Tests were conducted using Apache 2.4.29, PHP 7.2 on Ubuntu 18.04, MySQL 5.7.33 and WordPress 5.9

It is very possible that different versions of PHP such as PHP 8.0, PHP 7.4, or PHP 7.3 could behave differently with Lazy Optimization. Different versions of WordPress could implement the features of this plugin in slightly different ways as well.