Autoptimize 2.8.1

Does Autoptimize work with WordPress 5.7 and PHP 7.4.8? 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: 122.36 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.7
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 7

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=e724e44838
Aspect after-activation
HTTP status 200
Load time 1.138 s
Memory usage 3 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.245 s
Memory usage 5.16 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.259 s
Memory usage 2.8 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.863 s
Memory usage 3 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 2.8 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.799 s
Memory usage 3.14 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.402 s
Memory usage 2.72 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.358 s0.391 s+0.033 s2.82 MiB2.95 MiB+ 133.45 KiB
/wp-admin/edit.php0.457 s0.242 s-0.215 s2.86 MiB2.99 MiB+ 133.71 KiB
/wp-admin/post-new.php1.732 s1.084 s-0.648 s5.02 MiB5.17 MiB+ 152.84 KiB
/wp-admin/upload.php0.639 s0.531 s-0.108 s2.7 MiB2.82 MiB+ 132.28 KiB
/wp-admin/options-writing.php0.232 s0.235 s+0.003 s2.71 MiB2.81 MiB+ 99.66 KiB
/wp-admin/media-new.php0.254 s0.213 s-0.041 s2.67 MiB2.8 MiB+ 133.08 KiB
/wp-admin/edit-tags.php?taxonomy=category0.235 s0.217 s-0.018 s2.77 MiB2.9 MiB+ 135.55 KiB
/wp-admin/post-new.php?post_type=page0.758 s0.737 s-0.021 s5.01 MiB5.15 MiB+ 148.45 KiB
/wp-admin/options-discussion.php0.247 s0.257 s+0.010 s2.67 MiB2.8 MiB+ 133.1 KiB
/wp-admin/edit-comments.php0.251 s0.267 s+0.016 s2.78 MiB2.91 MiB+ 132.95 KiB
/0.467 s0.252 s-0.215 s2.71 MiB2.72 MiB+ 10.87 KiB
Average 0.512 s0.402 s-0.109 s3.16 MiB3.28 MiB+ 122.36 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
PHP94.0%8,8672,71036
CSS5.2%49593
JavaScript0.7%69112
HTML0.0%101
Total 9,432 2,730 42

PHP Code Analysis | More results »

Lines of code 8,233
Total complexity 1,943
Median class complexity 63.5
Median method complexity 3.0
Most complex class autoptimizeImages
Most complex function autoptimizeConfig::show_config()
Classes 24
Methods 325
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 4

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "Autoptimize" Admin Menu