Autoptimize 3.1.13

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

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 170.12 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.8.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 10

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=e7fec85f0a
Aspect after-activation
HTTP status 200
Load time 0.363 s
Memory usage 3.79 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.008 s
Memory usage 6.35 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.193 s
Memory usage 3.65 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.810 s
Memory usage 3.72 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.201 s
Memory usage 3.65 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.779 s
Memory usage 4.65 MiB
JS errors None
Resource errors None

Settings → Autoptimize → Page Cache

Page screenshot: Settings → Autoptimize →  Page Cache
URL /wp-admin/options-general.php?page=ao_protab
Aspect menu-item-tab
HTTP status 200
Load time 0.678 s
Memory usage 3.65 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.326 s
Memory usage 3.56 MiB
JS errors None
Resource errors None

Add Post ‹ Test site — WordPress

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

Add Page ‹ Test site — WordPress

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

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.387 s0.331 s-0.056 s3.51 MiB3.68 MiB+ 177.11 KiB
/wp-admin/edit.php0.209 s0.216 s+0.007 s3.57 MiB3.76 MiB+ 190.89 KiB
/wp-admin/post-new.php0.825 s1.136 s+0.311 s6.06 MiB6.3 MiB+ 240.11 KiB
/wp-admin/upload.php0.785 s0.757 s-0.028 s3.52 MiB3.67 MiB+ 153.16 KiB
/wp-admin/options-writing.php0.234 s0.199 s-0.035 s3.5 MiB3.65 MiB+ 157.18 KiB
/wp-admin/media-new.php0.266 s0.249 s-0.017 s3.49 MiB3.65 MiB+ 165.35 KiB
/wp-admin/edit-tags.php?taxonomy=category0.210 s0.203 s-0.007 s3.5 MiB3.68 MiB+ 176.34 KiB
/wp-admin/post-new.php?post_type=page0.764 s0.630 s-0.134 s6.05 MiB6.22 MiB+ 171.66 KiB
/wp-admin/options-discussion.php0.472 s0.620 s+0.148 s3.5 MiB3.65 MiB+ 154.3 KiB
/wp-admin/edit-comments.php0.255 s0.236 s-0.019 s3.52 MiB3.67 MiB+ 153.18 KiB
/0.317 s0.261 s-0.056 s3.43 MiB3.56 MiB+ 131.98 KiB
Average 0.429 s0.440 s+0.010 s3.97 MiB4.14 MiB+ 170.12 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.7%10,7653,18540
CSS5.8%67094
JavaScript1.5%177113
HTML0.0%101
Total 11,613 3,205 48

PHP Code Analysis | More results »

Lines of code 10,042
Total complexity 2,570
Median class complexity 70.5
Median method complexity 3.0
Most complex class autoptimizeImages
Most complex function autoptimizeConfig::show_config()
Classes 28
Methods 386
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

The log file is empty.

See also: All tests for this plugin, How to Hide Autoptimize Admin Menus and Meta Boxes