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.12MB] [CPU: ▲0.38ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Notification Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.11 ▼0.50 |
Dashboard /wp-admin | 3.44 ▲0.13 | 52.30 ▲3.01 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 47.70 ▲0.21 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 96.44 ▼0.97 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.09 ▲2.76 |
Notification Bar /wp-admin/options-general.php?page=seed_wnb | 3.33 | 31.12 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
seed_wnb_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Notification Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▲0.01 | 1.68 ▼0.16 | 43.18 ▼5.71 |
Dashboard /wp-admin | 2,196 ▲19 | 5.51 ▼0.25 | 85.29 ▼12.83 | 40.86 ▼7.11 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.04 | 38.14 ▼0.84 | 32.53 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.50 ▲0.28 | 613.07 ▼106.95 | 49.46 ▼18.96 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.21 ▼0.02 | 105.67 ▼0.85 | 43.06 ▼5.93 |
Notification Bar /wp-admin/options-general.php?page=seed_wnb | 1,099 | 4.77 | 48.60 | 28.12 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- seed_wnb_version
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=seed_wnb
- > Notice in wp-content/plugins/wordpress-notification-bar/framework/field-types/textbox.php+7
Undefined index: msg
- > GET request to /wp-admin/options-general.php?page=seed_wnb
- > Notice in wp-content/plugins/wordpress-notification-bar/framework/field-types/textbox.php+7
Undefined index: button_label
- > GET request to /wp-admin/options-general.php?page=seed_wnb
- > Notice in wp-content/plugins/wordpress-notification-bar/framework/field-types/textbox.php+7
Undefined index: button_link
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wordpress-notification-bar/framework/field-types/textarea.php
- > /wp-content/plugins/wordpress-notification-bar/framework/field-types/select.php
- 57× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-notification-bar/framework/framework.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-notification-bar/inc/config.php:13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wordpress-notification-bar/framework/validations/color.php on line 11
- > PHP Notice
Undefined variable: options in wp-content/plugins/wordpress-notification-bar/framework/field-types/wpeditor.php on line 7
- > PHP Notice
Undefined variable: k in wp-content/plugins/wordpress-notification-bar/framework/validations/sanitize_url.php on line 10
- > PHP Warning
Use of undefined constant SEED_WNB_PLUGIN_NAME - assumed 'SEED_WNB_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/wordpress-notification-bar/framework/framework.php on line 641
- > PHP Notice
Undefined variable: option_values in wp-content/plugins/wordpress-notification-bar/framework/field-types/select.php on line 8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wordpress-notification-bar/framework/field-types/select.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wordpress-notification-bar/framework/field-types/color.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wordpress-notification-bar/framework/field-types/upload.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== wordpress-notification-bar ===
) - Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Front End), #2 (Back End)
wordpress-notification-bar/wordpress-notification-bar.php Passed 13 tests
The main PHP file in "WordPress Notification Bar" ver. 1.3.10 adds more information about the plugin and also serves as the entry point for this plugin
37 characters long description:
Global Notification Bar for WordPress
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
There were no executable files found in this plugin4,264 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 752 | 1,073 | 3,243 |
PO File | 10 | 280 | 281 | 928 |
CSS | 2 | 4 | 1 | 48 |
JavaScript | 4 | 8 | 5 | 45 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 115.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 379.00 |
Average method complexity | 5.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 197 | |
▷ Static methods | 4 | 2.03% |
▷ Public methods | 58 | 29.44% |
▷ Protected methods | 138 | 70.05% |
▷ Private methods | 1 | 0.51% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
5 PNG files occupy 0.67MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
framework/settings-page-icon-36x34.png | 1.03KB | 0.91KB | ▼ 11.48% |
framework/seedprod-300x250.png | 41.02KB | 15.70KB | ▼ 61.72% |
screenshot-1.png | 453.12KB | 56.58KB | ▼ 87.51% |
framework/settings-menu-icon-16x16.png | 0.81KB | 0.70KB | ▼ 13.53% |
screenshot-2.png | 186.98KB | 22.76KB | ▼ 87.83% |