89% dashboard-widgets-control

Code Review | Dashboard Widgets Control

WordPress plugin Dashboard Widgets Control scored89%from 54 tests.

About plugin

  • Plugin page: dashboard-widgets...
  • Plugin version: 1.2.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 18, 2021
  • Latest release: Nov 20, 2023
  • Number of updates: 94
  • Update frequency: every 10.7 days
  • Top authors: mitfi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.53ms] Passed 4 tests

A check of server-side resources used by Dashboard Widgets Control
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0837.70 ▼1.74
Dashboard /wp-admin3.28 ▼0.0735.92 ▼26.81
Posts /wp-admin/edit.php3.43 ▲0.0850.54 ▲4.37
Add New Post /wp-admin/post-new.php5.98 ▲0.1084.68 ▼4.87
Media Library /wp-admin/upload.php3.31 ▲0.0837.52 ▲3.32

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Dashboard Widgets Control: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,241 ▲49413.11 ▼1.171.72 ▼0.2231.01 ▼13.05
Dashboard /wp-admin2,649 ▲4715.73 ▲0.0498.84 ▼15.7167.49 ▲27.46
Posts /wp-admin/edit.php2,109 ▲92.00 ▼0.0141.93 ▲2.6436.36 ▲2.31
Add New Post /wp-admin/post-new.php1,532 ▲623.42 ▲0.24668.08 ▲42.8668.22 ▲4.20
Media Library /wp-admin/upload.php1,406 ▲34.23 ▲0.0095.42 ▼1.8842.37 ▲1.28

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

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)
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
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
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Add an image for screenshot #1 (Dashboard Widget Control view in the admin dashboard)
Please take inspiration from this readme.txt

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

The main PHP script in "Dashboard Widgets Control" version 1.2.2.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 320 characters long)

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 plugin491 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP17340287
PO File13151144
JavaScript16845
CSS19915

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/target.png16.33KB2.08KB▼ 87.24%