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.20
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Dec 1, 2023
  • Number of updates: 118
  • Update frequency: every 20.8 days
  • Top authors: Nikschavan (97.46%)patilvikasj (3.39%)

Code review

54 tests

User reviews

2219 reviews

Install metrics

1,000,000+ active /20,552,074 total downloads

Benchmarks

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.01MB] [CPU: ▼5.27ms] 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.47 ▲0.0136.31 ▼9.03
Dashboard /wp-admin3.31 ▲0.0146.56 ▼5.90
Posts /wp-admin/edit.php3.37 ▲0.0147.83 ▲1.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.97 ▼5.32
Media Library /wp-admin/upload.php3.24 ▲0.0137.24 ▼0.81

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
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
hfe_plugin_is_activated
theysaidso_admin_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,803 ▲5614.27 ▼0.491.47 ▼0.2536.03 ▼7.29
Dashboard /wp-admin2,211 ▲365.64 ▼0.0693.68 ▼11.6448.26 ▲11.21
Posts /wp-admin/edit.php2,113 ▲132.00 ▲0.0640.03 ▼0.1737.22 ▼0.31
Add New Post /wp-admin/post-new.php1,539 ▲1323.12 ▼0.43586.24 ▼19.4145.77 ▼12.30
Media Library /wp-admin/upload.php1,413 ▲104.23 ▲0.0795.57 ▼6.4442.68 ▲0.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
    • widget_theysaidso_widget
    • widget_recent-posts
    • hfe_plugin_is_activated
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • 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
  • 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      require_once(HFE_DIRthemes/default/class-hfe-default-compat.php): failed to open stream: No such file or directory 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/storefront/class-hfe-storefront-compat.php:27
    • > PHP Fatal error
      require_once(): Failed opening required 'HFE_DIRthemes/default/class-hfe-default-compat.php' (include_path='.:/usr/share/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/generatepress/class-hfe-generatepress-compat.php:29
    • > 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
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/header-footer-elementor/header-footer-elementor.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HFE\\Themes\\add_action() in wp-content/plugins/header-footer-elementor/themes/default/class-global-theme-compatibility.php:19
    • > 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 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 add_action() in wp-content/plugins/header-footer-elementor/themes/genesis/class-hfe-genesis-compat.php:27

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

Optimizations

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.20 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,886 lines of code in 116 files:
LanguageFilesBlank linesComment linesLines of code
PHP381,6262,8439,479
JavaScript621,5824405,614
CSS12378532,668
XML10071
SVG23151
JSON1103

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.37
Average class complexity24.36
▷ Minimum class complexity3.00
▷ Maximum class complexity253.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods311
▷ Static methods4614.79%
▷ Public methods23274.60%
▷ Protected methods4815.43%
▷ Private methods319.97%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants11
▷ 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-uae.png1.94KB2.07KB0.00%
assets/images/settings/plugin-st.png3.52KB2.27KB▼ 35.59%
assets/images/settings/plugin-astra.png2.40KB1.91KB▼ 20.56%