Reduce Unused CSS Solution with Critical CSS For WP 1.0.13

Does "Reduce Unused CSS Solution with Critical CSS For WP" work with WordPress 6.5.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: 40.87 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.5.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=b9cb304f9b
Aspect after-activation
HTTP status 200
Load time 0.300 s
Memory usage 3.42 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.211 s
Memory usage 3.38 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.281 s
Memory usage 3.38 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.249 s
Memory usage 3.38 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.178 s
Memory usage 3.43 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.388 s0.295 s-0.093 s3.44 MiB3.48 MiB+ 45.13 KiB
/wp-admin/edit.php0.222 s0.194 s-0.028 s3.46 MiB3.57 MiB+ 106.84 KiB
/wp-admin/post-new.php0.978 s0.755 s-0.223 s5.59 MiB5.64 MiB+ 49.54 KiB
/wp-admin/upload.php0.587 s0.425 s-0.162 s3.38 MiB3.41 MiB+ 27.76 KiB
/wp-admin/options-writing.php0.201 s0.170 s-0.031 s3.37 MiB3.39 MiB+ 19.72 KiB
/wp-admin/media-new.php0.292 s0.194 s-0.098 s3.35 MiB3.39 MiB+ 39.95 KiB
/wp-admin/edit-tags.php?taxonomy=category0.186 s0.179 s-0.007 s3.37 MiB3.41 MiB+ 45.12 KiB
/wp-admin/post-new.php?post_type=page0.560 s0.559 s-0.001 s5.59 MiB5.63 MiB+ 45.13 KiB
/wp-admin/options-discussion.php0.367 s0.449 s+0.082 s3.36 MiB3.39 MiB+ 28.25 KiB
/wp-admin/edit-comments.php0.238 s0.261 s+0.023 s3.39 MiB3.42 MiB+ 27.79 KiB
/0.300 s0.190 s-0.110 s3.42 MiB3.43 MiB+ 14.39 KiB
Average 0.393 s0.334 s-0.059 s3.79 MiB3.83 MiB+ 40.87 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
PHP76.0%1,964705
CSS14.4%37381
JavaScript9.3%24131
JSON0.2%501
Total 2,583 81 8

PHP Code Analysis | More results »

Lines of code 1,992
Total complexity 383
Median class complexity 241.0
Median method complexity 6.0
Most complex class Class_critical_css_for_wp
Most complex function ccwp_delay_js_html()
Classes 1
Methods 34
Functions 28

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

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