89% whiteboard-marketing-dashboard-widget

Code Review | Whiteboard Marketing Dashboard Widget

WordPress plugin Whiteboard Marketing Dashboard Widget scored89%from 54 tests.

About plugin

  • Plugin page: whiteboard-market...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2020
  • Latest release: Dec 2, 2020
  • Number of updates: 6
  • Update frequency: every 20.8 days
  • Top authors: chriscwm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.92ms] Passed 4 tests

This is a short check of server-side resources used by Whiteboard Marketing Dashboard Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.46 ▼3.48
Dashboard /wp-admin3.97 ▲0.6656.52 ▲8.37
Posts /wp-admin/edit.php3.37 ▲0.0146.36 ▼6.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.64 ▼24.36
Media Library /wp-admin/upload.php3.24 ▲0.0136.83 ▼1.18

Server storage [IO: ▲0.04MB] [DB: ▲0.13MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Whiteboard Marketing Dashboard Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,074 ▲31314.26 ▼0.261.90 ▲0.2032.73 ▼9.91
Dashboard /wp-admin2,455 ▲2815.62 ▲0.0299.32 ▲11.2550.72 ▲6.15
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0541.85 ▲7.0838.86 ▲4.09
Add New Post /wp-admin/post-new.php1,526 ▼223.32 ▲0.08675.13 ▼4.5042.05 ▼23.26
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.06100.28 ▼6.5149.76 ▲6.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 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
2 plugin tags: news, dashboard

whiteboard-marketing-dashboard-widget/wm-dashboard.php 77% from 13 tests

This is the main PHP file of "Whiteboard Marketing Dashboard Widget" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("whiteboard-marketing-dashboard-widget.php" instead of "wm-dashboard.php")
  • Description: The description should be shorter than 140 characters (currently 208 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2312359

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin