99% advanced-dashboard-cleaner

Code Review | Advanced Dashboard Cleaner for WordPress

WordPress plugin Advanced Dashboard Cleaner for WordPress scored 99% from 54 tests.

About plugin

  • Plugin page: advanced-dashboar...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.2
  • WordPress version: 5.9.2
  • First release: Aug 27, 2019
  • Latest release: May 18, 2021
  • Number of updates: 11
  • Update frequency: every 57.4 days
  • Top authors: ruhel241 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 518 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼292.97ms] Passed 4 tests

Server-side resources used by Advanced Dashboard Cleaner for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0161.97 ▲7.96
Dashboard /wp-admin3.45 ▲0.0449.99 ▲10.12
Posts /wp-admin/edit.php3.67 ▲0.0447.61 ▲5.70
Add New Post /wp-admin/post-new.php6.92 ▼0.05101.94 ▼1,195.65
Media Library /wp-admin/upload.php3.33 ▲0.0335.13 ▲10.39

Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • Illegal file modification detected: 3 files (0.00KB) outside of "wp-content/plugins/advanced-dashboard-cleaner/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/advanced-dashboard-cleaner/assets/banner-1544\303\227500.png"
    • (new file) "wp-content/plugins/advanced-dashboard-cleaner/assets/banner-772\303\227250.png"
    • (new file) "wp-content/plugins/advanced-dashboard-cleaner/assets/icon-128\303\227128.png"
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Dashboard Cleaner for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,794 ▲5215.91 ▲0.276.60 ▲0.972.86 ▲0.46
Dashboard /wp-admin2,888 ▲276.13 ▼0.03118.29 ▼23.82155.80 ▼5.20
Posts /wp-admin/edit.php2,687 ▼43.22 ▼0.0062.44 ▼1.62133.88 ▼13.67
Add New Post /wp-admin/post-new.php1,719 ▲5921.14 ▲3.86452.82 ▲59.77159.23 ▲7.74
Media Library /wp-admin/upload.php1,700 ▲25.49 ▼0.05147.67 ▲6.51184.42 ▼5.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
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 errors were detected

Optimizations

Plugin configuration 93% 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 need to be fixed:
  • Requires php: Version format is invalid
You can look at the official readme.txt

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

The entry point to "Advanced Dashboard Cleaner for WordPress" version 1.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,758 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS1091,792
SVG100565
PHP7130115401

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
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
7 PNG files occupy 0.33MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png69.40KB15.20KB▼ 78.10%
assets/icon-128×128.png8.61KB3.61KB▼ 58.07%
assets/banner-1544×500.png115.30KB56.98KB▼ 50.58%
assets/screenshot-1.png40.94KB11.30KB▼ 72.39%
assets/screenshot-2.png47.17KB12.01KB▼ 74.54%