Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼8.81ms] Passed 4 tests
This is a short check of server-side resources used by Notification Bar, Sticky Notification Bar, Sticky Welcome Bar for any theme
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.10 ▼2.02 |
Dashboard /wp-admin | 3.55 ▲0.21 | 46.74 ▼18.11 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 51.25 ▲8.32 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 84.98 ▼20.10 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 38.96 ▲5.00 |
Need help? /wp-admin/admin.php?page=gp-notification-bar-need-help | 3.45 | 35.07 |
Upgrade to Pro /wp-admin/admin.php?page=gp-notification-bar-upgrade-to-pro | 3.51 | 32.72 |
Settings /wp-admin/admin.php?page=gp-notification-bar | 3.54 | 33.30 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
is_gnb_database_migrated |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Notification Bar, Sticky Notification Bar, Sticky Welcome Bar for any theme
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 13.74 ▼0.94 | 8.55 ▲6.84 | 43.86 ▲0.84 |
Dashboard /wp-admin | 2,231 ▲46 | 5.79 ▲0.96 | 95.19 ▼9.72 | 36.82 ▲0.93 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.00 ▲0.01 | 39.64 ▼0.71 | 35.19 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.19 ▲5.12 | 668.93 ▲47.11 | 55.44 ▲5.11 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.19 ▲0.05 | 104.16 ▲8.75 | 47.10 ▲5.96 |
Need help? /wp-admin/admin.php?page=gp-notification-bar-need-help | 873 | 2.08 | 29.10 | 47.59 |
Upgrade to Pro /wp-admin/admin.php?page=gp-notification-bar-upgrade-to-pro | 1,170 | 2.07 | 26.41 | 67.85 |
Settings /wp-admin/admin.php?page=gp-notification-bar | 1,271 | 3.79 | 56.63 | 49.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- is_gnb_database_migrated
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gp-notification-bar/admin/templates/widget-preview.php
- > /wp-content/plugins/gp-notification-bar/includes/front-end.php
- > /wp-content/plugins/gp-notification-bar/index.php
- > /wp-content/plugins/gp-notification-bar/admin/admin.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/gp-notification-bar/templates/template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gp-notification-bar/admin/templates/upgrade-to-pro.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/gp-notification-bar/admin/templates/display-settings.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gp-notification-bar/admin/templates/plugin-deactivate.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/gp-notification-bar/admin/templates/admin-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gp-notification-bar/admin/admin-common.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/gp-notification-bar/admin/templates/widget-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gp-notification-bar/admin/templates/admin-help.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/gp-notification-bar/admin/templates/button-settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/gp-notification-bar/admin/templates/close-button-settings.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
These attributes need your attention:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
gp-notification-bar/index.php 92% from 13 tests
The main PHP script in "Notification Bar, Sticky Notification Bar, Sticky Welcome Bar for any theme" version 1.0.4 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gp-notification-bar.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin8,249 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 180 | 54 | 4,158 |
PHP | 16 | 246 | 69 | 2,223 |
JavaScript | 10 | 229 | 201 | 1,829 |
SVG | 2 | 0 | 0 | 30 |
HTML | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 47.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 6.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 33 | |
▷ Static methods | 9 | 27.27% |
▷ Public methods | 30 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.09% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/payment-card-icons.png | 11.56KB | 4.49KB | ▼ 61.19% |
assets/admin/images/calendar.png | 2.05KB | 1.51KB | ▼ 26.49% |
assets/admin/css/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |