Autoptimize 3.1.6

Does Autoptimize work with WordPress 6.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: 144.68 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.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=3f89364421
Aspect after-activation
HTTP status 200
Load time 0.308 s
Memory usage 3.25 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 1.020 s
Memory usage 5.4 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.185 s
Memory usage 3.14 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.842 s
Memory usage 3.26 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.192 s
Memory usage 3.14 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.870 s
Memory usage 4.18 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.251 s
Memory usage 3.1 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.720 s
Memory usage 5.17 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.636 s
Memory usage 5.15 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.709 s0.256 s-0.453 s3.07 MiB3.21 MiB+ 141.42 KiB
/wp-admin/edit.php0.180 s0.210 s+0.030 s3.1 MiB3.24 MiB+ 141.61 KiB
/wp-admin/post-new.php0.765 s0.945 s+0.180 s5.02 MiB5.17 MiB+ 152.05 KiB
/wp-admin/upload.php0.584 s0.293 s-0.291 s3.02 MiB3.16 MiB+ 144.35 KiB
/wp-admin/options-writing.php0.176 s0.264 s+0.088 s3.02 MiB3.14 MiB+ 132.64 KiB
/wp-admin/media-new.php0.277 s0.285 s+0.008 s2.99 MiB3.14 MiB+ 147.69 KiB
/wp-admin/edit-tags.php?taxonomy=category0.178 s0.185 s+0.007 s3.01 MiB3.17 MiB+ 161.66 KiB
/wp-admin/post-new.php?post_type=page0.624 s0.663 s+0.039 s5.01 MiB5.15 MiB+ 143.66 KiB
/wp-admin/options-discussion.php0.217 s0.247 s+0.030 s3 MiB3.15 MiB+ 146.69 KiB
/wp-admin/edit-comments.php0.212 s0.217 s+0.005 s3.03 MiB3.17 MiB+ 144.04 KiB
/0.284 s0.225 s-0.059 s2.97 MiB3.1 MiB+ 135.69 KiB
Average 0.382 s0.345 s-0.038 s3.39 MiB3.53 MiB+ 144.68 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.5%10,5193,11739
CSS5.9%67094
JavaScript1.6%177113
HTML0.0%101
Total 11,367 3,137 47

PHP Code Analysis | More results »

Lines of code 9,788
Total complexity 2,483
Median class complexity 73.0
Median method complexity 3.0
Most complex class autoptimizeImages
Most complex function autoptimizeConfig::show_config()
Classes 27
Methods 377
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

[29-Mar-2023 19:12:31 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
[29-Mar-2023 19:12:32 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
[29-Mar-2023 19:12:34 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
[29-Mar-2023 19:12:35 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