Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.19ms] Passed 4 tests
Server-side resources used by Notification Bar - Top Bar - Easy Sticky Notification Bar | FM Notification Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 25.50 ▼20.91 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.62 ▲1.73 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.31 ▼0.00 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 110.07 ▲13.58 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.88 ▼1.58 |
Notification Bar /wp-admin/options-general.php?page=fm-notification-bar | 3.19 | 31.39 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Notification Bar - Top Bar - Easy Sticky Notification Bar | FM Notification Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.74 ▲0.35 | 2.11 ▲0.25 | 46.58 ▲4.57 |
Dashboard /wp-admin | 2,204 ▲30 | 5.60 ▲0.08 | 93.36 ▼0.23 | 43.34 ▲2.84 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.00 ▼0.03 | 42.94 ▲6.28 | 36.43 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.71 ▲0.48 | 641.47 ▼51.62 | 48.02 ▼22.36 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▼0.06 | 98.07 ▼7.84 | 41.84 ▼6.35 |
Notification Bar /wp-admin/options-general.php?page=fm-notification-bar | 892 | 2.03 | 24.60 | 24.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fm-notification-bar
- > Notice in wp-content/plugins/fm-notification-bar/admin/settings.php+69
Trying to access array offset on value of type bool
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fm-notification-bar/admin/settings.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=fm-notification-bar
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=fm-notification-bar 189 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: floating bar, special offer bar, notification bar, notice, message...
fm-notification-bar/notification-bar.php 92% from 13 tests
The main PHP file in "Notification Bar - Top Bar - Easy Sticky Notification Bar | FM Notification Bar" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("fm-notification-bar.php" instead of "notification-bar.php")
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
There were no executable files found in this plugin263 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 2 | 12 | 146 |
PHP | 3 | 16 | 16 | 117 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
3 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 55.54KB | 16.67KB | ▼ 69.98% |
screenshot-2.png | 86.98KB | 25.26KB | ▼ 70.96% |
img/woo_16.png | 0.49KB | 0.43KB | ▼ 11.24% |