Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.39ms] Passed 4 tests
Analyzing server-side resources used by Notification Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 59.46 ▲11.63 |
Dashboard /wp-admin | 3.33 ▲0.03 | 54.13 ▼0.12 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 55.11 ▲0.61 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 99.24 ▼11.64 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.84 ▲1.58 |
Subscribers-List /wp-admin/admin.php?page=ssb_list | 3.24 | 36.32 |
MailChimp Settings /wp-admin/admin.php?page=ssb_mailchimp | 3.22 | 35.66 |
Settings /wp-admin/admin.php?page=ssb_bar_plugin_ui | 3.26 | 38.34 |
Ultimate Bar /wp-admin/admin.php?page=ssb_bar | 3.22 | 35.28 |
Server storage [IO: ▲3.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Notification Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲207 | 13.59 ▼0.71 | 7.41 ▲5.44 | 47.84 ▲5.43 |
Dashboard /wp-admin | 2,250 ▲59 | 5.88 ▲1.02 | 101.87 ▼4.44 | 43.17 ▼0.91 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.04 ▼0.02 | 40.80 ▼1.41 | 36.92 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 22.95 ▼0.40 | 613.91 ▼20.11 | 35.90 ▼12.69 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.28 ▲0.11 | 101.10 ▼1.02 | 42.83 ▼3.68 |
Subscribers-List /wp-admin/admin.php?page=ssb_list | 804 | 1.73 | 26.47 | 25.39 |
MailChimp Settings /wp-admin/admin.php?page=ssb_mailchimp | 823 | 1.72 | 26.06 | 29.62 |
Settings /wp-admin/admin.php?page=ssb_bar_plugin_ui | 1,728 | 6.29 | 132.28 | 111.27 |
Ultimate Bar /wp-admin/admin.php?page=ssb_bar | 926 | 1.87 | 26.86 | 34.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-bar/ssb_bar_style.php
- > /wp-content/plugins/simple-bar/data/subscribe_msg.php
- > /wp-content/plugins/simple-bar/subscriber-list-empty.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-bar/ssb_bar_html.php:3
- > PHP Notice
Undefined index: ssb_data in wp-content/plugins/simple-bar/data/ssbdata.php on line 3
- > PHP Notice
Undefined variable: ssb_bar_position in wp-content/plugins/simple-bar/ssb_bar_style.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-bar/ssb_scripts_file.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-bar/ssb_options_file.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-bar/ssb_options_file.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-bar/ssb_menu_file.php:4
- > PHP Notice
Undefined variable: ssb_bar_text_fontFamily in wp-content/plugins/simple-bar/ssb_bar_style.php on line 47
- > PHP Notice
Undefined variable: ssb_background_color in wp-content/plugins/simple-bar/ssb_bar_style.php on line 9
- > PHP Notice
Undefined variable: ssb_bar_position in wp-content/plugins/simple-bar/ssb_bar_style.php on line 11
- > 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 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: There are too many tags (15 tag instead of maximum 10)
simple-bar/Ultimate-Bar.php 92% from 13 tests
"Notification Bar" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-bar.php" instead of "Ultimate-Bar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,631 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 351 | 2,025 | 1,490 |
JavaScript | 3 | 28 | 22 | 94 |
HTML | 3 | 16 | 0 | 47 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 111 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 3.54MB with 1.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
close.png | 1.12KB | 0.87KB | ▼ 22.45% |
imgs/ulp.png | 3,445.64KB | 1,909.24KB | ▼ 44.59% |
imgs/ts.png | 2.04KB | 0.80KB | ▼ 60.57% |
imgs/msf.png | 7.83KB | 7.83KB | 0.00% |
imgs/psp.png | 172.58KB | 51.67KB | ▼ 70.06% |