Autoptimize 3.1.8.1

Does Autoptimize work with WordPress 6.3.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
4PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 138.69 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.3.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 1,000,000+
WordPress.org page https://wordpress.org/plugins/autoptimize/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 9

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=autoptimize%2Fautoptimize.php&plugin_status=all&paged=1&s&_wpnonce=62b1bd7c82
Aspect after-activation
HTTP status 200
Load time 0.329 s
Memory usage 2.99 MiB
JS errors None
Resource errors None

Settings → Autoptimize

Page screenshot: Settings → Autoptimize
URL /wp-admin/options-general.php?page=autoptimize
Aspect menu-item
HTTP status 200
Load time 0.954 s
Memory usage 5.15 MiB
JS errors None
Resource errors None

Settings → Autoptimize → Images

Page screenshot: Settings → Autoptimize → Images
URL /wp-admin/options-general.php?page=autoptimize_imgopt
Aspect menu-item-tab
HTTP status 200
Load time 0.202 s
Memory usage 2.88 MiB
JS errors None
Resource errors None

Settings → Autoptimize → Critical CSS

Page screenshot: Settings → Autoptimize →  Critical CSS
URL /wp-admin/options-general.php?page=ao_critcss
Aspect menu-item-tab
HTTP status 200
Load time 0.752 s
Memory usage 3 MiB
JS errors None
Resource errors None

Settings → Autoptimize → Extra

Page screenshot: Settings → Autoptimize → Extra
URL /wp-admin/options-general.php?page=autoptimize_extra
Aspect menu-item-tab
HTTP status 200
Load time 0.210 s
Memory usage 2.86 MiB
JS errors None
Resource errors None

Settings → Autoptimize → Optimize More!

Page screenshot: Settings → Autoptimize → Optimize More!
URL /wp-admin/options-general.php?page=ao_partners
Aspect menu-item-tab
HTTP status 200
Load time 0.803 s
Memory usage 3.92 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.194 s
Memory usage 3.2 MiB
JS errors None
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.602 s
Memory usage 5.38 MiB
JS errors None
Resource errors None

Add New Page ‹ Test site — WordPress

Page screenshot: Add New Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 0.580 s
Memory usage 5.37 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.379 s0.335 s-0.044 s2.83 MiB2.96 MiB+ 136.05 KiB
/wp-admin/edit.php0.218 s0.200 s-0.018 s2.85 MiB2.99 MiB+ 136.23 KiB
/wp-admin/post-new.php0.745 s0.719 s-0.026 s5.22 MiB5.38 MiB+ 168.21 KiB
/wp-admin/upload.php0.613 s0.461 s-0.152 s2.77 MiB2.91 MiB+ 138.97 KiB
/wp-admin/options-writing.php0.237 s0.195 s-0.042 s2.76 MiB2.89 MiB+ 131.22 KiB
/wp-admin/media-new.php0.295 s0.240 s-0.055 s2.74 MiB2.88 MiB+ 142.31 KiB
/wp-admin/edit-tags.php?taxonomy=category0.199 s0.187 s-0.012 s2.76 MiB2.91 MiB+ 156.28 KiB
/wp-admin/post-new.php?post_type=page0.596 s0.581 s-0.015 s5.21 MiB5.37 MiB+ 163.83 KiB
/wp-admin/options-discussion.php0.205 s0.244 s+0.039 s2.75 MiB2.89 MiB+ 141 KiB
/wp-admin/edit-comments.php0.280 s0.397 s+0.117 s2.78 MiB2.92 MiB+ 138.66 KiB
/0.485 s0.222 s-0.263 s3.13 MiB3.2 MiB+ 72.78 KiB
Average 0.387 s0.344 s-0.043 s3.25 MiB3.39 MiB+ 138.69 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
Language % Lines of code Comment lines Files
PHP92.6%10,5613,12039
CSS5.9%67094
JavaScript1.6%177113
HTML0.0%101
Total 11,409 3,140 47

PHP Code Analysis | More results »

Lines of code 9,830
Total complexity 2,498
Median class complexity 73.0
Median method complexity 3.0
Most complex class autoptimizeImages
Most complex function autoptimizeConfig::show_config()
Classes 27
Methods 378
Functions 11

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

Meta Boxes

{
    "post": {
        "ao_metabox": {
            "title": "Autoptimize this page",
            "context": "side"
        }
    },
    "page": {
        "ao_metabox": {
            "title": "Autoptimize this page",
            "context": "side"
        }
    }
}

PHP Error Log 4 lines

[12-Oct-2023 21:23:50 UTC] PHP Deprecated:  strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-admin/admin-header.php on line 36
[12-Oct-2023 21:23:51 UTC] PHP Deprecated:  strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-admin/admin-header.php on line 36
[12-Oct-2023 21:23:52 UTC] PHP Deprecated:  strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-admin/admin-header.php on line 36
[12-Oct-2023 21:23:53 UTC] PHP Deprecated:  strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-admin/admin-header.php on line 36
See also: All tests for this plugin, How to Hide Autoptimize Admin Menus and Meta Boxes