89% advanced-dashboard-cleaner

Code Review | Advanced Dashboard Cleaner for WordPress

WordPress plugin Advanced Dashboard Cleaner for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: advanced-dashboar...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2019
  • Latest release: May 9, 2023
  • Number of updates: 13
  • Update frequency: every 104.0 days
  • Top authors: ruhel241 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /805 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
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▲4.14ms] Passed 4 tests

A check of server-side resources used by Advanced Dashboard Cleaner for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1244.49 ▲7.08
Dashboard /wp-admin3.46 ▲0.1551.79 ▲5.38
Posts /wp-admin/edit.php3.57 ▲0.2151.98 ▲5.15
Add New Post /wp-admin/post-new.php6.04 ▲0.1599.31 ▲1.04
Media Library /wp-admin/upload.php3.38 ▲0.1539.18 ▲5.00

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Advanced Dashboard Cleaner for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲6613.24 ▼1.531.81 ▼0.1043.80 ▼3.66
Dashboard /wp-admin2,207 ▲285.83 ▲0.9797.16 ▼5.0638.82 ▼4.05
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0539.71 ▲0.2035.48 ▼0.33
Add New Post /wp-admin/post-new.php1,543 ▲118.39 ▲0.04622.34 ▼39.5567.69 ▲11.31
Media Library /wp-admin/upload.php1,383 ▼24.40 ▲0.2097.53 ▼13.0642.58 ▼2.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid plugin version format
The official readme.txt might help

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

"Advanced Dashboard Cleaner for WordPress" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,758 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS1091,792
SVG100565
PHP7131115401

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.00
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods3288.89%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin