Reduce Unused CSS Solution with Critical CSS For WP 1.0.7

Does "Reduce Unused CSS Solution with Critical CSS For WP" work with WordPress 6.2.2 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: 37.34 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.2.2
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=40cfb9b42f
Aspect after-activation
HTTP status 200
Load time 0.275 s
Memory usage 3.05 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.611 s
Memory usage 3.02 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.153 s
Memory usage 3.02 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.139 s
Memory usage 3.02 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.224 s
Memory usage 3.04 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.284 s0.221 s-0.063 s3.07 MiB3.11 MiB+ 36.52 KiB
/wp-admin/edit.php0.182 s0.199 s+0.017 s3.1 MiB3.18 MiB+ 84.74 KiB
/wp-admin/post-new.php0.736 s0.929 s+0.193 s5.02 MiB5.06 MiB+ 41.31 KiB
/wp-admin/upload.php0.537 s0.283 s-0.254 s3.02 MiB3.04 MiB+ 19.2 KiB
/wp-admin/options-writing.php0.174 s0.134 s-0.040 s3.01 MiB3.02 MiB+ 5.95 KiB
/wp-admin/media-new.php0.300 s0.334 s+0.034 s2.99 MiB3.02 MiB+ 31.38 KiB
/wp-admin/edit-tags.php?taxonomy=category0.200 s0.235 s+0.035 s3.01 MiB3.04 MiB+ 36.55 KiB
/wp-admin/post-new.php?post_type=page0.589 s0.593 s+0.004 s5.01 MiB5.05 MiB+ 41.23 KiB
/wp-admin/options-discussion.php0.207 s0.219 s+0.012 s3 MiB3.02 MiB+ 19.69 KiB
/wp-admin/edit-comments.php0.211 s0.198 s-0.013 s3.03 MiB3.05 MiB+ 19.23 KiB
/0.305 s0.200 s-0.105 s2.97 MiB3.04 MiB+ 74.99 KiB
Average 0.339 s0.322 s-0.016 s3.38 MiB3.42 MiB+ 37.34 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
PHP75.9%1,758715
CSS13.9%32281
JavaScript10.0%23131
JSON0.2%501
Total 2,316 82 8

PHP Code Analysis | More results »

Lines of code 1,782
Total complexity 353
Median class complexity 219.0
Median method complexity 5.0
Most complex class class_critical_css_for_wp
Most complex function ccwp_delay_js_html()
Classes 1
Methods 34
Functions 27

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