Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.81ms] Passed 4 tests
A check of server-side resources used by Custom Dashboard Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.04 ▼1.50 |
Dashboard /wp-admin | 3.29 ▼0.01 | 36.03 ▼13.64 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 48.43 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 87.07 ▼9.55 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.60 ▲2.70 |
Dashboard Widgets /wp-admin/options-general.php?page=dashboard-widgets | 3.28 | 30.93 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Dashboard Widgets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,006 ▼729 | 14.24 ▼0.19 | 1.81 ▲0.01 | 42.76 ▼3.92 |
Dashboard /wp-admin | 1,405 ▼786 | 5.32 ▼0.58 | 68.83 ▼39.83 | 33.17 ▼13.71 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.06 | 34.69 ▼1.06 | 42.34 ▲8.54 |
Add New Post /wp-admin/post-new.php | 1,525 ▼17 | 23.40 ▲5.34 | 592.50 ▼9.47 | 49.63 ▼10.22 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.01 | 95.84 ▼0.47 | 41.83 ▼2.64 |
Dashboard Widgets /wp-admin/options-general.php?page=dashboard-widgets | 2,382 | 2.16 | 32.29 | 42.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=dashboard-widgets
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=dashboard-widgets
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× 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/custom-dashboard-widgets/custom-dashboard-widgets.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=dashboard-widgets
- > Network (severe)
http://websites.unitone.ps/aghrady/wp-admin/images/loading.gif - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
custom-dashboard-widgets/custom-dashboard-widgets.php 92% from 13 tests
The main PHP file in "Custom Dashboard Widgets" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,016 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 60 | 24 | 738 |
CSS | 1 | 10 | 0 | 162 |
PO File | 1 | 122 | 219 | 109 |
HTML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 7 | |
▷ Named functions | 7 | 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
4 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 40.50KB | 13.94KB | ▼ 65.59% |
assets/screenshot-1.png | 34.77KB | 13.40KB | ▼ 61.45% |
assets/screenshot-3.png | 55.21KB | 22.58KB | ▼ 59.09% |
assets/screenshot-2.png | 11.89KB | 4.54KB | ▼ 61.82% |