84% boostify-header-footer-builder

Code Review | Boostify Header Footer Builder for Elementor

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

About plugin

  • Plugin page: boostify-header-f...
  • Plugin version: 1.2.9
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2020
  • Latest release: Mar 1, 2023
  • Number of updates: 33
  • Update frequency: every 33.6 days
  • Top authors: duongancol (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

5,000+ active /59,805 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.65MB] [CPU: ▼7.19ms] Passed 4 tests

Analyzing server-side resources used by Boostify Header Footer Builder for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.7046.47 ▲4.51
Dashboard /wp-admin3.96 ▲0.6651.97 ▼0.85
Posts /wp-admin/edit.php4.02 ▲0.6649.78 ▲1.31
Add New Post /wp-admin/post-new.php6.57 ▲0.6884.85 ▼11.36
Media Library /wp-admin/upload.php3.82 ▲0.5937.27 ▼17.85
All Header, Footer /wp-admin/edit.php?post_type=btf_builder3.9341.29
Add New /wp-admin/post-new.php?post_type=btf_builder6.5587.66

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 179 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
plugin_permalinks_flushed
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Boostify Header Footer Builder for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲14713.26 ▼1.032.04 ▲0.1638.45 ▼6.04
Dashboard /wp-admin2,254 ▲665.82 ▼0.08102.46 ▼7.6141.24 ▲0.77
Posts /wp-admin/edit.php2,139 ▲502.02 ▼0.0034.78 ▼4.4335.28 ▼0.48
Add New Post /wp-admin/post-new.php1,567 ▲4817.93 ▼5.31699.90 ▲7.8060.00 ▲2.30
Media Library /wp-admin/upload.php1,439 ▲514.33 ▲0.1499.86 ▼14.2842.81 ▼5.72
All Header, Footer /wp-admin/edit.php?post_type=btf_builder1,3952.0132.6332.23
Add New /wp-admin/post-new.php?post_type=btf_builder6,65220.08865.8134.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • plugin_permalinks_flushed

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Boostify_Header_Footer\\Base_Widget' not found in wp-content/plugins/boostify-header-footer-builder/inc/elementor/widgets/class-image-retina.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Boostify_Header_Footer\\Base_Widget' not found in wp-content/plugins/boostify-header-footer-builder/inc/elementor/widgets/class-copyright.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Boostify_Header_Footer\\Base_Widget' not found in wp-content/plugins/boostify-header-footer-builder/inc/elementor/widgets/class-site-logo.php:22
    • > PHP Warning
      require(BOOSTIFY_HEADER_FOOTER_PATHinc/elementor/module/class-sticky.php): failed to open stream: No such file or directory in wp-content/plugins/boostify-header-footer-builder/inc/elementor/class-elementor.php on line 281
    • > PHP Warning
      Use of undefined constant BOOSTIFY_HEADER_FOOTER_PATH - assumed 'BOOSTIFY_HEADER_FOOTER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/boostify-header-footer-builder/inc/elementor/class-elementor.php on line 281
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/boostify-header-footer-builder/templates/default/footer.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/boostify-header-footer-builder/templates/hf.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_content() in wp-content/plugins/boostify-header-footer-builder/templates/content/content-sub-menu.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Boostify_Header_Footer\\Base_Widget' not found in wp-content/plugins/boostify-header-footer-builder/inc/elementor/widgets/class-cart-icon.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/boostify-header-footer-builder/boostify-header-footer-builder.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: elementor header, footer builder, sticky menu, elementor, header builder...

boostify-header-footer-builder/boostify-header-footer-builder.php 92% from 13 tests

The entry point to "Boostify Header Footer Builder for Elementor" version 1.2.9 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin47,937 lines of code in 111 files:
LanguageFilesBlank linesComment linesLines of code
SVG1102014,087
CSS133,8105612,927
Sass268304311,088
PHP421,4712,3248,524
JavaScript171522641,218
JSON20093

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity24.15
▷ Minimum class complexity1.00
▷ Maximum class complexity106.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes27
▷ Abstract classes27.41%
▷ Concrete classes2592.59%
▷ Final classes00.00%
Methods324
▷ Static methods298.95%
▷ Public methods22368.83%
▷ Protected methods6319.44%
▷ Private methods3811.73%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.17MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/images/boostify.png89.01KB28.41KB▼ 68.08%
assets/images/boostify.png89.01KB28.41KB▼ 68.08%