Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▼5.37ms] Passed 4 tests
A check of server-side resources used by CSS Optimizer - Remove Unused CSS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 41.61 ▼0.50 |
Dashboard /wp-admin | 3.56 ▲0.22 | 48.30 ▼17.00 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 53.23 ▲6.79 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 85.04 ▼9.27 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 39.97 ▲5.30 |
CSS Optimizer /wp-admin/options-general.php?page=cssoptimizer | 3.46 | 35.29 |
CSS Optimizer /wp-admin/admin.php?page=cssoptimizer_support | 3.45 | 33.72 |
CSS Optimizer /wp-admin/admin.php?page=cssoptimizer_jobqueue | 3.45 | 32.44 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- You have illegally modified 2 files (0.00KB) outside of "wp-content/plugins/css-optimizer-remove-unused-css/" and "wp-content/uploads/"
- (new file) wp-content/cache/cssoptimizer/css_job_queue.txt
- (new file) wp-content/cache/cssoptimizer/css_optimizer_log.txt
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
cssoptimizer_options_exclude_css |
cssoptimizer_options_safelist |
cssoptimizer_first_time_guide |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for CSS Optimizer - Remove Unused CSS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲19 | 14.28 ▼0.07 | 1.72 ▼0.16 | 44.92 ▲1.82 |
Dashboard /wp-admin | 2,208 ▲31 | 5.57 ▼0.09 | 84.80 ▼15.59 | 39.45 ▼7.26 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.14 ▲0.15 | 38.73 ▲2.13 | 36.77 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.59 ▲0.45 | 604.85 ▼85.41 | 54.14 ▼0.45 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.24 ▲0.01 | 99.82 ▲3.17 | 46.04 ▲2.58 |
CSS Optimizer /wp-admin/options-general.php?page=cssoptimizer | 1,125 | 2.33 | 40.61 | 56.87 |
CSS Optimizer /wp-admin/admin.php?page=cssoptimizer_support | 809 | 1.74 | 25.74 | 28.40 |
CSS Optimizer /wp-admin/admin.php?page=cssoptimizer_jobqueue | 818 | 1.90 | 26.07 | 33.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- cssoptimizer_first_time_guide
- cssoptimizer_options_safelist
- cssoptimizer_options_exclude_css
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/css-optimizer-remove-unused-css/css_optimizer.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== css-optimizer-remove-unused-css ===
)
css-optimizer-remove-unused-css/css_optimizer.php 85% from 13 tests
"CSS Optimizer - Remove Unused CSS" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("css-optimizer-remove-unused-css.php" instead of "css_optimizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin907 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 303 | 650 | 818 |
CSS | 1 | 17 | 1 | 89 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/caret-down.png | 1.76KB | 0.31KB | ▼ 82.09% |