84% responsive-welcome-bar

Code Review | Header Bar

WordPress plugin Header Bar scored84%from 54 tests.

About plugin

  • Plugin page: responsive-welcom...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2016
  • Latest release: Jul 25, 2023
  • Number of updates: 47
  • Update frequency: every 56.8 days
  • Top authors: zotabox (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

300+ active /28,485 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.22ms] Passed 4 tests

This is a short check of server-side resources used by Header Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0544.48 ▲0.98
Dashboard /wp-admin3.35 ▲0.0552.44 ▲0.27
Posts /wp-admin/edit.php3.41 ▲0.0550.80 ▼1.95
Add New Post /wp-admin/post-new.php5.94 ▲0.0597.86 ▼2.01
Media Library /wp-admin/upload.php3.28 ▲0.0538.50 ▼5.20

Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options

Browser metrics Passed 4 tests

Header Bar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.31 ▼0.341.87 ▲0.0745.46 ▲1.86
Dashboard /wp-admin2,217 ▲435.69 ▲0.0385.39 ▼3.1476.19 ▲35.21
Posts /wp-admin/edit.php2,119 ▲161.98 ▼0.0634.03 ▼5.3732.34 ▼5.72
Add New Post /wp-admin/post-new.php1,552 ▲2618.01 ▼5.24712.54 ▲57.1553.17 ▼8.75
Media Library /wp-admin/upload.php1,416 ▲164.15 ▲0.0398.42 ▼9.9175.49 ▲28.16

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • widget_theysaidso_widget
    • ztb_email
    • ztb_status_disconnect
    • ztb_domainid
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • access_key
    • widget_recent-posts
    • ztb_access_key
    • ...

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-welcome-bar/responsive-welcome-bar.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 24 tag instead of maximum 10
You can look at the official readme.txt

responsive-welcome-bar/responsive-welcome-bar.php Passed 13 tests

The main PHP script in "Header Bar" version 1.3.0 is automatically included on every request by WordPress
133 characters long description:
Responsive and Fully Customizable Bar. Promote Free Shipping, Free Gifts, Coupons, +10 more popular website marketing tools included.

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
There were no executable files found in this plugin501 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/check.png2.96KB0.37KB▼ 87.47%
assets/images/bg_body.png22.84KB9.83KB▼ 56.98%
zotabox.png3.19KB0.44KB▼ 86.31%
assets/images/logo-zotabox.png5.45KB2.43KB▼ 55.35%