78% ht-mega-for-wpbakery

Code Review | HT Mega – Absolute Addons for WPBakery Page Builder

WordPress plugin HT Mega – Absolute Addons for WPBakery Page Builder scored78%from 54 tests.

About plugin

  • Plugin page: ht-mega-for-wpbakery
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 19, 2018
  • Latest release: Aug 1, 2023
  • Number of updates: 18
  • Update frequency: every 93.7 days
  • Top authors: htplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /5,945 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.06MB] [CPU: ▼3.52ms] Passed 4 tests

Server-side resources used by HT Mega – Absolute Addons for WPBakery Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.50 ▼2.11
Dashboard /wp-admin3.37 ▲0.0646.64 ▼7.19
Posts /wp-admin/edit.php3.42 ▲0.0650.28 ▼0.92
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.11 ▼3.84
Media Library /wp-admin/upload.php3.29 ▲0.0638.01 ▲3.51

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 128 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for HT Mega – Absolute Addons for WPBakery Page Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.28 ▼1.471.60 ▼0.2641.48 ▼9.98
Dashboard /wp-admin2,218 ▲304.86 ▼0.08106.59 ▼8.8941.26 ▼2.48
Posts /wp-admin/edit.php2,100 ▲112.01 ▼0.0441.68 ▲1.8537.52 ▲5.25
Add New Post /wp-admin/post-new.php1,545 ▲1123.13 ▼0.15604.95 ▼106.4148.53 ▼9.46
Media Library /wp-admin/upload.php1,400 ▲94.13 ▼0.09100.34 ▲0.8240.48 ▼6.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 29× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/ht-mega-for-wpbakery/addons/mailchimp-for-wp/htmegavc-mailchimp-for-wp.php
    • > /wp-content/plugins/ht-mega-for-wpbakery/addons/brands/htmegavc-brands.php
    • > /wp-content/plugins/ht-mega-for-wpbakery/addons/popover/htmegavc-popover.php
    • > /wp-content/plugins/ht-mega-for-wpbakery/addons/business-hours/htmegavc-business-hours.php
    • > /wp-content/plugins/ht-mega-for-wpbakery/addons/lightbox/htmegavc-lightbox.php
    • > /wp-content/plugins/ht-mega-for-wpbakery/addons/slider-thumb-gallery/htmegavc-slider-thumb-gallery.php
    • > /wp-content/plugins/ht-mega-for-wpbakery/addons/team/hemegavc-team.php
    • > /wp-content/plugins/ht-mega-for-wpbakery/addons/progress-bar/hemegavc-progress-bar.php
    • > /wp-content/plugins/ht-mega-for-wpbakery/addons/image-magnifier/htmegavc-image-magnifier.php
    • > /wp-content/plugins/ht-mega-for-wpbakery/addons/pricing-table/htmegavc-pricing-table.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ht-mega-for-wpbakery/init.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ht-mega-for-wpbakery/inc/helper-functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-mega-for-wpbakery/inc/activation-notice.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: wpbakery, mega addons, wpbakery page builder, wpbakery addons

ht-mega-for-wpbakery/init.php 77% from 13 tests

The entry point to "HT Mega – Absolute Addons for WPBakery Page Builder" version 1.0.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ht-mega-for-wpbakery.php" instead of "init.php")
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 78 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected32,132 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
CSS381,94347815,389
PHP361,9251,09214,047
JavaScript332733082,696

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.00
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity4.87
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes00.00%
Methods157
▷ Static methods00.00%
▷ Public methods15699.36%
▷ Protected methods10.64%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
16 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
addons/testimonial/images/clint-shape.png1.06KB0.11KB▼ 90.04%
addons/pricing-table/images/pricing-2-icon.png2.39KB1.55KB▼ 35.40%
addons/business-hours/images/business-shape.png6.46KB3.32KB▼ 48.70%
addons/business-hours/images/business-shape-line-3.png1.02KB0.15KB▼ 85.13%
addons/business-hours/images/business-shape-line-2.png1.11KB0.24KB▼ 78.09%