Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.26 ▼40.03 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.54 ▼50.78 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.25 ▼41.65 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.69 ▼99.08 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.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 |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.89 ▼0.49 | 1.87 ▲0.03 | 38.91 ▼4.68 |
Dashboard /wp-admin | 2,214 ▲29 | 5.15 ▼0.75 | 99.57 ▼20.07 | 81.09 ▲35.65 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 2.35 ▲0.34 | 32.71 ▼4.61 | 35.93 ▲3.00 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.39 ▲0.55 | 687.94 ▲34.15 | 40.67 ▼22.13 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.59 ▲0.34 | 96.72 ▼10.84 | 88.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
- > PHP Fatal error
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 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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 2 | 11 | 3,771 |
JavaScript | 2 | 0 | 0 | 361 |
PHP | 2 | 21 | 35 | 113 |
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 code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.80KB | 0.85KB | 0.00% |
screenshot-1.png | 73.15KB | 20.87KB | ▼ 71.47% |