Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼5.81ms] 75% from 4 tests
This is a short check of server-side resources used by WPS Cleaner
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,004.49ms on /wp-admin/tools.php?page=wps-cleaner)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.14 | 45.06 ▲1.86 |
Dashboard /wp-admin | 3.46 ▲0.16 | 85.30 ▲39.66 |
Posts /wp-admin/edit.php | 3.50 ▼0.35 | 48.51 ▼5.96 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.07 ▼18.62 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 32.58 ▼0.50 |
WPS Cleaner /wp-admin/tools.php?page=wps-cleaner | 4.43 | 1,004.49 |
Server storage [IO: ▲7.19MB] [DB: ▲0.30MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 68 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wps_cleaner |
wp_wps_cleaner_queue |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
wps_cleaner_alert |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WPS Cleaner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.31 ▼1.12 | 1.65 ▲0.05 | 38.90 ▼1.58 |
Dashboard /wp-admin | 2,210 ▲25 | 5.79 ▲0.83 | 104.85 ▼4.34 | 43.11 ▼1.34 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.04 | 38.18 ▲2.49 | 34.25 ▲1.96 |
Add New Post /wp-admin/post-new.php | 1,537 ▼10 | 23.02 ▲4.68 | 596.20 ▼14.60 | 53.12 ▼3.96 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.18 ▲0.02 | 97.63 ▼4.93 | 43.87 ▼2.30 |
WPS Cleaner /wp-admin/tools.php?page=wps-cleaner | 1,291 | 5.25 | 50.28 | 93.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.30MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- wps_cleaner_alert
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 17× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wps-cleaner/blocks/settings_plugin.php
- > /wp-content/plugins/wps-cleaner/blocks/settings_media.php
- > /wp-content/plugins/wps-cleaner/blocks/settings_option.php
- > /wp-content/plugins/wps-cleaner/blocks/title.php
- > /wp-content/plugins/wps-cleaner/blocks/settings_database.php
- > /wp-content/plugins/wps-cleaner/wps-cleaner.php
- > /wp-content/plugins/wps-cleaner/blocks/menu.php
- > /wp-content/plugins/wps-cleaner/blocks/pub-wpserveur.php
- > /wp-content/plugins/wps-cleaner/admin_page/plugin.php
- > /wp-content/plugins/wps-cleaner/blocks/settings_comment.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Trait 'WPS\\WPS_Cleaner\\Singleton' not found in wp-content/plugins/wps-cleaner/classes/db.php on line 5
- > PHP Fatal error
Trait 'WPS\\WPS_Cleaner\\Singleton' not found in wp-content/plugins/wps-cleaner/classes/db-table.php on line 5
- > PHP Fatal error
Trait 'WPS\\WPS_Cleaner\\Singleton' not found in wp-content/plugins/wps-cleaner/classes/helpers.php on line 5
- > PHP Fatal error
Trait 'WPS\\WPS_Cleaner\\Singleton' not found in wp-content/plugins/wps-cleaner/classes/index.php on line 5
- > PHP Fatal error
Trait 'WPS\\WPS_Cleaner\\Singleton' not found in wp-content/plugins/wps-cleaner/classes/plugin.php on line 5
- > PHP Warning
Use of undefined constant WPS_CLEANER_DIR - assumed 'WPS_CLEANER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-cleaner/autoload.php on line 203
- > PHP Warning
Use of undefined constant WPS_CLEANER_DIR - assumed 'WPS_CLEANER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-cleaner/autoload.php on line 197
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wps-cleaner/wps-cleaner.php 85% from 13 tests
The main file in "WPS Cleaner" v. 1.6.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin14,903 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 16 | 9,002 |
PHP | 35 | 1,085 | 1,080 | 4,294 |
CSS | 2 | 110 | 8 | 771 |
PO File | 1 | 244 | 310 | 597 |
JavaScript | 2 | 46 | 7 | 211 |
JSON | 2 | 0 | 0 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 43.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 208 | |
▷ Static methods | 133 | 63.94% |
▷ Public methods | 191 | 91.83% |
▷ Protected methods | 8 | 3.85% |
▷ Private methods | 9 | 4.33% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/wps-cleaner-logo-wpserveur.png | 39.32KB | 7.75KB | ▼ 80.28% |