Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.47ms] Passed 4 tests
A check of server-side resources used by ABD Dashboard Widget Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.94 ▼4.35 |
Dashboard /wp-admin | 3.27 ▼0.03 | 39.34 ▼15.02 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 51.92 ▲4.66 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 86.57 ▼18.15 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 37.36 ▼0.37 |
Dashboard Manager /wp-admin/options-general.php?page=abd_dwm_settings | 3.30 | 42.14 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
abd_dwm_widget_title |
abd_dwm_user_roles |
widget_theysaidso_widget |
abd_dwm_avail_dashboard_widgets |
abd_dwm_show_widgets |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ABD Dashboard Widget Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,979 ▼767 | 13.78 ▼0.53 | 1.98 ▲0.08 | 44.34 ▼2.67 |
Dashboard /wp-admin | 1,362 ▼829 | 5.32 ▼0.56 | 81.95 ▼25.19 | 38.22 ▼7.33 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 1.98 ▼0.02 | 36.52 ▼1.99 | 34.80 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.24 ▲0.23 | 640.71 ▼47.33 | 51.56 ▼3.86 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.15 | 100.15 ▼2.79 | 44.52 ▼0.12 |
Dashboard Manager /wp-admin/options-general.php?page=abd_dwm_settings | 1,626 | 6.79 | 136.95 | 55.15 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/abd-dashboard-widget-manager/abd_dashboard_widget_manager.php:11
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/abd-dashboard-widget-manager/abd_dashboard_widget_manager.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: custom widget, admin dashboard, widget manager, admin widgets, custom dashboard...
abd-dashboard-widget-manager/abd_dashboard_widget_manager.php 85% from 13 tests
The principal PHP file in "ABD Dashboard Widget Manager" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 285 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("abd-dashboard-widget-manager.php" instead of "abd_dashboard_widget_manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin285 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 9 | 245 |
CSS | 1 | 10 | 1 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 11 | |
▷ Named functions | 11 | 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
No PNG images were found in this plugin