84% dashboard-widget-sidebar

Code Review | Dashboard Widget Sidebar

WordPress plugin Dashboard Widget Sidebar scored84%from 54 tests.

About plugin

  • Plugin page: dashboard-widget-...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2
  • WordPress version: 6.3.1
  • First release: Jan 24, 2013
  • Latest release: Apr 21, 2015
  • Number of updates: 18
  • Update frequency: every 45.4 days
  • Top authors: iosoftgame (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

800+ active /11,665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Dashboard Widget Sidebar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.91 ▼1.02
Dashboard /wp-admin3.07 ▼0.2330.71 ▼23.06
Posts /wp-admin/edit.php3.38 ▲0.0251.73 ▲3.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.95 ▼7.71
Media Library /wp-admin/upload.php3.25 ▲0.0236.87 ▲2.98

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Dashboard Widget Sidebar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.42 ▲0.071.88 ▲0.1542.77 ▲2.34
Dashboard /wp-admin2,199 ▲195.47 ▼0.0589.19 ▼2.0836.71 ▼4.92
Posts /wp-admin/edit.php2,104 ▲11.97 ▼0.0738.82 ▲3.8836.95 ▼0.23
Add New Post /wp-admin/post-new.php1,530 ▲223.80 ▲0.70654.43 ▼13.6660.92 ▼2.05
Media Library /wp-admin/upload.php1,404 ▲14.15 ▼0.09101.05 ▼6.7442.51 ▼4.60

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dashboard-widget-sidebar/dashboard-widget-sidebar.php:129

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: widgets, widget, dashboard widget, priority, admin dashboard...

dashboard-widget-sidebar/dashboard-widget-sidebar.php Passed 13 tests

This is the main PHP file of "Dashboard Widget Sidebar" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Enable regulare widgets to be used as Dashboard Widgets in admin

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 plugin158 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14050113
JavaScript113745

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions5
▷ Named functions5100.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 files were detected