Autoptimize 3.1.8

Does Autoptimize work with WordPress 6.2.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: 145.11 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.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=2ed9de17ef
Aspect after-activation
HTTP status 200
Load time 0.589 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 0.967 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.209 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.797 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.185 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.828 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.282 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.723 s
Memory usage 5.16 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.661 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.294 s0.295 s+0.001 s3.07 MiB3.21 MiB+ 141.42 KiB
/wp-admin/edit.php0.205 s0.212 s+0.007 s3.1 MiB3.24 MiB+ 141.61 KiB
/wp-admin/post-new.php0.789 s1.031 s+0.242 s5.02 MiB5.16 MiB+ 148.03 KiB
/wp-admin/upload.php0.581 s0.502 s-0.079 s3.02 MiB3.16 MiB+ 144.35 KiB
/wp-admin/options-writing.php0.183 s0.184 s+0.001 s3.01 MiB3.14 MiB+ 132.64 KiB
/wp-admin/media-new.php0.346 s0.266 s-0.080 s2.99 MiB3.14 MiB+ 156.48 KiB
/wp-admin/edit-tags.php?taxonomy=category0.192 s0.213 s+0.021 s3.01 MiB3.16 MiB+ 161.66 KiB
/wp-admin/post-new.php?post_type=page0.619 s0.700 s+0.081 s5.01 MiB5.15 MiB+ 143.65 KiB
/wp-admin/options-discussion.php0.216 s0.274 s+0.058 s3 MiB3.14 MiB+ 146.69 KiB
/wp-admin/edit-comments.php0.222 s0.240 s+0.018 s3.03 MiB3.17 MiB+ 144.04 KiB
/0.329 s0.247 s-0.082 s2.97 MiB3.1 MiB+ 135.68 KiB
Average 0.361 s0.379 s+0.017 s3.38 MiB3.53 MiB+ 145.11 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

[22-Jun-2023 09:48:36 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
[22-Jun-2023 09:48:37 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
[22-Jun-2023 09:48:38 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
[22-Jun-2023 09:48:39 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