Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲4.78MB] [CPU: ▼265.84ms] Passed 4 tests
Server-side resources used by Scheduled Notification Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.64 ▲5.12 | 81.86 ▲30.28 |
Dashboard /wp-admin | 8.66 ▲5.25 | 111.94 ▲79.06 |
Posts /wp-admin/edit.php | 8.66 ▲5.02 | 61.95 ▲25.21 |
Add New Post /wp-admin/post-new.php | 10.72 ▲3.74 | 114.66 ▼1,139.46 |
Media Library /wp-admin/upload.php | 8.66 ▲5.36 | 46.73 ▲20.60 |
All Notification Bar /wp-admin/edit.php?post_type=notification_bar | 8.66 | 47.91 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.66 | 46.62 |
Add New Notification /wp-admin/post-new.php?post_type=notification_bar | 8.66 | 69.25 |
Scheduled Notification Bar /wp-admin/admin.php?page=ScheduledNotificationBar | 8.66 | 47.42 |
Addons /wp-admin/edit.php?post_type=notification_bar&page=scheduled_notification_bar | 8.66 | 43.91 |
Server storage [IO: ▲3.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 202 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_gdpr |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for Scheduled Notification Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,009 ▲287 | 16.01 ▲0.30 | 9.72 ▲3.74 | 17.16 ▲14.64 |
Dashboard /wp-admin | 2,968 ▲107 | 6.19 ▲0.05 | 119.24 ▼16.88 | 173.43 ▲13.39 |
Posts /wp-admin/edit.php | 2,764 ▲70 | 3.25 ▲0.01 | 67.68 ▲5.15 | 162.51 ▲17.71 |
Add New Post /wp-admin/post-new.php | 1,693 ▼59 | 20.19 ▼1.36 | 427.42 ▼6.00 | 156.78 ▼3.68 |
Media Library /wp-admin/upload.php | 1,771 ▲76 | 5.64 ▲0.09 | 136.20 ▼15.82 | 200.70 ▲17.19 |
All Notification Bar /wp-admin/edit.php?post_type=notification_bar | 1,436 | 3.49 | 63.83 | 124.71 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,476 | 2.54 | 56.01 | 117.23 |
Add New Notification /wp-admin/post-new.php?post_type=notification_bar | 3,356 | 4.65 | 132.29 | 169.74 |
Scheduled Notification Bar /wp-admin/admin.php?page=ScheduledNotificationBar | 1,331 | 2.62 | 53.10 | 161.76 |
Addons /wp-admin/edit.php?post_type=notification_bar&page=scheduled_notification_bar | 1,426 | 3.04 | 56.63 | 192.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/scheduled-notification-bar/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_active_plugins
- fs_accounts
- fs_debug_mode
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/scheduled-notification-bar/public/partials/scheduled-notification-bar-public-display.php
- > /wp-content/plugins/scheduled-notification-bar/admin/partials/scheduled-notification-bar-admin-display.php
- > /wp-content/plugins/scheduled-notification-bar/freemius/templates/ajax-loader.php
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-notification-bar/public/frontend-bar-bottom.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-notification-bar/admin/meta-boxes.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-notification-bar/public/frontend-bar-top.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-notification-bar/admin/class-custom-post-type.php:60
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/scheduled-notification-bar/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-notification-bar/admin/class-addons.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/scheduled-notification-bar/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-notification-bar/public/frontend-bar-bottom.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-notification-bar/public/wiz-notify-bar-dashicons.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/scheduled-notification-bar/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== scheduled-notification-bar ===
) - Screenshots: A description for screenshot #3 is missing in scheduled-notification-bar/assets to your readme.txt
scheduled-notification-bar/scheduled-notification-bar.php Passed 13 tests
The principal PHP file in "Scheduled Notification Bar" v. 1.0.1 is loaded by WordPress automatically on each request
74 characters long description:
Schedule a notification bar to display and hide at a specific time or day.
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected31,794 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 7,500 | 16,701 | 31,534 |
JavaScript | 5 | 38 | 113 | 200 |
CSS | 13 | 2 | 8 | 60 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 76.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,187 | |
▷ Static methods | 175 | 14.74% |
▷ Public methods | 823 | 69.33% |
▷ Protected methods | 15 | 1.26% |
▷ Private methods | 349 | 29.40% |
Functions | 116 | |
▷ Named functions | 116 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/mail.png | 18.38KB | 7.65KB | ▼ 58.36% |
admin/images/wiz-logo.png | 8.79KB | 8.80KB | 0.00% |
admin/images/buyer.png | 10.19KB | 3.47KB | ▼ 65.96% |
freemius/assets/img/ScheduledNotificationBar.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/images/timer.png | 6.95KB | 5.92KB | ▼ 14.88% |