84% custom-dashboard

Code Review | Custom Dashboard

WordPress plugin Custom Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: custom-dashboard
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2015
  • Latest release: Feb 14, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: dipto99 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,804 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Custom Dashboard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.76 ▼4.81
Dashboard /wp-admin3.31 ▲0.0148.62 ▼3.11
Posts /wp-admin/edit.php3.37 ▲0.0148.53 ▲1.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.94 ▼9.48
Media Library /wp-admin/upload.php3.24 ▲0.0134.86 ▲0.87

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Custom Dashboard
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲15213.62 ▼0.764.99 ▲2.9635.57 ▼14.82
Dashboard /wp-admin2,205 ▲174.92 ▼0.99108.68 ▼10.4852.34 ▲4.60
Posts /wp-admin/edit.php2,100 ▲112.07 ▲0.0839.72 ▲3.9652.49 ▲17.69
Add New Post /wp-admin/post-new.php1,520 ▼023.11 ▲0.09682.55 ▲30.5259.01 ▲9.43
Media Library /wp-admin/upload.php1,390 ▲84.33 ▲0.1395.82 ▼6.0548.72 ▲6.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/custom-dashboard/admin/partials/custom-dashboard-admin-display.php
    • > /wp-content/plugins/custom-dashboard/public/partials/custom-dashboard-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: style, dashboard, wordpress-custom-dashboard, custom-dashboard

custom-dashboard/custom-dashboard.php Passed 13 tests

The entry point to "Custom Dashboard" version 1.0.0 is a PHP file that has certain tags in its header comment area
75 characters long description:
Make your wordpress dashboard more style and customize by use this plug-in.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin769 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG100565
PHP12120559171
JavaScript252829
CSS4034

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.08
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.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

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