84% header-footer-composer

Code Review | Header Footer Composer for Elementor

WordPress plugin Header Footer Composer for Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: header-footer-com...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 6.3.1
  • First release: Aug 27, 2019
  • Latest release: Jul 27, 2021
  • Number of updates: 7
  • Update frequency: every 100.1 days
  • Top authors: metricthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 4,741 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Header Footer Composer for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.13 ▲3.96
Dashboard /wp-admin3.34 ▲0.0444.99 ▼15.50
Posts /wp-admin/edit.php3.39 ▲0.0349.82 ▼0.07
Add New Post /wp-admin/post-new.php5.92 ▲0.03100.47 ▲6.54
Media Library /wp-admin/upload.php3.26 ▲0.0336.21 ▲3.99

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Header Footer Composer for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.28 ▼1.081.76 ▼0.1041.72 ▲0.93
Dashboard /wp-admin2,220 ▲296.06 ▲1.17107.51 ▼9.5941.37 ▼12.17
Posts /wp-admin/edit.php2,102 ▲131.99 ▼0.0638.90 ▲1.6936.65 ▲4.08
Add New Post /wp-admin/post-new.php1,558 ▲2518.30 ▼5.01597.03 ▼30.5170.64 ▲21.38
Media Library /wp-admin/upload.php1,399 ▲144.18 ▲0.0194.35 ▼7.2043.11 ▼1.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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 | 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/header-footer-composer/public/partials/header-footer-composer-public-display.php
    • > /wp-content/plugins/header-footer-composer/admin/partials/header-footer-composer-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: footer builder, template builder, header, custom header builder, elementor...

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

"Header Footer Composer for Elementor" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
77 characters long description:
Design custom headers and footers for your site using Elementor Page builder.

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
Everything looks great! No dangerous files found in this plugin2,506 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP213995781,874
CSS499497
JavaScript44030135

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.13
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods75
▷ Static methods34.00%
▷ Public methods5877.33%
▷ Protected methods1216.00%
▷ Private methods56.67%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin