Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.00ms] Passed 4 tests
A check of server-side resources used by Top Bar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 48.47 ▼1.86 |
Dashboard /wp-admin | 3.41 ▲0.10 | 55.90 ▲4.98 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.54 ▼4.06 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 96.47 ▼1.81 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 37.02 ▼0.28 |
MailChimp Settings /wp-admin/admin.php?page=ssb_mailchimp | 3.30 | 34.99 |
Subscribers-List /wp-admin/admin.php?page=ssb_list | 3.30 | 35.21 |
Settings /wp-admin/admin.php?page=ssb_bar_plugin_ui | 3.34 | 38.43 |
Ultimate Bar /wp-admin/admin.php?page=ssb_bar | 3.30 | 31.91 |
Server storage [IO: ▲3.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 28 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ssb_data |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
jal_db_version |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Top Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲131 | 13.54 ▼1.20 | 9.12 ▲7.12 | 44.56 ▲0.38 |
Dashboard /wp-admin | 2,239 ▲65 | 5.66 ▼0.03 | 93.96 ▼10.93 | 40.50 ▼5.68 |
Posts /wp-admin/edit.php | 2,144 ▲41 | 2.02 ▼0.01 | 41.06 ▼5.31 | 36.89 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.19 ▼0.40 | 673.73 ▼23.61 | 38.05 ▼13.58 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.41 ▲0.17 | 98.18 ▼18.04 | 42.12 ▲0.41 |
MailChimp Settings /wp-admin/admin.php?page=ssb_mailchimp | 835 | 1.83 | 26.60 | 30.57 |
Subscribers-List /wp-admin/admin.php?page=ssb_list | 946 | 1.71 | 25.29 | 56.46 |
Settings /wp-admin/admin.php?page=ssb_bar_plugin_ui | 1,734 | 6.17 | 131.02 | 117.42 |
Ultimate Bar /wp-admin/admin.php?page=ssb_bar | 941 | 1.65 | 26.84 | 33.17 |
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
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_ssb_data
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- jal_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ultimate-bar/subscriber-list-empty.php
- > /wp-content/plugins/ultimate-bar/ssb_bar_style.php
- > /wp-content/plugins/ultimate-bar/data/subscribe_msg.php
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: ssb_bar_position in wp-content/plugins/ultimate-bar/ssb_bar_style.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ultimate-bar/ssb_bar_html.php:3
- > PHP Notice
Undefined variable: ssb_bar_text_size in wp-content/plugins/ultimate-bar/ssb_bar_style.php on line 52
- > PHP Notice
Undefined variable: ssb_bar_text_fontFamily in wp-content/plugins/ultimate-bar/ssb_bar_style.php on line 53
- > PHP Notice
Undefined variable: ssb_background_color in wp-content/plugins/ultimate-bar/ssb_bar_style.php on line 88
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-bar/ssb_menu_file.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ultimate-bar/ssb_options_file.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-bar/ssb_scripts_file.php:14
- > PHP Notice
Undefined variable: ssb_background_color in wp-content/plugins/ultimate-bar/ssb_bar_style.php on line 66
- > PHP Warning
readfile(data/sm_subcribers-list.csv): failed to open stream: No such file or directory in wp-content/plugins/ultimate-bar/subscriber-list-download.php on line 7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
ultimate-bar/Ultimate-Bar.php 92% from 13 tests
The entry point to "Top Bar" version 3.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ultimate-bar.php" instead of "Ultimate-Bar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,709 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 353 | 2,026 | 1,565 |
JavaScript | 3 | 28 | 22 | 94 |
HTML | 3 | 18 | 1 | 50 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
imgs/ulp.png | 3,445.64KB | 1,909.24KB | ▼ 44.59% |
imgs/psp.png | 172.58KB | 51.67KB | ▼ 70.06% |
imgs/msf.png | 7.83KB | 7.83KB | 0.00% |
close.png | 1.12KB | 0.87KB | ▼ 22.45% |
imgs/ts.png | 2.04KB | 0.80KB | ▼ 60.57% |