Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼15.36ms] Passed 4 tests
A check of server-side resources used by Custom Dashboard Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 27.83 ▼9.94 |
Dashboard /wp-admin | 3.40 ▲0.05 | 28.71 ▼32.52 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 39.38 ▼12.11 |
Add New Post /wp-admin/post-new.php | 5.72 ▼0.17 | 77.18 ▼6.86 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 32.10 ▼1.09 |
DuoGeek /wp-admin/admin.php?page=duogeek-panel | 3.38 | 27.45 |
Help /wp-admin/admin.php?page=duogeek-panel-help | 3.38 | 27.02 |
Licenses /wp-admin/admin.php?page=duogeek-pro-licenses | 3.38 | 25.25 |
Custom Dashboard Widget /wp-admin/admin.php?page=dashboard-settings | 3.38 | 27.69 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 177 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_widgets_table |
New WordPress options |
---|
widget_theysaidso_widget |
recovery_mode_email_last_sent |
theysaidso_admin_options |
jal_db_version |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Dashboard Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲130 | 13.48 ▼1.10 | 2.02 ▲0.38 | 42.55 ▲3.17 |
Dashboard /wp-admin | 2,268 ▲83 | 5.17 ▼0.70 | 115.44 ▲5.65 | 39.49 ▼3.27 |
Posts /wp-admin/edit.php | 2,158 ▲69 | 2.40 ▲0.41 | 43.11 ▲6.82 | 35.39 ▲4.74 |
Add New Post /wp-admin/post-new.php | 1,773 ▲259 | 26.42 ▲9.03 | 584.90 ▼76.37 | 34.97 ▼28.35 |
Media Library /wp-admin/upload.php | 1,450 ▲62 | 4.62 ▲0.21 | 99.34 ▲3.25 | 39.80 ▼2.67 |
DuoGeek /wp-admin/admin.php?page=duogeek-panel | 775 | 1.14 | 6.73 | 25.41 |
Help /wp-admin/admin.php?page=duogeek-panel-help | 849 | 2.15 | 27.36 | 22.29 |
Licenses /wp-admin/admin.php?page=duogeek-pro-licenses | 837 | 2.04 | 35.41 | 30.46 |
Custom Dashboard Widget /wp-admin/admin.php?page=dashboard-settings | 1,915 | 11.72 | 201.85 | 122.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_widgets_table
- Zombie WordPress options detected upon uninstall: 8 options
- jal_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- recovery_mode_email_last_sent
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dashboard-settings
- > Notice in wp-content/plugins/create-custom-dashboard-widget/duogeek/duogeek-panel.php+147
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=duogeek-panel
- > Error in wp-content/plugins/create-custom-dashboard-widget/duogeek/duogeek-panel.php+413
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/create-custom-dashboard-widget/duogeek/duogeek-panel.php:413
Stack trace:
#0 wp-includes/class-wp-hook.php(310): DuoGeekPlugins->duogeek_panel_cb()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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
Please fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'AdminDashboard' not found in wp-content/plugins/create-custom-dashboard-widget/dashboard-files/modules/class.dashboard.widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/create-custom-dashboard-widget/duogeek/class.customPostType.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/create-custom-dashboard-widget/duogeek/helper.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/create-custom-dashboard-widget/dashboard-files/includes/admin-internal.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/create-custom-dashboard-widget/duogeek/duogeek-panel.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/create-custom-dashboard-widget/dashboard-files/includes/login-internal.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=dashboard-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=dashboard-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== create-custom-dashboard-widget ===
)
create-custom-dashboard-widget/dashboardwidget.php 92% from 13 tests
This is the main PHP file of "Custom Dashboard Widget" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("create-custom-dashboard-widget.php" instead of "dashboardwidget.php")
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 detected18,198 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 55 | 913 | 300 | 9,894 |
JavaScript | 5 | 563 | 932 | 2,790 |
PHP | 8 | 309 | 144 | 1,505 |
Sass | 13 | 26 | 24 | 1,352 |
LESS | 13 | 26 | 33 | 1,343 |
SVG | 3 | 0 | 0 | 1,314 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.81 |
Average class complexity | 23.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 5 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 10 | |
▷ Global constants | 10 | 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
66 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
duogeek/inc/icheck/skins/futurico/futurico.png | 1.69KB | 1.61KB | ▼ 5.07% |
duogeek/inc/icheck/skins/flat/blue@2x.png | 3.14KB | 2.79KB | ▼ 11.25% |
duogeek/inc/icheck/skins/polaris/polaris@2x.png | 16.37KB | 6.77KB | ▼ 58.66% |
duogeek/inc/icheck/skins/minimal/pink.png | 1.12KB | 1.45KB | 0.00% |
duogeek/inc/icheck/skins/minimal/red.png | 1.10KB | 1.45KB | 0.00% |