Autoptimize 2.9.4

Does Autoptimize work with WordPress 5.8.2 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
14PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 133.09 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 version5.8.2
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=148d0dafdb
Aspect after-activation
HTTP status 200
Load time 0.458 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.041 s
Memory usage 5.48 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.183 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.734 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.196 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.807 s
Memory usage 3.4 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.249 s
Memory usage 2.97 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.644 s
Memory usage 5.41 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.646 s
Memory usage 5.39 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.289 s0.263 s-0.026 s3.08 MiB3.22 MiB+ 139.54 KiB
/wp-admin/edit.php0.175 s0.195 s+0.020 s3.11 MiB3.31 MiB+ 204.91 KiB
/wp-admin/post-new.php0.745 s0.902 s+0.157 s5.27 MiB5.41 MiB+ 144.23 KiB
/wp-admin/upload.php0.486 s0.588 s+0.102 s3.03 MiB3.16 MiB+ 138.38 KiB
/wp-admin/options-writing.php0.254 s0.173 s-0.081 s3.02 MiB3.14 MiB+ 123.63 KiB
/wp-admin/media-new.php0.332 s0.206 s-0.126 s3.01 MiB3.14 MiB+ 139.48 KiB
/wp-admin/edit-tags.php?taxonomy=category0.173 s0.200 s+0.027 s3.04 MiB3.18 MiB+ 140.39 KiB
/wp-admin/post-new.php?post_type=page0.610 s0.640 s+0.030 s5.26 MiB5.39 MiB+ 139.84 KiB
/wp-admin/options-discussion.php0.210 s0.270 s+0.060 s3 MiB3.14 MiB+ 141.07 KiB
/wp-admin/edit-comments.php0.202 s0.219 s+0.017 s3.04 MiB3.18 MiB+ 138.42 KiB
/0.265 s0.225 s-0.040 s2.96 MiB2.97 MiB+ 14.13 KiB
Average 0.340 s0.353 s+0.013 s3.44 MiB3.57 MiB+ 133.09 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.1%9,6762,84838
CSS6.4%66894
JavaScript1.6%165113
HTML0.0%101
Total 10,510 2,868 46

PHP Code Analysis | More results »

Lines of code 8,978
Total complexity 2,185
Median class complexity 69.5
Median method complexity 3.0
Most complex class autoptimizeImages
Most complex function autoptimizeConfig::show_config()
Classes 26
Methods 348
Functions 10

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 14 lines

[28-Dec-2021 04:57:05 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 1098
[28-Dec-2021 04:57:05 UTC] PHP Notice:  Trying to access array offset on value of type null in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 1098
[28-Dec-2021 04:57:05 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 1107
[28-Dec-2021 04:57:05 UTC] PHP Notice:  Trying to access array offset on value of type null in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 1107
[28-Dec-2021 04:57:05 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 1153
[28-Dec-2021 04:57:05 UTC] PHP Notice:  Trying to access array offset on value of type null in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 1153
[28-Dec-2021 04:57:08 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 214
[28-Dec-2021 04:57:08 UTC] PHP Notice:  Trying to access array offset on value of type null in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 214
[28-Dec-2021 04:57:08 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 215
[28-Dec-2021 04:57:08 UTC] PHP Notice:  Trying to access array offset on value of type null in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 215
[28-Dec-2021 04:57:14 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 214
[28-Dec-2021 04:57:14 UTC] PHP Notice:  Trying to access array offset on value of type null in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 214
[28-Dec-2021 04:57:14 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 215
[28-Dec-2021 04:57:14 UTC] PHP Notice:  Trying to access array offset on value of type null in /wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 215
See also: All tests for this plugin, How to Hide Autoptimize Admin Menus and Meta Boxes