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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.10ms] Passed 4 tests
An overview of server-side resources used by WordPress Easy Sticky Notification Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.15 ▲1.50 |
Dashboard /wp-admin | 3.46 ▲0.16 | 52.90 ▼0.54 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 49.37 ▲2.92 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 86.97 ▼16.27 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.56 ▲4.17 |
Easy Sticky Notification Bar /wp-admin/options-general.php?page=do-esnb-options | 3.37 | 33.02 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WordPress Easy Sticky Notification Bar: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.24 ▼0.11 | 1.79 ▲0.14 | 69.75 ▲26.78 |
Dashboard /wp-admin | 2,202 ▲22 | 5.57 ▼0.05 | 99.65 ▲11.02 | 42.15 ▲2.01 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.01 | 38.58 ▲3.77 | 36.59 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.61 ▲5.41 | 674.89 ▲33.22 | 54.95 ▼15.44 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.02 | 95.32 ▼3.64 | 40.69 ▼3.76 |
Easy Sticky Notification Bar /wp-admin/options-general.php?page=do-esnb-options | 1,926 | 2.02 | 27.59 | 32.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/easy-sticky-notification-bar/inc/settings-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/easy-sticky-notification-bar/easy-sticky-notification-bar.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-sticky-notification-bar/inc/admin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-sticky-notification-bar/inc/extras.php:124
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
easy-sticky-notification-bar/easy-sticky-notification-bar.php 92% from 13 tests
The primary PHP file in "WordPress Easy Sticky Notification Bar" version 0.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin910 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 167 | 213 | 587 |
JavaScript | 2 | 54 | 45 | 168 |
CSS | 2 | 20 | 17 | 155 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG images were found in this plugin