Autoptimize 3.1.10

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

Summary

Errors
5PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 157.92 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.4.3
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=2a8c01dbac
Aspect after-activation
HTTP status 200
Load time 0.559 s
Memory usage 3.57 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.038 s
Memory usage 5.72 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.203 s
Memory usage 3.46 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.811 s
Memory usage 3.58 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.249 s
Memory usage 3.46 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 4.5 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.766 s
Memory usage 3.48 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.332 s
Memory usage 3.43 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.626 s
Memory usage 5.63 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.563 s
Memory usage 5.61 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.405 s0.404 s-0.001 s3.38 MiB3.54 MiB+ 159.29 KiB
/wp-admin/edit.php0.224 s0.275 s+0.051 s3.41 MiB3.56 MiB+ 159.77 KiB
/wp-admin/post-new.php1.020 s0.819 s-0.201 s5.46 MiB5.63 MiB+ 172.41 KiB
/wp-admin/upload.php0.710 s0.485 s-0.225 s3.32 MiB3.48 MiB+ 163.32 KiB
/wp-admin/options-writing.php0.235 s0.217 s-0.018 s3.32 MiB3.47 MiB+ 156.19 KiB
/wp-admin/media-new.php0.323 s0.296 s-0.027 s3.3 MiB3.47 MiB+ 175.45 KiB
/wp-admin/edit-tags.php?taxonomy=category0.212 s0.230 s+0.018 s3.31 MiB3.49 MiB+ 180.63 KiB
/wp-admin/post-new.php?post_type=page0.636 s0.607 s-0.029 s5.45 MiB5.61 MiB+ 168.03 KiB
/wp-admin/options-discussion.php0.312 s0.260 s-0.052 s3.3 MiB3.46 MiB+ 165.34 KiB
/wp-admin/edit-comments.php0.272 s0.240 s-0.032 s3.34 MiB3.49 MiB+ 162.27 KiB
/0.323 s0.257 s-0.066 s3.36 MiB3.43 MiB+ 74.41 KiB
Average 0.425 s0.372 s-0.053 s3.72 MiB3.88 MiB+ 157.92 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,7123,15640
CSS5.8%67094
JavaScript1.5%177113
HTML0.0%101
Total 11,560 3,176 48

PHP Code Analysis | More results »

Lines of code 9,988
Total complexity 2,542
Median class complexity 72.0
Median method complexity 3.0
Most complex class autoptimizeImages
Most complex function autoptimizeConfig::show_config()
Classes 28
Methods 385
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 5 lines

[30-Jan-2024 22:03: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
[30-Jan-2024 22:03:40 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
[30-Jan-2024 22:03:41 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
[30-Jan-2024 22:03:42 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
[30-Jan-2024 22:03:44 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