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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼141.17ms] Passed 4 tests
This is a short check of server-side resources used by ZD Design Agency Support Dashboard
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.13 | 39.08 ▲15.16 |
Dashboard /wp-admin | 3.08 ▲0.02 | 47.75 ▲8.48 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 46.12 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 91.42 ▼575.27 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 38.22 ▲3.41 |
Server storage [IO: ▲4.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: no new tables, 1 new option
New WordPress options |
---|
dashboard_widget_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ZD Design Agency Support Dashboard
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,947 ▲341 | 15.92 ▼0.02 | 12.08 ▲1.04 | 53.55 ▲5.95 |
Dashboard /wp-admin | 3,232 ▲298 | 5.96 ▼0.23 | 139.96 ▼10.03 | 157.21 ▲33.26 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 2.59 ▼0.11 | 68.38 ▼0.66 | 92.90 ▼8.02 |
Add New Post /wp-admin/post-new.php | 1,510 ▼173 | 18.58 ▼0.17 | 408.01 ▲22.35 | 114.83 ▲1.02 |
Media Library /wp-admin/upload.php | 1,765 ▼42 | 4.99 ▼0.03 | 138.06 ▼15.59 | 151.46 ▲25.54 |
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
- Zombie WordPress options detected upon uninstall: 1 option
- dashboard_widget_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/zd-design-agency-support-dashboard/dashboard_page.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/zd-design-agency-support-dashboard/widget.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/zd-design-agency-support-dashboard/zd_options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zd-design-agency-support-dashboard/index.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/zd-design-agency-support-dashboard/options.php:3
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/zd-design-agency-support-dashboard/widget-config.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Dashboard Widget Screenshot), #2 (Admin Dash Page Screenshot.)
zd-design-agency-support-dashboard/index.php 85% from 13 tests
The primary PHP file in "ZD Design Agency Support Dashboard" version 1.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zd-design-agency-support-dashboard.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected272 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 64 | 91 | 272 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 6 | 100.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
31 PNG files occupy 1.01MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blackboard-drawing-icon.png | 1.56KB | 1.32KB | ▼ 15.62% |
images/EMail-icon.png | 21.42KB | 6.57KB | ▼ 69.32% |
images/zd-icon.png | 1.33KB | 1.38KB | 0.00% |
images/lessonslogo.png | 4.14KB | 2.38KB | ▼ 42.53% |
images/logo-calicotek.png | 90.01KB | 28.19KB | ▼ 68.68% |