Reduce Unused CSS Solution with Critical CSS For WP 1.0.5

Does "Reduce Unused CSS Solution with Critical CSS For WP" work with WordPress 6.1.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: 40.48 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.291 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.1.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 1,000+
WordPress.org page https://wordpress.org/plugins/critical-css-for-wp/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

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=critical-css-for-wp%2Fcritical-css-for-wp.php&plugin_status=all&paged=1&s&_wpnonce=24b7e9abdd
Aspect after-activation
HTTP status 200
Load time 0.415 s
Memory usage 3.03 MiB
JS errors None
Resource errors None

Critical CSS For WP

Page screenshot: Critical CSS For WP
URL /wp-admin/admin.php?page=critical-css-for-wp
Aspect menu-item
HTTP status 200
Load time 0.731 s
Memory usage 3 MiB
JS errors None
Resource errors None

Critical CSS For WP → Advance

Page screenshot: Critical CSS For WP → Advance
URL /wp-admin/admin.php?page=critical-css-for-wp&tab=advance
Aspect menu-item-tab
HTTP status 200
Load time 0.403 s
Memory usage 3 MiB
JS errors None
Resource errors None

Critical CSS For WP → Support

Page screenshot: Critical CSS For WP → Support
URL /wp-admin/admin.php?page=critical-css-for-wp&tab=support
Aspect menu-item-tab
HTTP status 200
Load time 0.390 s
Memory usage 3 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.328 s
Memory usage 3.02 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.291 s0.574 s+0.283 s3.05 MiB3.08 MiB+ 39.21 KiB
/wp-admin/edit.php0.193 s0.327 s+0.134 s3.07 MiB3.16 MiB+ 87.44 KiB
/wp-admin/post-new.php0.807 s1.798 s+0.991 s4.97 MiB5.01 MiB+ 48.02 KiB
/wp-admin/upload.php0.552 s0.723 s+0.171 s2.99 MiB3.01 MiB+ 21.89 KiB
/wp-admin/options-writing.php0.150 s0.236 s+0.086 s2.99 MiB3 MiB+ 8.54 KiB
/wp-admin/media-new.php0.313 s0.288 s-0.025 s2.97 MiB3 MiB+ 34.08 KiB
/wp-admin/edit-tags.php?taxonomy=category0.175 s0.194 s+0.019 s2.98 MiB3.02 MiB+ 39.25 KiB
/wp-admin/post-new.php?post_type=page0.634 s1.807 s+1.173 s4.96 MiB5 MiB+ 43.94 KiB
/wp-admin/options-discussion.php0.221 s0.297 s+0.076 s2.98 MiB3 MiB+ 22.38 KiB
/wp-admin/edit-comments.php0.187 s0.431 s+0.244 s3 MiB3.02 MiB+ 21.92 KiB
/0.291 s0.342 s+0.051 s2.94 MiB3.02 MiB+ 78.59 KiB
Average 0.347 s0.638 s+0.291 s3.35 MiB3.39 MiB+ 40.48 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
CSS
JavaScript
Language % Lines of code Comment lines Files
PHP74.9%1,665735
CSS14.5%32281
JavaScript10.4%23131
JSON0.2%501
Total 2,223 84 8

PHP Code Analysis | More results »

Lines of code 1,679
Total complexity 358
Median class complexity 207.0
Median method complexity 6.0
Most complex class class_critical_css_for_wp
Most complex function ccwp_delay_js_html()
Classes 1
Methods 32
Functions 30

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.

Database Tables 1

Options wp_options 1

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "Critical CSS For WP" Admin Menu