93% custom-dashboard-welcome-panel-widget-sidebar

Code Review | Custom Dashboard Welcome Panel Widget Sidebar

WordPress plugin Custom Dashboard Welcome Panel Widget Sidebar scored 93% from 54 tests.

About plugin

  • Plugin page: custom-dashboard-...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 5.9.2
  • First release: Jun 4, 2014
  • Latest release: Jun 4, 2014
  • Number of updates: 36
  • Update frequency: N/A
  • Top authors: codecandid (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active / 2,488 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼306.23ms] Passed 4 tests

This is a short check of server-side resources used by Custom Dashboard Welcome Panel Widget Sidebar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.95 ▲4.24
Dashboard /wp-admin3.42 ▲0.0147.99 ▲9.22
Posts /wp-admin/edit.php3.65 ▲0.0137.89 ▼4.16
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.84 ▼1,220.09
Media Library /wp-admin/upload.php3.30 ▲0.0131.61 ▼4.90
Widgets /wp-admin/widgets.php5.2055.31
Menus /wp-admin/nav-menus.php3.2733.98

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Custom Dashboard Welcome Panel Widget Sidebar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,641 ▼11315.63 ▼0.176.69 ▼0.303.20 ▲0.59
Dashboard /wp-admin2,727 ▼1346.10 ▼0.06115.92 ▼13.08129.50 ▼33.29
Posts /wp-admin/edit.php2,698 ▲103.23 ▼0.0066.17 ▲1.88185.18 ▲2.03
Add New Post /wp-admin/post-new.php1,758 ▲621.01 ▲0.08451.85 ▼7.43154.27 ▼10.54
Media Library /wp-admin/upload.php1,708 ▲105.54 ▲0.03135.81 ▼2.30182.04 ▼4.15
Widgets /wp-admin/widgets.php2,44822.05528.39132.40
Menus /wp-admin/nav-menus.php2,2513.4090.27130.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 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/custom-dashboard-welcome-panel-widget-sidebar/custom-dashboard-welcome-panel-widget-sidebar.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Contributors: The plugin tags were not defined
  • Plugin Name: Please specify the plugin name on the first line ( === custom-dashboard-welcome-panel-widget-sidebar === )
  • Donate link: Please fix this invalid url: ""
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

custom-dashboard-welcome-panel-widget-sidebar/custom-dashboard-welcome-panel-widget-sidebar.php Passed 13 tests

Analyzing the main PHP file in "Custom Dashboard Welcome Panel Widget Sidebar" version 0.6
140 characters long description:
This plugin registers a new sidebar widget to be used on the ADMIN SIDE ONLY. When active it replaces the WP Welcome Panel Dashboard Widget.

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
Good job! No executable or dangerous file extensions detected51 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP261451

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin