Autoptimize 3.1.5

Does Autoptimize work with WordPress 6.1.1 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: 142.57 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.1.1
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=9557ca33f8
Aspect after-activation
HTTP status 200
Load time 0.526 s
Memory usage 3.22 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.141 s
Memory usage 5.37 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.174 s
Memory usage 3.11 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.748 s
Memory usage 3.23 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.186 s
Memory usage 3.11 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.955 s
Memory usage 4.15 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.253 s
Memory usage 3.08 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.801 s
Memory usage 5.12 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.649 s
Memory usage 5.1 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.622 s0.264 s-0.358 s3.05 MiB3.18 MiB+ 136.82 KiB
/wp-admin/edit.php0.193 s0.190 s-0.003 s3.07 MiB3.21 MiB+ 137.31 KiB
/wp-admin/post-new.php0.772 s0.937 s+0.165 s4.97 MiB5.12 MiB+ 153.25 KiB
/wp-admin/upload.php0.565 s0.465 s-0.100 s2.99 MiB3.13 MiB+ 139.69 KiB
/wp-admin/options-writing.php0.175 s0.166 s-0.009 s2.99 MiB3.11 MiB+ 127.61 KiB
/wp-admin/media-new.php0.282 s0.251 s-0.031 s2.97 MiB3.12 MiB+ 152.19 KiB
/wp-admin/edit-tags.php?taxonomy=category0.179 s0.191 s+0.012 s2.98 MiB3.13 MiB+ 157.98 KiB
/wp-admin/post-new.php?post_type=page0.609 s0.662 s+0.053 s4.96 MiB5.1 MiB+ 144.87 KiB
/wp-admin/options-discussion.php0.215 s0.207 s-0.008 s2.97 MiB3.11 MiB+ 141.77 KiB
/wp-admin/edit-comments.php0.200 s0.210 s+0.010 s3 MiB3.14 MiB+ 140.48 KiB
/0.280 s0.230 s-0.050 s2.94 MiB3.08 MiB+ 136.36 KiB
Average 0.372 s0.343 s-0.029 s3.35 MiB3.49 MiB+ 142.57 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,4553,09139
CSS5.9%67094
JavaScript1.6%177113
HTML0.0%101
Total 11,303 3,111 47

PHP Code Analysis | More results »

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

[19-Jan-2023 14:21:03 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
[19-Jan-2023 14:21:03 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
[19-Jan-2023 14:21:05 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
[19-Jan-2023 14:21:06 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