Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.06ms] Passed 4 tests
A check of server-side resources used by WP Dashboard Cleaner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.23 ▼5.08 |
Dashboard /wp-admin | 3.13 ▼0.17 | 27.65 ▼23.89 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 42.95 ▼0.13 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.65 ▼6.79 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 32.83 ▼0.46 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
wpdc_activated_on |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Dashboard Cleaner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 13.56 ▼0.75 | 1.85 ▼0.11 | 44.35 ▼5.26 |
Dashboard /wp-admin | 2,216 ▲28 | 5.86 ▼0.04 | 100.63 ▼5.62 | 78.81 ▲39.44 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.06 ▲0.01 | 35.32 ▲1.72 | 32.28 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,550 ▲31 | 23.09 ▼0.07 | 684.55 ▲12.67 | 62.99 ▲6.92 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.16 ▼0.09 | 112.15 ▲12.99 | 45.79 ▲1.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Admin Screen of the plugin at where you can play with the plugin)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-dashboard-cleaner ===
)
wp-dashboard-cleaner/wp-dashboard-cleaner.php Passed 13 tests
The main PHP file in "WP Dashboard Cleaner" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
The Admin can remove unwanted widgets / sections from your WordPress Dashboard
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected367 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 128 | 384 | 330 |
JavaScript | 1 | 8 | 2 | 30 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 20 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.67% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/wpdc_wordfence.png | 17.52KB | 17.76KB | 0.00% |
snapshot-1.png | 22.87KB | 23.41KB | 0.00% |
admin/images/wpdc_woorevies.png | 2.81KB | 2.83KB | 0.00% |
admin/images/wpdc_quick_draft.png | 3.50KB | 3.50KB | 0.20% |
admin/images/wpdc_gforms.png | 1.99KB | 2.03KB | 0.00% |