LWS Optimize 3.2.0.4

Does LWS Optimize work with WordPress 6.6.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP fatal errors
18PHP notices
2Unrecognized messages in the PHP error log
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 196.46 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.6.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 10,000+
WordPress.org page https://wordpress.org/plugins/lws-optimize/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=lws-optimize%2Flws-optimize.php&plugin_status=all&paged=1&s&_wpnonce=a2bb13f829
Aspect after-activation
HTTP status 200
Load time 0.341 s
Memory usage 3.68 MiB
JS errors None
Resource errors None

LWS Optimize

Page screenshot: LWS Optimize
URL /wp-admin/admin.php?page=lws-op-config
Aspect menu-item
HTTP status 200
Load time 0.849 s
Memory usage 3.96 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.242 s
Memory usage 3.52 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.337 s0.339 s+0.002 s3.47 MiB3.67 MiB+ 197.91 KiB
/wp-admin/edit.php0.182 s0.222 s+0.040 s3.54 MiB3.73 MiB+ 196.46 KiB
/wp-admin/upload.php0.497 s0.317 s-0.180 s3.49 MiB3.66 MiB+ 179.67 KiB
/wp-admin/options-writing.php0.179 s0.287 s+0.108 s3.41 MiB3.65 MiB+ 242.48 KiB
/wp-admin/media-new.php0.247 s0.220 s-0.027 s3.4 MiB3.65 MiB+ 255.86 KiB
/wp-admin/edit-tags.php?taxonomy=category0.172 s0.159 s-0.013 s3.47 MiB3.67 MiB+ 202.53 KiB
/wp-admin/options-discussion.php0.211 s0.251 s+0.040 s3.41 MiB3.65 MiB+ 244.16 KiB
/wp-admin/edit-comments.php0.237 s0.231 s-0.006 s3.49 MiB3.66 MiB+ 179.66 KiB
/0.271 s0.222 s-0.049 s3.45 MiB3.52 MiB+ 69.41 KiB
Average 0.259 s0.250 s-0.009 s3.46 MiB3.65 MiB+ 196.46 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
CSS
SVG
Language % Lines of code Comment lines Files
PHP53.7%7,8833,31220
CSS23.5%3,4511203
SVG14.8%2,16990102
PO File6.9%1,0181581
JavaScript0.9%13112
JSON0.1%1601
Total 14,668 3,681 129

PHP Code Analysis | More results »

Lines of code 6,100
Total complexity 1,189
Median class complexity 83.5
Median method complexity 5.0
Most complex class Lws\Classes\LwsOptimize
Most complex function Lws\Classes\LwsOptimize::__construct()
Classes 10
Methods 151
Functions 20

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Options wp_options 2

PHP Error Log 74 lines

[06-Nov-2024 14:59:23 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:24 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:24 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:26 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:27 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:27 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:27 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:27 UTC] {
    "code": "NO_PARAM",
    "data": {
        "filebased_cache": {
            "state": "true",
            "preload": "true",
            "preload_amount": "5",
            "preload_done": 0,
            "preload_ongoing": "true"
        },
        "autopurge": {
            "state": "true"
        },
        "cache_logged_user": {
            "state": "true"
        }
    }
}
[06-Nov-2024 14:59:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Lws\Classes\LwsOptimize::lws_optimize_clear_cloudflare_cache() in /wp-content/plugins/lws-optimize/Classes/FileCache/LwsOptimizeAutoPurge.php:94
Stack trace:
#0 /wp-includes/class-wp-hook.php(326): Lws\Classes\FileCache\LwsOptimizeAutoPurge->lwsop_remove_cache_post_change()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/post.php(4891): do_action()
#4 /wp-admin/includes/post.php(766): wp_insert_post()
#5 /wp-admin/post-new.php(66): get_default_post_to_edit()
#6 {main}
  thrown in /wp-content/plugins/lws-optimize/Classes/FileCache/LwsOptimizeAutoPurge.php on line 94
[06-Nov-2024 14:59:27 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:28 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:28 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:28 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:29 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:29 UTC] {
    "code": "NO_PARAM",
    "data": {
        "filebased_cache": {
            "state": "true",
            "preload": "true",
            "preload_amount": "5",
            "preload_done": 0,
            "preload_ongoing": "true"
        },
        "autopurge": {
            "state": "true"
        },
        "cache_logged_user": {
            "state": "true"
        }
    }
}
[06-Nov-2024 14:59:29 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Lws\Classes\LwsOptimize::lws_optimize_clear_cloudflare_cache() in /wp-content/plugins/lws-optimize/Classes/FileCache/LwsOptimizeAutoPurge.php:94
Stack trace:
#0 /wp-includes/class-wp-hook.php(326): Lws\Classes\FileCache\LwsOptimizeAutoPurge->lwsop_remove_cache_post_change()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/post.php(4891): do_action()
#4 /wp-admin/includes/post.php(766): wp_insert_post()
#5 /wp-admin/post-new.php(66): get_default_post_to_edit()
#6 {main}
  thrown in /wp-content/plugins/lws-optimize/Classes/FileCache/LwsOptimizeAutoPurge.php on line 94
[06-Nov-2024 14:59:29 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:29 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:29 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:29 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:30 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
[06-Nov-2024 14:59:30 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6085
See also: All tests for this plugin, How to Hide the "LWS Optimize" Admin Menu