Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/widget-display-options/widget-display-options.php+16
Use of undefined constant WDO_MANUAL - assumed 'WDO_MANUAL' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.81MB] [CPU: ▼47.01ms] Passed 4 tests
A check of server-side resources used by Widget Display Options
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 4.88 ▼35.63 |
Dashboard /wp-admin | 2.19 ▼1.11 | 5.96 ▼40.11 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 6.70 ▼35.32 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 6.46 ▼76.99 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.19 ▼24.39 |
Widget Display Options /wp-admin/options-general.php?page=wdo-plugin-settings | 2.19 | 6.84 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
wdo-plugin-settings-fields |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Widget Display Options
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.18 ▼1.12 | 1.74 ▼0.12 | 42.15 ▼2.57 |
Dashboard /wp-admin | 2,213 ▲28 | 5.85 ▼0.04 | 103.83 ▼4.59 | 40.91 ▼1.18 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.03 | 40.15 ▼0.48 | 35.72 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.18 ▲5.60 | 677.39 ▲69.13 | 56.29 ▲1.01 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▲0.00 | 94.34 ▼6.95 | 42.88 ▼3.34 |
Widget Display Options /wp-admin/options-general.php?page=wdo-plugin-settings | 863 | 2.04 | 22.22 | 26.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/widget-display-options/widget-display-options.php+16
Use of undefined constant WDO_MANUAL - assumed 'WDO_MANUAL' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- wdo-plugin-settings-fields
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wdo-plugin-settings
- > Warning in wp-content/plugins/widget-display-options/widget-display-options.php+16
Use of undefined constant WDO_MANUAL - assumed 'WDO_MANUAL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=wdo-plugin-settings
- > 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=wdo-plugin-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: conditionals, widgets
widget-display-options/widget-display-options.php 92% from 13 tests
"Widget Display Options" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,068 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 395 | 525 | 667 |
JavaScript | 4 | 66 | 15 | 229 |
CSS | 1 | 36 | 0 | 172 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 90.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.30% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
im/screenshot.png | 20.36KB | 8.05KB | ▼ 60.45% |
im/help-icon.png | 1.57KB | 0.66KB | ▼ 57.58% |
screenshot-1.png | 5.23KB | 4.42KB | ▼ 15.47% |
screenshot-2.png | 19.04KB | 8.40KB | ▼ 55.90% |