Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.13ms] Passed 4 tests
Analyzing server-side resources used by Custom Dashboard
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.76 ▼4.81 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.62 ▼3.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.53 ▲1.76 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.94 ▼9.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.86 ▲0.87 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Dashboard
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲152 | 13.62 ▼0.76 | 4.99 ▲2.96 | 35.57 ▼14.82 |
Dashboard /wp-admin | 2,205 ▲17 | 4.92 ▼0.99 | 108.68 ▼10.48 | 52.34 ▲4.60 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.07 ▲0.08 | 39.72 ▲3.96 | 52.49 ▲17.69 |
Add New Post /wp-admin/post-new.php | 1,520 ▼0 | 23.11 ▲0.09 | 682.55 ▲30.52 | 59.01 ▲9.43 |
Media Library /wp-admin/upload.php | 1,390 ▲8 | 4.33 ▲0.13 | 95.82 ▼6.05 | 48.72 ▲6.57 |
Uninstaller [IO: ▲0.00MB] [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
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/custom-dashboard/admin/partials/custom-dashboard-admin-display.php
- > /wp-content/plugins/custom-dashboard/public/partials/custom-dashboard-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: style, dashboard, wordpress-custom-dashboard, custom-dashboard
custom-dashboard/custom-dashboard.php Passed 13 tests
The entry point to "Custom Dashboard" version 1.0.0 is a PHP file that has certain tags in its header comment area
75 characters long description:
Make your wordpress dashboard more style and customize by use this plug-in.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin769 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 565 |
PHP | 12 | 120 | 559 | 171 |
JavaScript | 2 | 5 | 28 | 29 |
CSS | 4 | 0 | 3 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 1.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin