Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.03MB] [CPU: ▼13.92ms] Passed 4 tests
This is a short check of server-side resources used by Sweet Custom Dashboard
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.70 ▼2.21 |
Dashboard /wp-admin | 3.20 ▼0.15 | 33.73 ▼30.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.55 ▼3.94 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.65 ▼18.93 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.94 ▲0.11 |
Custom Dashboard /wp-admin/index.php?page=custom-dashboard | 3.21 | 30.16 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Sweet Custom Dashboard
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,455 ▼1,306 | 10.25 ▼4.48 | 2.08 ▲0.08 | 38.60 ▼5.01 |
Dashboard /wp-admin | 829 ▼1,348 | 2.05 ▼3.57 | 36.39 ▼56.19 | 38.48 ▼9.95 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▲0.04 | 34.81 ▼4.77 | 34.76 ▼4.90 |
Add New Post /wp-admin/post-new.php | 1,682 ▲154 | 22.36 ▼0.62 | 666.46 ▲35.46 | 30.32 ▼20.49 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.13 ▼0.04 | 100.27 ▼6.67 | 47.99 ▲1.06 |
Custom Dashboard /wp-admin/index.php?page=custom-dashboard | 809 | 2.18 | 23.98 | 38.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/sweet-custom-dashboard/custom_dashboard.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sweet-custom-dashboard/sweet-custom-dashboard.php:21
- > PHP Warning
require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/sweet-custom-dashboard/custom_dashboard.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sweet-custom-dashboard/custom_dashboard.php on line 7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/index.php?page=custom-dashboard
- > Network (severe)
wp-admin/images/screenshots/theme-customizer.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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 need to be fixed:
- Screenshots: Screenshot #1 (Preview a custom WordPress dashboard) image required
sweet-custom-dashboard/sweet-custom-dashboard.php 92% from 13 tests
The main PHP file in "Sweet Custom Dashboard" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin58 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 32 | 58 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin