90% wp-remove-dashboard-extra-widgets

Code Review | Remove WP Dashboard Extra Widgets

WordPress plugin Remove WP Dashboard Extra Widgets scored90%from 54 tests.

About plugin

  • Plugin page: wp-remove-dashboa...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.0
  • WordPress version: 6.3.1
  • First release: Aug 19, 2011
  • Latest release: Mar 7, 2020
  • Number of updates: 6
  • Update frequency: every 520.5 days
  • Top authors: mrahmadawais (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,628 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
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼7.26ms] Passed 4 tests

This is a short check of server-side resources used by Remove WP Dashboard Extra Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.29 ▼4.16
Dashboard /wp-admin3.23 ▼0.0834.39 ▼16.05
Posts /wp-admin/edit.php3.36 ▲0.0045.11 ▼5.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.40 ▲0.84
Media Library /wp-admin/upload.php3.23 ▲0.0030.39 ▼3.55

Server storage [IO: ▲0.00MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove WP Dashboard Extra Widgets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,893 ▼86813.69 ▼0.911.51 ▼0.3433.70 ▼9.82
Dashboard /wp-admin1,298 ▼8765.10 ▼0.5369.90 ▼28.9635.78 ▼9.91
Posts /wp-admin/edit.php2,103 ▲32.04 ▼0.0034.76 ▼9.5532.08 ▼8.51
Add New Post /wp-admin/post-new.php1,538 ▲1118.49 ▼4.63598.63 ▼70.8563.86 ▲8.43
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0194.62 ▼8.7441.11 ▼4.26

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

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: dashboard, widgets, remove, admin

wp-remove-dashboard-extra-widgets/wp-remove-dashboard-extra-widgets.php Passed 13 tests

"Remove WP Dashboard Extra Widgets" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Removes the WordPress dashboard widgets that are extra and useless i.e. plugins, wp blog news etc.

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 plugin23 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown15013
PHP152210

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.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 images were found in this plugin