Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.86MB] [CPU: ▼1.44ms] Passed 4 tests
This is a short check of server-side resources used by Debloat - Remove Unused CSS, Optimize JS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 36.19 ▼3.36 |
Dashboard /wp-admin | 4.41 ▲1.07 | 53.73 ▼4.64 |
Posts /wp-admin/edit.php | 4.43 ▲1.08 | 55.49 ▲9.01 |
Add New Post /wp-admin/post-new.php | 6.93 ▲1.05 | 88.78 ▼5.34 |
Media Library /wp-admin/upload.php | 4.27 ▲1.04 | 45.31 ▲7.59 |
Debloat: Optimize /wp-admin/options-general.php?page=debloat_options | 4.82 | 53.59 |
Optimize JS /wp-admin/admin.php?page=debloat_options_js | 4.73 | 43.52 |
Delete Cache /wp-admin/admin.php?page=debloat-delete-cache | 4.17 | 37.90 |
General Settings /wp-admin/admin.php?page=debloat_options_general | 4.61 | 42.44 |
Server storage [IO: ▲3.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 470 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Debloat - Remove Unused CSS, Optimize JS: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲83 | 14.39 ▼0.01 | 2.06 ▲0.25 | 38.42 ▼5.44 |
Dashboard /wp-admin | 2,207 ▲33 | 5.59 ▲0.04 | 85.96 ▼7.99 | 40.16 ▼3.74 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.04 ▲0.08 | 37.72 ▲2.06 | 35.61 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.33 ▲0.16 | 687.69 ▼10.16 | 48.80 ▼19.09 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.31 ▲0.17 | 99.74 ▼16.73 | 43.01 ▼5.86 |
Debloat: Optimize /wp-admin/options-general.php?page=debloat_options | 1,590 | 2.36 | 47.27 | 39.81 |
Optimize JS /wp-admin/admin.php?page=debloat_options_js | 1,213 | 2.14 | 37.42 | 36.29 |
Delete Cache /wp-admin/admin.php?page=debloat-delete-cache | 669 | 1.33 | 6.80 | 13.51 |
General Settings /wp-admin/admin.php?page=debloat_options_general | 940 | 2.23 | 28.63 | 32.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 80× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/debloat/vendor/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Parsing\\UnexpectedTokenException' not found in wp-content/plugins/debloat/vendor/sabberworm/php-css-parser/src/Parsing/UnexpectedEOFException.php:10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/debloat/vendor/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/debloat/vendor/sabberworm/php-css-parser/src/Property/Import.php:12
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/debloat/vendor/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/debloat/vendor/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\ValueList' not found in wp-content/plugins/debloat/vendor/sabberworm/php-css-parser/src/Value/CSSFunction.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/debloat/vendor/sabberworm/php-css-parser/src/Property/Charset.php:17
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\CSSFunction' not found in wp-content/plugins/debloat/vendor/sabberworm/php-css-parser/src/Value/Color.php:14
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Parsing\\SourceException' not found in wp-content/plugins/debloat/vendor/sabberworm/php-css-parser/src/Parsing/OutputException.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: speed, uncss, optimize, performance
debloat/debloat.php Passed 13 tests
The principal PHP file in "Debloat - Remove Unused CSS, Optimize JS" v. 1.2.5 is loaded by WordPress automatically on each request
68 characters long description:
Remove Unused CSS, Optimize CSS, Optimize JS and speed up your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin57,190 lines of code in 311 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 144 | 3,989 | 11,371 | 15,677 |
CSS | 13 | 269 | 1,205 | 4,673 |
JavaScript | 13 | 448 | 659 | 2,003 |
Sass | 17 | 306 | 29 | 1,427 |
Markdown | 2 | 106 | 0 | 607 |
JSON | 1 | 0 | 0 | 472 |
XML | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 17.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 141 | |
▷ Abstract classes | 19 | 13.48% |
▷ Concrete classes | 122 | 86.52% |
▷ Final classes | 0 | 0.00% |
Methods | 1,090 | |
▷ Static methods | 151 | 13.85% |
▷ Public methods | 921 | 84.50% |
▷ Protected methods | 146 | 13.39% |
▷ Private methods | 23 | 2.11% |
Functions | 88 | |
▷ Named functions | 40 | 45.45% |
▷ Anonymous functions | 48 | 54.55% |
Constants | 25 | |
▷ Global constants | 4 | 16.00% |
▷ Class constants | 21 | 84.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
vendor/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |