73% dashboard-plus-graphs

Code Review | Dashboard Plus Graphs

WordPress plugin Dashboard Plus Graphs scored73%from 54 tests.

About plugin

  • Plugin page: dashboard-plus-gr...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.8
  • WordPress version: 6.3.1
  • First release: Jan 2, 2014
  • Latest release: Jan 2, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: qubesoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /878 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.96MB] [CPU: ▼57.89ms] Passed 4 tests

Analyzing server-side resources used by Dashboard Plus Graphs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.26 ▼40.03
Dashboard /wp-admin2.05 ▼1.265.54 ▼50.78
Posts /wp-admin/edit.php2.05 ▼1.316.25 ▼41.65
Add New Post /wp-admin/post-new.php2.05 ▼3.844.69 ▼99.08
Media Library /wp-admin/upload.php2.05 ▼1.185.35 ▼29.42

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashboard Plus Graphs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.89 ▼0.491.87 ▲0.0338.91 ▼4.68
Dashboard /wp-admin2,214 ▲295.15 ▼0.7599.57 ▼20.0781.09 ▲35.65
Posts /wp-admin/edit.php2,116 ▲302.35 ▲0.3432.71 ▼4.6135.93 ▲3.00
Add New Post /wp-admin/post-new.php1,537 ▲1823.39 ▲0.55687.94 ▲34.1540.67 ▼22.13
Media Library /wp-admin/upload.php1,408 ▲204.59 ▲0.3496.72 ▼10.8488.19 ▲42.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dashboard_plus_graphs_bootstrap_styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dashboard-plus-graphs/index.php:49
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/dashboard-plus-graphs/DashboardPlus.php:3

User-side errors Passed 1 test

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


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Invalid URI found ("")
  • Screenshots: Screenshot #1 (Advanced dashboard view for Dashboard Plus Graphs Plugin .) image missing
You can look at the official readme.txt

dashboard-plus-graphs/index.php 85% from 13 tests

"Dashboard Plus Graphs" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 146 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dashboard-plus-graphs.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,245 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png73.15KB20.87KB▼ 71.47%