Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/dh-notification-bar/index.php+405
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼48.76ms] Passed 4 tests
Analyzing server-side resources used by DH - Notification Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.95 ▼31.34 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.78 ▼41.62 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.81 ▼36.81 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.55 ▼85.28 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.45 ▼27.66 |
Submit a Donation /wp-admin/admin.php?page=dh-submit-donation | 2.05 | 6.50 |
Notification Bar /wp-admin/admin.php?page=dh-notificationbar | 2.05 | 7.34 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for DH - Notification Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲167 | 13.83 ▼0.75 | 4.95 ▲3.41 | 35.48 ▼5.20 |
Dashboard /wp-admin | 2,237 ▲52 | 4.98 ▼0.89 | 98.34 ▼3.08 | 71.61 ▲27.91 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.26 ▲0.23 | 36.48 ▲1.25 | 33.74 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,553 ▲39 | 18.32 ▲0.86 | 635.13 ▼12.21 | 40.14 ▼38.14 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.43 ▲0.25 | 94.16 ▼4.48 | 79.86 ▲37.08 |
Submit a Donation /wp-admin/admin.php?page=dh-submit-donation | 941 | 1.78 | 26.50 | 27.16 |
Notification Bar /wp-admin/admin.php?page=dh-notificationbar | 2,267 | 6.14 | 138.82 | 81.45 |
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
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/dh-notification-bar/index.php+405
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 17 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dh-notificationbar
- > Notice in wp-content/plugins/dh-notification-bar/admin_menu.php+127
Trying to access array offset on value of type bool
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dh-notificationbar
- > Warning in wp-content/plugins/dh-notification-bar/admin_menu.php+106
Use of undefined constant dhnbar_linktarget - assumed 'dhnbar_linktarget' (this will throw an Error in a future version of PHP)
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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dh-notification-bar/index.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (If "DH - Notification Bar" active then showing notice on top site.), #2 (All settings on WP Dashboard.)
dh-notification-bar/index.php 85% from 13 tests
The main PHP script in "DH - Notification Bar" version 7... is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("dh-notification-bar.php" instead of "index.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "7...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,388 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 350 | 211 | 1,958 |
CSS | 3 | 53 | 53 | 947 |
PHP | 2 | 45 | 23 | 483 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 1.39MB with 1.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/close.png | 1.25KB | 0.34KB | ▼ 72.51% |
assets/img/show.png | 1.14KB | 0.36KB | ▼ 68.69% |
screenshot-2.png | 39.54KB | 19.61KB | ▼ 50.41% |
assets/img/dh.png | 19.83KB | 0.78KB | ▼ 96.07% |
screenshot-1.png | 1,357.04KB | 308.36KB | ▼ 77.28% |