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 gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.55ms] Passed 4 tests
A check of server-side resources used by Smart Notification Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 53.14 ▲14.26 |
Dashboard /wp-admin | 3.42 ▲0.11 | 45.51 ▼8.02 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.43 ▲8.19 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 85.66 ▼17.47 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.34 ▲3.11 |
Edit Notification Bar /wp-admin/admin.php?page=smart-notification-bar-edit | 3.34 | 30.62 |
Notification Bars /wp-admin/admin.php?page=smart-notification-bars-list | 3.36 | 37.14 |
Add New /wp-admin/admin.php?page=smart-notification-bar-create | 3.39 | 45.17 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 54 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ep_smart_notification_bars |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Smart Notification Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲95 | 13.69 ▼0.71 | 2.08 ▼0.01 | 83.42 ▲34.66 |
Dashboard /wp-admin | 2,258 ▲70 | 4.89 ▼0.96 | 101.73 ▼5.45 | 39.28 ▼4.72 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.04 ▲0.04 | 35.40 ▲1.79 | 30.74 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.40 ▲0.10 | 675.13 ▼34.23 | 63.89 ▲6.57 |
Media Library /wp-admin/upload.php | 1,443 ▲55 | 4.26 ▲0.05 | 93.27 ▼10.56 | 43.50 ▼1.54 |
Edit Notification Bar /wp-admin/admin.php?page=smart-notification-bar-edit | 1,012 | 3.31 | 43.90 | 42.22 |
Notification Bars /wp-admin/admin.php?page=smart-notification-bars-list | 1,608 | 10.13 | 268.22 | 77.13 |
Add New /wp-admin/admin.php?page=smart-notification-bar-create | 2,922 | 3.94 | 77.64 | 182.53 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=smart-notification-bar-edit
- > Notice in wp-content/plugins/smart-notification-bar/admin/views/smart-notification-bar-layout.view.php+65
Undefined index: id
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
- 16× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/smart-notification-bar/admin/views/smart-notification-bar-404.view.php
- > /wp-content/plugins/smart-notification-bar/admin/views/form-components/get-started.php
- > /wp-content/plugins/smart-notification-bar/admin/views/form-components/notification-bar-content.php
- > /wp-content/plugins/smart-notification-bar/admin/views/form-components/call-to-action-settings.php
- > /wp-content/plugins/smart-notification-bar/admin/views/smart-notification-bar-form.view.php
- > /wp-content/plugins/smart-notification-bar/admin/views/form-components/close-button-settings.php
- > /wp-content/plugins/smart-notification-bar/admin/views/smart-notification-bars-list.view.php
- > /wp-content/plugins/smart-notification-bar/admin/views/smart-notification-bar-layout.view.php
- > /wp-content/plugins/smart-notification-bar/admin/views/form-components/display-rules.php
- > /wp-content/plugins/smart-notification-bar/admin/views/form-components/visibility.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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
There were no plugin tags found
smart-notification-bar/smart-notification-bar.php 92% from 13 tests
The main file in "Smart Notification Bar" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected7,457 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 482 | 907 | 2,542 |
CSS | 6 | 0 | 276 | 2,213 |
Sass | 2 | 239 | 16 | 1,452 |
JavaScript | 5 | 258 | 384 | 1,250 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 108.00 |
▷ Minimum class complexity | 82.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 5.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 9 | 18.75% |
▷ Public methods | 45 | 93.75% |
▷ Protected methods | 2 | 4.17% |
▷ Private methods | 1 | 2.08% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 5 | 35.71% |
▷ Class constants | 9 | 64.29% |
▷ Public constants | 9 | 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
16 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/discount-background.png | 13.08KB | 3.61KB | ▼ 72.40% |
admin/assets/images/templates/discount.png | 7.70KB | 3.96KB | ▼ 48.56% |
public/assets/images/christmas-background.png | 24.28KB | 7.82KB | ▼ 67.77% |
public/assets/images/halloween-background.png | 17.86KB | 5.82KB | ▼ 67.44% |
admin/assets/images/templates/light.png | 4.18KB | 2.21KB | ▼ 47.18% |