Autoptimize 3.1.9

Does Autoptimize work with WordPress 6.4.1 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: 158.24 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.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=044fa18d4c
Aspect after-activation
HTTP status 200
Load time 0.356 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.002 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.236 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.785 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.254 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.877 s
Memory usage 4.5 MiB
JS errors None
Resource errors None

Settings → Autoptimize → Pro Boosters

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

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.414 s0.366 s-0.048 s3.38 MiB3.54 MiB+ 159.64 KiB
/wp-admin/edit.php0.264 s0.479 s+0.215 s3.41 MiB3.56 MiB+ 160.13 KiB
/wp-admin/post-new.php0.927 s0.660 s-0.267 s5.46 MiB5.63 MiB+ 172.77 KiB
/wp-admin/upload.php0.631 s0.425 s-0.206 s3.32 MiB3.48 MiB+ 163.67 KiB
/wp-admin/options-writing.php0.237 s0.220 s-0.017 s3.32 MiB3.47 MiB+ 156.54 KiB
/wp-admin/media-new.php0.344 s0.289 s-0.055 s3.29 MiB3.47 MiB+ 175.8 KiB
/wp-admin/edit-tags.php?taxonomy=category0.222 s0.218 s-0.004 s3.31 MiB3.49 MiB+ 180.98 KiB
/wp-admin/post-new.php?post_type=page0.653 s0.816 s+0.163 s5.45 MiB5.61 MiB+ 168.38 KiB
/wp-admin/options-discussion.php0.433 s0.323 s-0.110 s3.3 MiB3.46 MiB+ 165.69 KiB
/wp-admin/edit-comments.php0.271 s0.255 s-0.016 s3.33 MiB3.49 MiB+ 162.62 KiB
/0.348 s0.263 s-0.085 s3.36 MiB3.43 MiB+ 74.41 KiB
Average 0.431 s0.392 s-0.039 s3.72 MiB3.88 MiB+ 158.24 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.6%10,6643,14540
CSS5.8%67094
JavaScript1.5%177113
HTML0.0%101
Total 11,512 3,165 48

PHP Code Analysis | More results »

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

[09-Nov-2023 02:26:12 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
[09-Nov-2023 02:26:13 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
[09-Nov-2023 02:26:14 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
[09-Nov-2023 02:26:15 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
[09-Nov-2023 02:26:17 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