Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.98ms] Passed 4 tests
A check of server-side resources used by Notification bar on footer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 43.35 ▲2.33 |
Dashboard /wp-admin | 3.38 ▲0.08 | 51.03 ▼7.11 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 52.76 ▲0.72 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.09 | 88.40 ▼4.92 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 34.14 ▼0.59 |
Footer Notification /wp-admin/options-general.php?page=notification-footer | 3.28 | 32.37 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_notification_bar_footer |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
nbof_db_version |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Notification bar on footer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲146 | 13.53 ▼0.87 | 9.17 ▲7.68 | 44.15 ▼1.32 |
Dashboard /wp-admin | 2,225 ▲51 | 5.82 ▲0.11 | 95.45 ▲6.19 | 42.23 ▼3.33 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.27 ▲0.28 | 42.03 ▲0.13 | 35.19 ▼7.52 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.34 ▲0.05 | 670.36 ▼30.14 | 35.62 ▼10.66 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.51 ▲0.36 | 99.83 ▼8.81 | 46.39 ▲0.49 |
Footer Notification /wp-admin/options-general.php?page=notification-footer | 1,386 | 2.59 | 59.57 | 26.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- nbof_db_version
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/notification-bar-on-footer/admin/partials/notification-bar-on-footer-admin-display.php
- > /wp-content/plugins/notification-bar-on-footer/public/partials/notification-bar-on-footer-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Notification bar on footer ===
)
notification-bar-on-footer/notification-bar-on-footer.php Passed 13 tests
The entry point to "Notification bar on footer" version 1.0.1 is a PHP file that has certain tags in its header comment area
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
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
Good job! No executable or dangerous file extensions detected384 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 147 | 561 | 363 |
JavaScript | 3 | 7 | 54 | 21 |
CSS | 2 | 1 | 8 | 0 |
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.10 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected