89% disable-dashboard-widgets

Code Review | Disable Dashboard Widgets

WordPress plugin Disable Dashboard Widgets scored89%from 54 tests.

About plugin

  • Plugin page: disable-dashboard...
  • Plugin version: 0.1.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.0
  • WordPress version: 6.3.1
  • First release: Dec 19, 2020
  • Latest release: Jun 8, 2022
  • Number of updates: 5
  • Update frequency: every 107.2 days
  • Top authors: icelayer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,222 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.79ms] Passed 4 tests

An overview of server-side resources used by Disable Dashboard Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.48 ▲1.67
Dashboard /wp-admin3.31 ▲0.0148.85 ▲0.32
Posts /wp-admin/edit.php3.36 ▲0.0048.96 ▼3.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.48 ▼5.28
Media Library /wp-admin/upload.php3.23 ▲0.0035.34 ▼2.87

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Disable Dashboard Widgets: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.57 ▼0.812.16 ▲0.2544.26 ▼2.08
Dashboard /wp-admin2,206 ▲185.81 ▲0.9599.47 ▼2.2141.59 ▼1.39
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0436.19 ▼4.5131.76 ▼3.24
Add New Post /wp-admin/post-new.php1,544 ▲1618.66 ▼4.29638.81 ▼65.2365.60 ▼3.82
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.1698.51 ▼18.5244.05 ▼7.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: widgets, remove widgets, disable widgets, dashboard

disable-dashboard-widgets/disable-widgets.php 77% from 13 tests

"Disable Dashboard Widgets" version 0.1.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("disable-dashboard-widgets.php" instead of "disable-widgets.php")

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 plugin31 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3115729
HTML2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected