94% header-footer-with-elementor

Code Review | Header & Footer with Elementor

WordPress plugin Header & Footer with Elementor scored 94% from 54 tests.

About plugin

  • Plugin page: header-footer-wit...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.4
  • WordPress version: 5.8.1
  • First release: Oct 26, 2019
  • Latest release: Oct 26, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: pitabas106 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 503 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼140.89ms] Passed 4 tests

A check of server-side resources used by Header & Footer with Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0341.91 ▲6.64
Dashboard /wp-admin3.09 ▲0.0354.83 ▲9.36
Posts /wp-admin/edit.php3.14 ▲0.0342.03 ▼1.00
Add New Post /wp-admin/post-new.php5.44 ▲0.0187.57 ▼570.78
Media Library /wp-admin/upload.php3.03 ▲0.0333.28 ▲1.58

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Header & Footer with Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,725 ▲12915.84 ▼0.079.90 ▲0.5250.85 ▲2.56
Dashboard /wp-admin2,992 ▲585.92 ▼0.13165.12 ▼17.07106.94 ▼5.12
Posts /wp-admin/edit.php2,762 ▲232.73 ▲0.0071.05 ▲2.3890.05 ▲5.35
Add New Post /wp-admin/post-new.php1,512 ▼9218.59 ▼0.22401.57 ▲15.20103.83 ▼0.98
Media Library /wp-admin/upload.php1,771 ▼364.99 ▼0.03160.40 ▼7.02115.54 ▲1.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/header-footer-with-elementor/inc/themes/ascent/class-ascent-compat.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: elementor addons, elementor footer, elementor header footer, elementor header, elementor

header-footer-with-elementor/header-footer-with-elementor.php Passed 13 tests

The main file in "Header & Footer with Elementor" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
Create custom Header and Footer for your site using the Elementor Page Builder.

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
Everything looks great! No dangerous files found in this plugin348 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5186306344
CSS1004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.67
▷ Minimum class complexity6.00
▷ Maximum class complexity20.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods723.33%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.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
There are no PNG files in this plugin