Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.04MB] [CPU: ▼310.60ms] Passed 4 tests
A check of server-side resources used by ABD Dashboard Widget Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.60 ▲5.46 |
Dashboard /wp-admin | 3.30 ▼0.11 | 26.07 ▼12.47 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.72 ▲1.90 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 90.68 ▼1,227.82 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 22.08 ▼4.01 |
Dashboard Manager /wp-admin/options-general.php?page=abd_dwm_settings | 3.33 | 26.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 5 new options
New WordPress options |
---|
abd_dwm_avail_dashboard_widgets |
abd_dwm_show_widgets |
abd_dwm_user_roles |
abd_dwm_widget_content |
abd_dwm_widget_title |
Browser metrics Passed 4 tests
Checking browser requirements for ABD Dashboard Widget Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,591 ▼1,167 | 15.07 ▼0.53 | 7.49 ▲1.60 | 2.52 ▼0.14 |
Dashboard /wp-admin | 1,694 ▼1,164 | 5.58 ▼0.60 | 108.26 ▼25.96 | 142.92 ▼23.67 |
Posts /wp-admin/edit.php | 2,695 ▲4 | 3.23 ▼0.00 | 66.72 ▲2.88 | 138.94 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,684 ▼6 | 20.95 ▲0.40 | 430.59 ▼12.99 | 165.62 ▲4.59 |
Media Library /wp-admin/upload.php | 1,705 ▲4 | 5.52 ▲0.02 | 137.86 ▼7.25 | 185.90 ▼4.62 |
Dashboard Manager /wp-admin/options-general.php?page=abd_dwm_settings | 2,089 | 8.81 | 156.78 | 163.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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 trigger errors when accessed directly with GET requests:
- > 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
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/abd-dashboard-widget-manager/abd_dashboard_widget_manager.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 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
8 plugin tags: dashboard, custom dashboard, administrator dashboard, widget manager, custom widget...
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:
- Main file name: Name the main plugin file the same as the plugin slug ("abd-dashboard-widget-manager.php" instead of "abd_dashboard_widget_manager.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 285 characters long)
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
Good job! No executable or dangerous file extensions detected285 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
An short overview of 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.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected