77% dashboard-builder

Code Review | DASHBOARD BUILDER - WordPress plugin for Charts and Graphs

WordPress plugin DASHBOARD BUILDER - WordPress plugin for Charts and Graphs scored 77% from 54 tests.

About plugin

  • Plugin page: dashboard-builder
  • Plugin version: 1.5.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Dec 27, 2018
  • Latest release: Aug 31, 2023
  • Number of updates: 26
  • Update frequency: every 65.8 days
  • Top authors: dashboardbuilder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 4,488 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.70ms] Passed 4 tests

A check of server-side resources used by DASHBOARD BUILDER - WordPress plugin for Charts and Graphs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.12 ▲0.69
Dashboard /wp-admin3.32 ▲0.0251.87 ▼23.41
Posts /wp-admin/edit.php3.37 ▲0.0249.61 ▼2.91
Add New Post /wp-admin/post-new.php5.90 ▲0.02103.15 ▲12.04
Media Library /wp-admin/upload.php3.24 ▲0.0237.54 ▼1.18
DashboardBuilder /wp-admin/options-general.php?page=DashboardBuilder3.2738.46

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 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 BUILDER - WordPress plugin for Charts and Graphs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲3022.63 ▲7.89113.24 ▲111.1543.69 ▼2.66
Dashboard /wp-admin2,210 ▲44.84 ▼0.03112.70 ▲0.3445.90 ▲1.16
Posts /wp-admin/edit.php2,096 ▲101.99 ▲0.0335.21 ▼1.1232.84 ▼0.14
Add New Post /wp-admin/post-new.php1,536 ▲223.33 ▲0.32718.31 ▲12.7154.90 ▼3.25
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0595.44 ▼14.4841.41 ▼10.49
DashboardBuilder /wp-admin/options-general.php?page=DashboardBuilder1,0062.0326.8439.78

Uninstaller [IO: ✅] [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
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/dashboard-builder/inc/dashboard_dist.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/dashboard-builder/dashboardbuilder-admin.php:94
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dashboard-builder/dashboardbuilder.php:14

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 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

dashboard-builder/dashboardbuilder.php 85% from 13 tests

"DASHBOARD BUILDER - WordPress plugin for Charts and Graphs" version 1.5.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 303 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("dashboard-builder.php" instead of "dashboardbuilder.php")

Code Analysis 97% from 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 plugin314 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36617312
HTML1001
JavaScript1001

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 194)
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity265.00
▷ Minimum class complexity265.00
▷ Maximum class complexity265.00
Average method complexity67.00
▷ Minimum method complexity1.00
▷ Maximum method complexity194.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.29MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-7.png8.43KB4.06KB▼ 51.85%
assets/screenshot-6.png11.12KB4.96KB▼ 55.37%
assets/screenshot-2.png13.91KB6.54KB▼ 53.00%
assets/screenshot-5.png7.84KB3.78KB▼ 51.84%
assets/screenshot-1.png8.38KB2.74KB▼ 67.36%