84% bb-header-footer

Code Review | Header Footer for Beaver Builder

WordPress plugin Header Footer for Beaver Builder scored84%from 54 tests.

About plugin

  • Plugin page: bb-header-footer
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 26, 2016
  • Latest release: Aug 17, 2023
  • Number of updates: 62
  • Update frequency: every 40.6 days
  • Top authors: Nikschavan (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

10,000+ active /170,930 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.94ms] Passed 4 tests

Analyzing server-side resources used by Header Footer for Beaver Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.22 ▼4.27
Dashboard /wp-admin3.34 ▼0.0051.77 ▼11.01
Posts /wp-admin/edit.php3.39 ▲0.0451.07 ▲0.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0499.44 ▼4.50
Media Library /wp-admin/upload.php3.26 ▲0.0436.16 ▲1.46

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Header Footer for Beaver Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11513.23 ▼1.331.89 ▲0.1740.31 ▼10.29
Dashboard /wp-admin2,231 ▲255.84 ▼0.0499.06 ▼5.7439.31 ▼6.01
Posts /wp-admin/edit.php2,110 ▲102.14 ▲0.1340.80 ▼0.4937.47 ▼0.20
Add New Post /wp-admin/post-new.php1,541 ▼1323.02 ▲4.61612.40 ▼33.5249.98 ▼1.38
Media Library /wp-admin/upload.php1,410 ▲74.24 ▲0.0596.74 ▼7.0042.46 ▲0.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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)
Good news, no errors were detected

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
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bb-header-footer/themes/astra/class-astra-compat.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bb-header-footer/bb-header-footer.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bb-header-footer/admin/class-bb-admin-ui.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bb-header-footer/themes/bb-theme/class-bb-theme-compat.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderAdminSettings' not found in wp-content/plugins/bb-header-footer/admin/render-admin-panel.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bb-header-footer/themes/generatepress/class-generatepress-compat.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bb-header-footer/themes/wp-primer-theme/class-bhf-primer-theme-compat.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bb-header-footer/themes/genesis/class-genesis-compat.php:28

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

bb-header-footer/bb-header-footer.php Passed 13 tests

The primary PHP file in "Header Footer for Beaver Builder" version 1.2.2 is used by WordPress to initiate all plugin functionality
121 characters long description:
An easy-to-use Beaver Builder addon to import pages or templates as a header or a footer across a Beaver Builder website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,376 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP123907041,113
CSS5406190
JavaScript2202473

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity15.50
▷ Minimum class complexity4.00
▷ Maximum class complexity41.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods98
▷ Static methods2020.41%
▷ Public methods7677.55%
▷ Protected methods00.00%
▷ Private methods2222.45%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin