84% ht-builder

Code Review | HT Builder - WordPress Theme Builder for Elementor

WordPress plugin HT Builder - WordPress Theme Builder for Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: ht-builder
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 10, 2019
  • Latest release: Aug 1, 2023
  • Number of updates: 34
  • Update frequency: every 43.6 days
  • Top authors: hasthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 15,338 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by HT Builder - WordPress Theme Builder for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.26 ▼6.14
Dashboard /wp-admin3.31 ▲0.0147.40 ▲2.79
Posts /wp-admin/edit.php3.36 ▲0.0148.49 ▲2.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.92 ▲4.64
Media Library /wp-admin/upload.php3.24 ▲0.0135.12 ▲1.33

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for HT Builder - WordPress Theme Builder for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.27 ▼1.291.60 ▼0.1738.42 ▼4.82
Dashboard /wp-admin2,227 ▲365.90 ▲1.05109.44 ▲2.3742.17 ▼0.28
Posts /wp-admin/edit.php2,109 ▲202.02 ▼0.0140.34 ▲4.9338.09 ▲5.34
Add New Post /wp-admin/post-new.php1,530 ▼417.87 ▼5.46602.33 ▼92.1150.33 ▼5.54
Media Library /wp-admin/upload.php1,409 ▲184.19 ▼0.1095.96 ▼7.5145.44 ▼0.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ht-builder/templates/theme-footer.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Hasthemes\\HTBuilder\\esc_html__() in wp-content/plugins/ht-builder/includes/admin/recommended-plugins/class.recommended-plugins.php:71
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ht-builder/includes/admin/templates_list.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/ht-builder/templates/theme-header.php:2

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: widget, elementor, page builder, builder, blog builder

ht-builder/ht-builder.php Passed 13 tests

The principal PHP file in "HT Builder - WordPress Theme Builder for Elementor" v. 1.3.0 is loaded by WordPress automatically on each request
89 characters long description:
HT Builder is a elementor addons package for Elementor page builder plugin for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected8,393 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP341,1476116,293
CSS359271,052
JavaScript7288146791
JSON110257

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity13.30
▷ Minimum class complexity2.00
▷ Maximum class complexity72.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods191
▷ Static methods94.71%
▷ Public methods15882.72%
▷ Protected methods3216.75%
▷ Private methods10.52%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 0.34MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/assets/images/woolentor.png36.08KB38.07KB0.00%
includes/admin/recommended-plugins/assets/images/extensions/woolentor-addons-pro.png3.20KB1.69KB▼ 47.09%
(invalid) includes/admin/recommended-plugins/assets/images/extensions/was-this-helpful.png1.21KB0.00KB▼ 100.00%
includes/admin/assets/images/ht-mega.png32.92KB34.79KB0.00%
includes/admin/assets/images/layout/blog_layout_2.png72.77KB34.50KB▼ 52.58%