89% dashboard-widgets-suite

Code Review | Dashboard Widgets Suite

WordPress plugin Dashboard Widgets Suite scored89%from 54 tests.

About plugin

  • Plugin page: dashboard-widgets...
  • Plugin version: 3.4.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Mar 17, 2016
  • Latest release: Oct 31, 2023
  • Number of updates: 44
  • Update frequency: every 63.3 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

5,000+ active /102,426 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Dashboard Widgets Suite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.94 ▲0.87
Dashboard /wp-admin3.42 ▲0.0864.71 ▲0.96
Posts /wp-admin/edit.php3.47 ▲0.1152.80 ▲5.48
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.14 ▼6.96
Media Library /wp-admin/upload.php3.34 ▲0.1143.35 ▲7.45
Dashboard Widgets /wp-admin/options-general.php?page=dashboard_widgets_suite3.3135.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Dashboard Widgets Suite: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲23314.35 ▼0.271.93 ▲0.3744.72 ▲8.02
Dashboard /wp-admin2,372 ▲1985.61 ▼0.08102.04 ▲12.2047.10 ▲6.52
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0234.89 ▼0.7232.45 ▼1.20
Add New Post /wp-admin/post-new.php1,529 ▲123.17 ▲0.14574.43 ▼101.3752.06 ▼1.23
Media Library /wp-admin/upload.php1,404 ▲14.16 ▲0.0195.79 ▼0.1744.55 ▲0.47
Dashboard Widgets /wp-admin/options-general.php?page=dashboard_widgets_suite9412.1541.6144.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

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
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

dashboard-widgets-suite/dashboard-widgets.php 92% from 13 tests

The main PHP file in "Dashboard Widgets Suite" ver. 3.4.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dashboard-widgets-suite.php" instead of "dashboard-widgets.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,089 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,9871352,830
SVG200752
CSS82917335
JavaScript5994172

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods21
▷ Static methods1152.38%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
Functions196
▷ Named functions196100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/dws-icon-88.png4.65KB2.79KB▼ 40.05%