84% create-a-custom-dashboard-widget

Code Review | create a custom dashboard widget

WordPress plugin create a custom dashboard widget scored84%from 54 tests.

About plugin

  • Plugin page: create-a-custom-d...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Dec 23, 2020
  • Latest release: Dec 23, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: aminak35 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /331 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.01MB] [CPU: ▼10.45ms] Passed 4 tests

Server-side resources used by create a custom dashboard widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.14 ▼13.92
Dashboard /wp-admin3.32 ▲0.0244.68 ▼7.65
Posts /wp-admin/edit.php3.37 ▲0.0147.12 ▼1.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.84 ▼18.88
Media Library /wp-admin/upload.php3.24 ▲0.0138.08 ▲3.59
Custom dashboard widget /wp-admin/options-general.php?page=cacdw_plugin3.2129.94

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for create a custom dashboard widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲9113.32 ▼0.981.90 ▼0.2243.91 ▲0.80
Dashboard /wp-admin2,243 ▲554.86 ▼0.04106.86 ▼5.6840.31 ▼1.83
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0339.65 ▼1.3634.70 ▼4.26
Add New Post /wp-admin/post-new.php1,539 ▲1623.22 ▼0.31661.73 ▲79.0952.66 ▲2.39
Media Library /wp-admin/upload.php1,395 ▲44.24 ▲0.0299.28 ▼2.7943.57 ▲1.36
Custom dashboard widget /wp-admin/options-general.php?page=cacdw_plugin8182.0126.4130.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • cacdw_main_option
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/create-a-custom-dashboard-widget/create-a-custom-dashboard-widget.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: custom dashboard widget, customize wordpress dashboard

create-a-custom-dashboard-widget/create-a-custom-dashboard-widget.php 92% from 13 tests

The primary PHP file in "create a custom dashboard widget" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161662

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
There were not PNG files found in your plugin