84% header-footer-elementor

Code Review | Elementor Header & Footer Builder

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

About plugin

  • Plugin page: header-footer-ele...
  • Plugin version: 1.6.17
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Oct 19, 2023
  • Number of updates: 114
  • Update frequency: every 21.1 days
  • Top authors: Nikschavan (97.37%)patilvikasj (3.51%)

Code review

54 tests

User reviews

2184 reviews

Install metrics

1,000,000+ active /19,251,940 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.52ms] Passed 4 tests

An overview of server-side resources used by Elementor Header & Footer Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.27 ▲0.91
Dashboard /wp-admin3.39 ▲0.0443.80 ▼17.50
Posts /wp-admin/edit.php3.50 ▲0.1447.34 ▲3.68
Add New Post /wp-admin/post-new.php5.97 ▲0.0880.74 ▼12.21
Media Library /wp-admin/upload.php3.31 ▲0.0833.65 ▲2.72

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 126 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Elementor Header & Footer Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.38 ▲0.031.61 ▲0.0338.65 ▼2.83
Dashboard /wp-admin2,205 ▲245.51 ▼0.2287.06 ▼13.3539.43 ▼2.82
Posts /wp-admin/edit.php2,113 ▲132.01 ▲0.0736.05 ▲1.0334.18 ▼3.41
Add New Post /wp-admin/post-new.php1,539 ▲1123.14 ▼0.14658.92 ▲5.6558.46 ▼0.60
Media Library /wp-admin/upload.php1,410 ▲104.25 ▲0.06100.03 ▼10.6242.96 ▼4.37

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • hfe_plugin_is_activated
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HFE\\Themes\\add_action() in wp-content/plugins/header-footer-elementor/themes/default/class-hfe-default-compat.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/header-footer-elementor/themes/default/hfe-footer.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HFE\\Lib\\plugins_url() in wp-content/plugins/header-footer-elementor/inc/lib/target-rule/class-astra-target-rules-fields.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/header-footer-elementor/themes/genesis/class-hfe-genesis-compat.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HFE\\Themes\\add_action() in wp-content/plugins/header-footer-elementor/inc/class-hfe-settings-page.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/header-footer-elementor/themes/default/hfe-header.php:10
    • > PHP Warning
      Use of undefined constant HFE_DIR - assumed 'HFE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/header-footer-elementor/themes/hello-elementor/class-hfe-hello-elementor-compat.php on line 28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/header-footer-elementor/themes/oceanwp/class-hfe-oceanwp-compat.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/header-footer-elementor/inc/class-hfe-elementor-canvas-compat.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/header-footer-elementor/themes/bb-theme/class-hfe-bb-theme-compat.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% 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
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

header-footer-elementor/header-footer-elementor.php 92% from 13 tests

The principal PHP file in "Elementor Header & Footer Builder" v. 1.6.17 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 216 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected17,883 lines of code in 116 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity24.27
▷ Minimum class complexity3.00
▷ Maximum class complexity253.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
▷ Static methods4614.79%
▷ Public methods23274.60%
▷ Protected methods4815.43%
▷ Private methods319.97%
▷ Named functions1392.86%
▷ Anonymous functions17.14%
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/settings/plugin-astra.png2.40KB1.91KB▼ 20.56%
assets/images/settings/plugin-st.png3.52KB2.27KB▼ 35.59%