84% abd-dashboard-widget-manager

Code Review | ABD Dashboard Widget Manager

WordPress plugin ABD Dashboard Widget Manager scored84%from 54 tests.

About plugin

  • Plugin page: abd-dashboard-wid...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.2
  • WordPress version: 6.3.1
  • First release: Apr 18, 2013
  • Latest release: Aug 11, 2014
  • Number of updates: 9
  • Update frequency: every 54.6 days
  • Top authors: abdwebdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /10,397 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.47ms] Passed 4 tests

A check of server-side resources used by ABD Dashboard Widget Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.94 ▼4.35
Dashboard /wp-admin3.27 ▼0.0339.34 ▼15.02
Posts /wp-admin/edit.php3.40 ▲0.0551.92 ▲4.66
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.57 ▼18.15
Media Library /wp-admin/upload.php3.27 ▲0.0537.36 ▼0.37
Dashboard Manager /wp-admin/options-general.php?page=abd_dwm_settings3.3042.14

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
abd_dwm_widget_title
abd_dwm_user_roles
widget_theysaidso_widget
abd_dwm_avail_dashboard_widgets
abd_dwm_show_widgets
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for ABD Dashboard Widget Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,979 ▼76713.78 ▼0.531.98 ▲0.0844.34 ▼2.67
Dashboard /wp-admin1,362 ▼8295.32 ▼0.5681.95 ▼25.1938.22 ▼7.33
Posts /wp-admin/edit.php2,095 ▲91.98 ▼0.0236.52 ▼1.9934.80 ▲0.09
Add New Post /wp-admin/post-new.php1,533 ▼023.24 ▲0.23640.71 ▼47.3351.56 ▼3.86
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.15100.15 ▼2.7944.52 ▼0.12
Dashboard Manager /wp-admin/options-general.php?page=abd_dwm_settings1,6266.79136.9555.15

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/abd-dashboard-widget-manager/abd_dashboard_widget_manager.php:11
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/abd-dashboard-widget-manager/abd_dashboard_widget_manager.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: custom widget, admin dashboard, widget manager, admin widgets, custom dashboard...

abd-dashboard-widget-manager/abd_dashboard_widget_manager.php 85% from 13 tests

The principal PHP file in "ABD Dashboard Widget Manager" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 285 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("abd-dashboard-widget-manager.php" instead of "abd_dashboard_widget_manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin285 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2329245
CSS110140

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin