Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲2.68MB] [CPU: ▲11.17ms] Passed 4 tests
An overview of server-side resources used by RapidLoad 2.1 - Speed Monster in One Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.93 ▲2.46 | 62.06 ▲18.61 |
Dashboard /wp-admin | 6.06 ▲2.71 | 68.80 ▲6.25 |
Posts /wp-admin/edit.php | 6.15 ▲2.79 | 62.72 ▲17.22 |
Add New Post /wp-admin/post-new.php | 8.77 ▲2.89 | 98.84 ▲2.58 |
Media Library /wp-admin/upload.php | 5.99 ▲2.76 | 58.56 ▲25.85 |
Server storage [IO: ▲17.57MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- Illegal file modification detected: 6 files (6.70KB) outside of "wp-content/plugins/unusedcss/" and "wp-content/uploads/"
- (new file) wp-content/cache/rapidload/uucss/.empty
- (new file) wp-content/advanced-cache.php
- (new file) wp-content/settings/rapidload/wp.com.php
- (new file) wp-content/cache/rapidload/cpcss/.empty
- (modified) wp-config.php
- (new file) wp-content/cache/rapidload/min-css/.empty
Filesystem: 784 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_rapidload_job_data |
wp_rapidload_job |
wp_rapidload_job_optimizations |
wp_rapidload_uucss_job |
wp_rapidload_uucss_rule |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
rapidload_cache |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RapidLoad 2.1 - Speed Monster in One Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,080 ▲318 | 18.30 ▲3.54 | 59.97 ▲58.24 | 42.11 ▼1.11 |
Dashboard /wp-admin | 2,354 ▲177 | 5.99 ▲0.41 | 107.67 ▲3.75 | 80.64 ▲36.38 |
Posts /wp-admin/edit.php | 2,282 ▲182 | 2.65 ▲0.70 | 42.58 ▼0.91 | 34.99 ▼4.32 |
Add New Post /wp-admin/post-new.php | 6,505 ▲4,970 | 18.94 ▼6.18 | 898.31 ▲268.78 | 44.15 ▼16.72 |
Media Library /wp-admin/upload.php | 1,568 ▲168 | 4.53 ▲0.37 | 108.67 ▲12.13 | 83.26 ▲40.46 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/unusedcss/includes/RapidLoad_FileSystem.php+40
rmdir(wp-content/cache/rapidload/uucss): Directory not empty
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_rapidload_job_optimizations
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- rapidload_cache
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/unusedcss/includes/admin/views/dashboard.html.php
- 189× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Peast\\Syntax\ode\ode' not found in wp-content/plugins/unusedcss/vendor/mck89/peast/lib/Peast/Syntax/Node/ObjectExpression.php:18
- > PHP Fatal error
Uncaught Error: Class 'Peast\\Syntax\\ES2019\\Features' not found in wp-content/plugins/unusedcss/vendor/mck89/peast/lib/Peast/Syntax/ES2020/Features.php:19
- > PHP Fatal error
Uncaught Error: Class 'Peast\\Syntax\\ES2016\\Features' not found in wp-content/plugins/unusedcss/vendor/mck89/peast/lib/Peast/Syntax/ES2017/Features.php:19
- > PHP Fatal error
Uncaught Error: Class 'Peast\\Formatter\\Base' not found in wp-content/plugins/unusedcss/vendor/mck89/peast/lib/Peast/Formatter/PrettyPrint.php:17
- > PHP Fatal error
Uncaught Error: Class 'Peast\\Syntax\ode\\Literal' not found in wp-content/plugins/unusedcss/vendor/mck89/peast/lib/Peast/Syntax/Node/RegExpLiteral.php:17
- > PHP Fatal error
Uncaught Error: Class 'Peast\\Syntax\ode\ode' not found in wp-content/plugins/unusedcss/vendor/mck89/peast/lib/Peast/Syntax/Node/ModuleSpecifier.php:19
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\CSSList\\CSSBlockList' not found in wp-content/plugins/unusedcss/vendor/sabberworm/php-css-parser/src/CSSList/AtRuleBlockList.php:11
- > PHP Fatal error
Uncaught Error: Class 'Peast\\Syntax\ode\ode' not found in wp-content/plugins/unusedcss/vendor/mck89/peast/lib/Peast/Syntax/Node/IfStatement.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/unusedcss/vendor/sabberworm/php-css-parser/src/Property/Import.php:12
- > PHP Fatal error
Uncaught Error: Class 'Peast\\Syntax\ode\ode' not found in wp-content/plugins/unusedcss/vendor/mck89/peast/lib/Peast/Syntax/Node/LabeledStatement.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- License uri: Please fix this invalid URI: "[https://www.gnu.org/licenses/gpl-3.0.html](https://www.gnu.org/licenses/gpl-3.0.html)"
- Donate link: Please fix this invalid URI: ""
unusedcss/unusedcss.php Passed 13 tests
The principal PHP file in "RapidLoad 2.1 - Speed Monster in One Plugin" v. 2.2.0 is loaded by WordPress automatically on each request
95 characters long description:
Makes your site even faster and lighter by automatically removing Unused CSS from your website.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin95,935 lines of code in 671 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 320 | 8,783 | 13,694 | 32,493 |
JavaScript | 99 | 1,488 | 1,266 | 20,053 |
JSON | 23 | 0 | 0 | 19,456 |
TypeScript | 105 | 1,507 | 151 | 7,827 |
CSS | 30 | 1,241 | 119 | 6,629 |
Vuejs Component | 29 | 953 | 355 | 5,998 |
Markdown | 15 | 410 | 0 | 1,842 |
SVG | 37 | 13 | 7 | 1,187 |
HTML | 6 | 17 | 0 | 310 |
XML | 4 | 6 | 6 | 98 |
YAML | 1 | 7 | 3 | 36 |
Bourne Shell | 2 | 2 | 0 | 6 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 190)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 20.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 702.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 190.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 9 | |
Traits | 3 | |
Classes | 283 | |
▷ Abstract classes | 22 | 7.77% |
▷ Concrete classes | 261 | 92.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,951 | |
▷ Static methods | 309 | 15.84% |
▷ Public methods | 1,633 | 83.70% |
▷ Protected methods | 243 | 12.46% |
▷ Private methods | 75 | 3.84% |
Functions | 120 | |
▷ Named functions | 3 | 2.50% |
▷ Anonymous functions | 117 | 97.50% |
Constants | 120 | |
▷ Global constants | 46 | 38.33% |
▷ Class constants | 74 | 61.67% |
▷ Public constants | 74 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/favicon.png | 2.43KB | 2.46KB | 0.00% |