84% dashboard-cleaner

Code Review | Dashboard Cleaner

WordPress plugin Dashboard Cleaner scored84%from 54 tests.

About plugin

  • Plugin page: dashboard-cleaner
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2017
  • Latest release: Jul 24, 2023
  • Number of updates: 36
  • Update frequency: every 62.2 days
  • Top authors: bruandet (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /4,435 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼1.03ms] Passed 4 tests

An overview of server-side resources used by Dashboard Cleaner
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.43 ▼3.18
Dashboard /wp-admin3.67 ▲0.3748.53 ▼2.27
Posts /wp-admin/edit.php3.73 ▲0.3851.13 ▼0.64
Add New Post /wp-admin/post-new.php6.07 ▲0.19111.04 ▲8.39
Media Library /wp-admin/upload.php3.47 ▲0.2440.18 ▲1.97
Dashboard Cleaner /wp-admin/tools.php?page=dashboard-cleaner3.4735.83

Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
dhcl_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Dashboard Cleaner
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,080 ▲33413.32 ▼1.061.61 ▼0.1343.69 ▼4.52
Dashboard /wp-admin2,454 ▲2635.01 ▲0.10106.96 ▼34.7139.11 ▼4.18
Posts /wp-admin/edit.php2,345 ▲2562.09 ▲0.1038.01 ▲0.9233.33 ▼1.59
Add New Post /wp-admin/post-new.php1,757 ▲24323.26 ▲5.80666.46 ▲12.6155.40 ▲2.04
Media Library /wp-admin/upload.php1,644 ▲2534.32 ▲0.13107.73 ▼6.7944.67 ▼6.28
Dashboard Cleaner /wp-admin/tools.php?page=dashboard-cleaner1,3792.1330.5131.85

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/dashboard-cleaner/thickbox.php
    • > /wp-content/plugins/dashboard-cleaner/dashboard-cleaner.php
    • > /wp-content/plugins/dashboard-cleaner/help.php
    • > /wp-content/plugins/dashboard-cleaner/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: notice, banner, dom inspector, ads, dashboard...

dashboard-cleaner/dashboard-cleaner.php 92% from 13 tests

"Dashboard Cleaner" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,278 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4259195941
JavaScript47092313
CSS201724

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
static/pp.png1.31KB1.25KB▼ 4.19%