84% wpdaddy-header-builder

Code Review | Header Builder for Elementor by WPDaddy

WordPress plugin Header Builder for Elementor by WPDaddy scored 84% from 54 tests.

About plugin

  • Plugin page: wpdaddy-header-bu...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Feb 11, 2020
  • Latest release: Oct 15, 2020
  • Number of updates: 4
  • Update frequency: every 62.7 days
  • Top authors: wpda (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 4,543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.94ms] Passed 4 tests

This is a short check of server-side resources used by Header Builder for Elementor by WPDaddy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.28 ▼1.76
Dashboard /wp-admin3.31 ▲0.0144.23 ▼1.15
Posts /wp-admin/edit.php3.36 ▲0.0143.39 ▼2.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.86 ▼18.65
Media Library /wp-admin/upload.php3.23 ▲0.0133.89 ▼0.92

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 67 new files
Database: no new tables, 8 new options
New WordPress options
elementor_disable_typography_schemes
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
elementor_disable_color_schemes
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Header Builder for Elementor by WPDaddy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.74 ▼0.012.21 ▲0.0744.31 ▼2.05
Dashboard /wp-admin2,206 ▲185.89 ▲0.82111.07 ▼9.6941.34 ▼7.78
Posts /wp-admin/edit.php2,086 ▼02.03 ▲0.0436.56 ▲1.1531.90 ▲0.66
Add New Post /wp-admin/post-new.php1,542 ▲2818.13 ▲0.63664.86 ▼41.0653.11 ▲0.84
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.06112.32 ▼7.8148.14 ▼7.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • elementor_disable_color_schemes
    • widget_recent-comments
    • elementor_disable_typography_schemes
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'WPDaddy\\Dom\\StreamInterface' not found in wp-content/plugins/wpdaddy-header-builder/core/dom/Document.php:32
    • > PHP Fatal error
      Trait 'WPDaddy\\Dom\\ChildNode' not found in wp-content/plugins/wpdaddy-header-builder/core/dom/DocumentType.php on line 10
    • > PHP Fatal error
      Trait 'WPDaddy\\Dom\\LiveProperty' not found in wp-content/plugins/wpdaddy-header-builder/core/dom/NodeList.php on line 13
    • > PHP Fatal error
      Trait 'WPDaddy\\Dom\\LiveProperty' not found in wp-content/plugins/wpdaddy-header-builder/core/dom/DocumentFragment.php on line 24
    • > PHP Fatal error
      Trait 'WPDaddy\\Dom\\LiveProperty' not found in wp-content/plugins/wpdaddy-header-builder/core/dom/TokenList.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'WPDaddy\\Dom\\Document' not found in wp-content/plugins/wpdaddy-header-builder/core/dom/HTMLDocument.php:24
    • > PHP Fatal error
      Trait 'WPDaddy\\Dom\\LiveProperty' not found in wp-content/plugins/wpdaddy-header-builder/core/dom/Element.php on line 99
    • > PHP Fatal error
      Trait 'WPDaddy\\Dom\\LiveProperty' not found in wp-content/plugins/wpdaddy-header-builder/core/dom/CharacterData.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'WPDaddy\\Dom\\Document' not found in wp-content/plugins/wpdaddy-header-builder/core/dom/XMLDocument.php:11
    • > PHP Fatal error
      Trait 'WPDaddy\\Dom\\LiveProperty' not found in wp-content/plugins/wpdaddy-header-builder/core/dom/Node.php on line 24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: build header, header builder, elementor, header builder for elementor, header...

wpdaddy-header-builder/wpda-builder.php 85% from 13 tests

Analyzing the main PHP file in "Header Builder for Elementor by WPDaddy" version 1.0.2
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpdaddy-header-builder.php" instead of "wpda-builder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,535 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
PHP528888814,332
SVG206153
CSS48738
JavaScript406212

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.36
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces11
Interfaces1
Traits15
Classes34
▷ Abstract classes12.94%
▷ Concrete classes3397.06%
▷ Final classes39.09%
Methods270
▷ Static methods228.15%
▷ Public methods19070.37%
▷ Protected methods5018.52%
▷ Private methods3011.11%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants26
▷ Global constants311.54%
▷ Class constants2388.46%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected