84% wp-dashboard-widgets-disable

Code Review | Wp Dashboard Widgets Disable

WordPress plugin Wp Dashboard Widgets Disable scored 84% from 54 tests.

About plugin

  • Plugin page: wp-dashboard-widg...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 6.3.1
  • First release: Feb 24, 2020
  • Latest release: Mar 7, 2020
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: raviry (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 416 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.43ms] Passed 4 tests

This is a short check of server-side resources used by Wp Dashboard Widgets Disable
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.82 ▼12.82
Dashboard /wp-admin3.42 ▲0.1243.60 ▼3.74
Posts /wp-admin/edit.php3.46 ▲0.1043.98 ▼3.89
Add New Post /wp-admin/post-new.php6.11 ▲0.2281.61 ▼5.28
Media Library /wp-admin/upload.php3.36 ▲0.1333.23 ▲0.65
Dashboard Widgets Disable /wp-admin/options-general.php?page=wp-dashboard-widgets-disable_options3.2629.24

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Wp Dashboard Widgets Disable
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲5014.45 ▼0.301.88 ▼0.5041.90 ▼2.36
Dashboard /wp-admin2,213 ▲284.90 ▼0.01108.69 ▲2.1239.39 ▼4.98
Posts /wp-admin/edit.php2,099 ▲102.02 ▲0.0239.85 ▲2.3734.27 ▲1.62
Add New Post /wp-admin/post-new.php1,539 ▲623.06 ▼0.32588.11 ▼62.8547.18 ▼5.77
Media Library /wp-admin/upload.php1,398 ▲104.22 ▼0.0297.71 ▼3.6841.72 ▲0.06
Dashboard Widgets Disable /wp-admin/options-general.php?page=wp-dashboard-widgets-disable_options8841.9028.4728.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-dashboard-widgets-disable_options
    • > Notice in wp-content/plugins/wp-dashboard-widgets-disable/wp-dashboard-widgets-disable.php+373
    Undefined property: WPDashboardWidgets::$pluginName
    • > GET request to /wp-admin/options-general.php?page=wp-dashboard-widgets-disable_options
    • > Notice in wp-content/plugins/wp-dashboard-widgets-disable/wp-dashboard-widgets-disable.php+375
    Undefined variable: pluginName

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: hide dashboard widgets, wp dashboard widgets disable, dashboard widgets

wp-dashboard-widgets-disable/wp-dashboard-widgets-disable.php Passed 13 tests

The entry point to "Wp Dashboard Widgets Disable" version 1.0.0 is a PHP file that has certain tags in its header comment area
115 characters long description:
Control visibility of dashboard widgets with the easy to use interface, just select the widgets you'd like to hide.

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
Everything looks great! No dangerous files found in this plugin251 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18183251

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods218.18%
▷ Private methods19.09%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin