Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲4.72MB] [CPU: ▲41.97ms] Passed 4 tests
Analyzing server-side resources used by Clearfy Cache – WordPress optimization plugin, Minify HTML, CSS & JS, Defer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.63 ▲3.16 | 68.39 ▲26.73 |
Dashboard /wp-admin | 8.61 ▲5.26 | 363.83 ▲300.83 |
Posts /wp-admin/edit.php | 8.64 ▲5.27 | 100.57 ▲55.22 |
Add New Post /wp-admin/post-new.php | 11.11 ▲5.22 | 141.08 ▲44.55 |
Media Library /wp-admin/upload.php | 8.46 ▲5.23 | 77.99 ▲41.38 |
Server storage [IO: ▲5.66MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- The plugin illegally modified 4 files (1.16KB) outside of "wp-content/plugins/clearfy/" and "wp-content/uploads/"
- (new file) wp-content/cache/wmac/index.html
- (new file) wp-content/cache/wmac/css/index.html
- (new file) wp-content/cache/wmac/js/index.html
- (new file) wp-content/cache/wmac/.htaccess
Filesystem: 753 new files
Database: no new tables, 13 new options
New WordPress options |
---|
wbcr_clearfy_deactivated_unused_modules |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
wbcr_clearfy_plugin_activated |
wbcr_clearfy_robots_txt_text_cache |
widget_theysaidso_widget |
wbcr_clearfy_plugin_version |
can_compress_scripts |
wbcr_clearfy_last_check_update |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Clearfy Cache – WordPress optimization plugin, Minify HTML, CSS & JS, Defer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,881 ▼866 | 10.78 ▼3.94 | 1.56 ▼0.14 | 30.91 ▼13.15 |
Dashboard /wp-admin | 2,589 ▲415 | 5.75 ▲0.07 | 108.39 ▲11.34 | 48.31 ▲2.94 |
Posts /wp-admin/edit.php | 2,497 ▲397 | 2.41 ▲0.41 | 49.42 ▲13.11 | 37.50 ▲3.14 |
Add New Post /wp-admin/post-new.php | 1,866 ▲331 | 23.22 ▲0.19 | 611.13 ▲5.92 | 33.51 ▼12.93 |
Media Library /wp-admin/upload.php | 1,781 ▲381 | 4.39 ▲0.22 | 96.91 ▲2.83 | 43.41 ▼0.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 13 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- wbcr_clearfy_last_check_update
- wbcr_clearfy_last_check_update_time
- widget_recent-posts
- wbcr_clearfy_plugin_activated
- wbcr_clearfy_plugin_version
- wbcr_clearfy_deactive_preinstall_components
- can_compress_scripts
- ...
Smoke tests 50% 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 0% 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
The following issues need your attention
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/clearfy/components/assets-manager/views/conditions-logic-editor-template.php
- > /wp-content/plugins/clearfy/components/assets-manager/views/part-assets-manager-info-bar.php
- > /wp-content/plugins/clearfy/components/assets-manager/views/part-assets-manager-tabs-menu.php
- > /wp-content/plugins/clearfy/components/assets-manager/views/assets-manager.php
- > /wp-content/plugins/clearfy/components/assets-manager/views/part-assets-manager-header.php
- > /wp-content/plugins/clearfy/components/assets-manager/views/part-tab-content-assets-plugins-settings.php
- > /wp-content/plugins/clearfy/components/assets-manager/views/tab-content-assets-plugins.php
- > /wp-content/plugins/clearfy/components/assets-manager/views/tab-content-assets.php
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/clearfy/components/cache/admin/boot.php:10
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_Factory473_Update' not found in wp-content/plugins/clearfy/components/updates-manager/migrations/010008.php:7
- > PHP Warning
Use of undefined constant WCACHE_PLUGIN_DIR - assumed 'WCACHE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/clearfy/components/cache/includes/cache.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_FactoryForms469_FontControl' not found in wp-content/plugins/clearfy/libs/factory/forms/controls/google-font.php:18
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step_Custom' not found in wp-content/plugins/clearfy/admin/pages/setup/steps/class-step-optimize-images.php:11
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_Factory473_Update' not found in wp-content/plugins/clearfy/components/assets-manager/migrations/010108.php:7
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step_Custom' not found in wp-content/plugins/clearfy/admin/pages/setup/steps/class-step-congratulation.php:11
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/clearfy/libs/factory/templates/pages/setup-parts/class-step-form.php:11
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step_Custom' not found in wp-content/plugins/clearfy/admin/pages/setup/steps/class-step-plugins.php:11
- > PHP Warning
require_once(WCACHE_PLUGIN_DIR/includes/helpers.php): failed to open stream: No such file or directory in wp-content/plugins/clearfy/components/cache/includes/cache.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 65 tag instead of maximum 10
clearfy/clearfy.php Passed 13 tests
The main PHP file in "Clearfy Cache – WordPress optimization plugin, Minify HTML, CSS & JS, Defer" ver. 2.2.0 adds more information about the plugin and also serves as the entry point for this plugin
132 characters long description:
Disables unused Wordpress features, improves performance and increases SEO rankings, using Clearfy, which makes WordPress very easy.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin67,320 lines of code in 513 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 348 | 9,588 | 19,905 | 36,102 |
PO File | 39 | 3,148 | 4,135 | 11,428 |
CSS | 52 | 358 | 605 | 7,795 |
JavaScript | 42 | 1,159 | 782 | 5,199 |
LESS | 26 | 1,014 | 312 | 4,934 |
JSON | 1 | 0 | 0 | 1,810 |
SVG | 3 | 2 | 0 | 49 |
Markdown | 1 | 1 | 0 | 2 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 245.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 268 | |
▷ Abstract classes | 22 | 8.21% |
▷ Concrete classes | 246 | 91.79% |
▷ Final classes | 3 | 1.22% |
Methods | 1,912 | |
▷ Static methods | 233 | 12.19% |
▷ Public methods | 1,422 | 74.37% |
▷ Protected methods | 253 | 13.23% |
▷ Private methods | 237 | 12.40% |
Functions | 185 | |
▷ Named functions | 70 | 37.84% |
▷ Anonymous functions | 115 | 62.16% |
Constants | 264 | |
▷ Global constants | 226 | 85.61% |
▷ Class constants | 38 | 14.39% |
▷ Public constants | 38 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
42 PNG files occupy 0.71MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/rio-icon-128x128.png | 52.63KB | 20.79KB | ▼ 60.50% |
admin/assets/img/trial-license-chip.png | 1.95KB | 0.73KB | ▼ 62.77% |
admin/assets/img/bind-key.png | 4.16KB | 2.33KB | ▼ 43.98% |
admin/assets/img/upm-icon-128x128.png | 19.97KB | 7.34KB | ▼ 63.25% |
admin/assets/img/robin-image-optimizer-fake-board.png | 13.40KB | 6.27KB | ▼ 53.17% |