72% hmh-footer-builder-for-elementor

Code Review | HMH Footer Builder For Elementor

WordPress plugin HMH Footer Builder For Elementor scored72%from 54 tests.

About plugin

  • Plugin page: hmh-footer-builde...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: May 20, 2019
  • Latest release: May 20, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: hameha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /912 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.67MB] [CPU: ▲3.21ms] Passed 4 tests

Server-side resources used by HMH Footer Builder For Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6351.37 ▲11.27
Dashboard /wp-admin4.00 ▲0.6953.89 ▼1.29
Posts /wp-admin/edit.php4.06 ▲0.7055.10 ▲2.02
Add New Post /wp-admin/post-new.php6.55 ▲0.66109.75 ▲7.51
Media Library /wp-admin/upload.php3.93 ▲0.7043.72 ▲4.60
Settings /wp-admin/edit.php?post_type=bbfb_content&page=bb_footer_builder3.9447.46
Add New /wp-admin/post-new.php?post_type=bbfb_content4.0862.71
All Footers /wp-admin/edit.php?post_type=bbfb_content3.9746.31

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for HMH Footer Builder For Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18513.72 ▼0.687.52 ▲5.8441.70 ▼4.94
Dashboard /wp-admin2,249 ▲724.94 ▼0.7694.54 ▼4.9981.62 ▲35.72
Posts /wp-admin/edit.php2,172 ▲752.35 ▲0.3741.60 ▲2.3436.51 ▼5.53
Add New Post /wp-admin/post-new.php6,312 ▲4,78425.98 ▲2.79967.53 ▲293.9237.55 ▼18.07
Media Library /wp-admin/upload.php1,461 ▲614.41 ▲0.18106.82 ▼15.0876.94 ▲29.20
Settings /wp-admin/edit.php?post_type=bbfb_content&page=bb_footer_builder1,3433.9263.2988.15
Add New /wp-admin/post-new.php?post_type=bbfb_content2,7778.22197.24127.20
All Footers /wp-admin/edit.php?post_type=bbfb_content1,1392.2737.2534.89

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/checkbox.view.php
    • > /wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/index.php
    • > /wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/hidden.view.php
  • 59× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: dependency in wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/couple2.view.php on line 1
    • > PHP Notice
      Undefined variable: dependency in wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/colorpicker.view.php on line 1
    • > PHP Notice
      Undefined variable: dependency in wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/toggle.view.php on line 1
    • > PHP Notice
      Undefined variable: dependency in wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/javascript.view.php on line 1
    • > PHP Notice
      Undefined variable: dependency in wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/text.view.php on line 1
    • > PHP Notice
      Undefined variable: dependency in wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/attach.view.php on line 1
    • > PHP Notice
      Undefined variable: dependency in wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/checkbox.view.php on line 1
    • > PHP Notice
      Undefined variable: dependency in wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/textarea.view.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore/classes/fields/dropdown.view.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/hmh-footer-builder-for-elementor/includes/single-bbfb_content.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=bbfb_content&page=bb_footer_builder
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore//assets/admin/js/script.js?ver=1.2.4:332:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=bbfb_content&page=bb_footer_builder
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=bbfb_content
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/hmh-footer-builder-for-elementor/bestbugcore//assets/admin/js/script.js?ver=1.2.4:332:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=bbfb_content
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: Please take inspiration from this readme.txt

hmh-footer-builder-for-elementor/index.php 85% from 13 tests

The primary PHP file in "HMH Footer Builder For Elementor" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hmh-footer-builder-for-elementor.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin21,866 lines of code in 121 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript231,5731,54911,434
PHP498505555,599
CSS17428633,009
Sass3215451,824

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity26.82
▷ Minimum class complexity1.00
▷ Maximum class complexity198.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods262
▷ Static methods176.49%
▷ Public methods23188.17%
▷ Protected methods3111.83%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants40
▷ Global constants40100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bestbugcore/assets/admin/images/sort_asc.png0.16KB0.25KB0.00%
bestbugcore/assets/admin/libs/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
bestbugcore/assets/admin/libs/chosen/chosen-sprite.png0.53KB0.88KB0.00%
assets/admin/images/shortcodes/social.png1.21KB0.21KB▼ 82.69%
bestbugcore/assets/admin/images/sort_both.png0.20KB0.29KB0.00%