Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.10ms] Passed 4 tests
This is a short check of server-side resources used by WP Header Notification
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 49.73 ▲3.53 |
Dashboard /wp-admin | 3.35 ▲0.05 | 53.86 ▲0.51 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 58.55 ▲4.67 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 92.46 ▼3.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 38.99 ▲0.13 |
WP Header Notification /wp-admin/options-general.php?page=wp-header-notification-options | 3.24 | 36.81 |
Server storage [IO: ▲0.06MB] [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: 15 new files
Database: no new tables, 12 new options
New WordPress options |
---|
wp_header_notification_button_link |
wp_header_notification_status |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
wp_header_notification_text |
can_compress_scripts |
wp_header_notification_close_value |
widget_recent-comments |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
WP Header Notification: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲39 | 13.10 ▼0.13 | 1.86 ▲0.12 | 44.05 ▼2.47 |
Dashboard /wp-admin | 2,210 ▲4 | 5.85 ▲0.98 | 99.46 ▼12.58 | 39.66 ▼2.53 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.00 | 40.87 ▲3.92 | 35.69 ▲2.69 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.36 ▲0.28 | 768.24 ▲121.38 | 53.63 ▲5.42 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.25 ▲0.07 | 96.07 ▼3.90 | 44.17 ▼1.62 |
WP Header Notification /wp-admin/options-general.php?page=wp-header-notification-options | 908 | 2.05 | 23.02 | 29.71 |
Uninstaller [IO: ✅] [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
- This plugin did not uninstall successfully, leaving 12 options in the database
- wp_header_notification_text
- wp_header_notification_button_value
- widget_theysaidso_widget
- wp_header_notification_close_value
- wp_header_notification_renotice_time
- widget_recent-comments
- wp_header_notification_status
- theysaidso_admin_options
- wp_header_notification_button_link
- widget_recent-posts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-header-notification/options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-header-notification/wp-header-notification.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
2 plugin tags: header, notification
wp-header-notification/wp-header-notification.php Passed 13 tests
The primary PHP file in "WP Header Notification" version 1.2.7 is used by WordPress to initiate all plugin functionality
63 characters long description:
Add a Notification bar similar to Google in your blog's header.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected307 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 27 | 146 |
PO File | 2 | 34 | 34 | 104 |
CSS | 2 | 4 | 0 | 41 |
JavaScript | 2 | 1 | 1 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected