89% wp-dashboard-cleaner

Code Review | WP Dashboard Cleaner

WordPress plugin WP Dashboard Cleaner scored89%from 54 tests.

About plugin

  • Plugin page: wp-dashboard-cleaner
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 11, 2017
  • Latest release: Jul 9, 2021
  • Number of updates: 6
  • Update frequency: every 243.2 days
  • Top authors: gr8nilay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,595 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.23 ▼5.08
Dashboard /wp-admin3.13 ▼0.1727.65 ▼23.89
Posts /wp-admin/edit.php3.51 ▲0.1542.95 ▼0.13
Add New Post /wp-admin/post-new.php6.00 ▲0.1184.65 ▼6.79
Media Library /wp-admin/upload.php3.32 ▲0.0932.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲11213.56 ▼0.751.85 ▼0.1144.35 ▼5.26
Dashboard /wp-admin2,216 ▲285.86 ▼0.04100.63 ▼5.6278.81 ▲39.44
Posts /wp-admin/edit.php2,119 ▲302.06 ▲0.0135.32 ▲1.7232.28 ▲0.41
Add New Post /wp-admin/post-new.php1,550 ▲3123.09 ▼0.07684.55 ▲12.6762.99 ▲6.92
Media Library /wp-admin/upload.php1,418 ▲274.16 ▼0.09112.15 ▲12.9945.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 === )
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP10128384330
JavaScript18230
CSS1107

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 code0.17
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/images/wpdc_wordfence.png17.52KB17.76KB0.00%
snapshot-1.png22.87KB23.41KB0.00%
admin/images/wpdc_woorevies.png2.81KB2.83KB0.00%
admin/images/wpdc_quick_draft.png3.50KB3.50KB0.20%
admin/images/wpdc_gforms.png1.99KB2.03KB0.00%