67% ht-event

Code Review | HT Event - WordPress Event Manager Plugin for Elementor

WordPress plugin HT Event - WordPress Event Manager Plugin for Elementor scored67%from 54 tests.

About plugin

  • Plugin page: ht-event
  • Plugin version: 1.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2018
  • Latest release: Aug 7, 2023
  • Number of updates: 30
  • Update frequency: every 57.7 days
  • Top authors: devitemsllc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /8,942 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼33.28ms] Passed 4 tests

A check of server-side resources used by HT Event - WordPress Event Manager Plugin for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5322.06 ▼19.65
Dashboard /wp-admin4.04 ▲0.7424.67 ▼32.31
Posts /wp-admin/edit.php4.04 ▲0.6829.30 ▼17.89
Add New Post /wp-admin/post-new.php4.04 ▼1.8525.78 ▼63.25
Media Library /wp-admin/upload.php4.04 ▲0.8125.96 ▼11.67
Speakers /wp-admin/edit.php?post_type=speaker4.0425.82
All Items /wp-admin/edit.php?post_type=htevent_footer4.0426.10
HT Events /wp-admin/edit.php?post_type=htevent4.0425.44
Add New /wp-admin/post-new.php?post_type=htevent_footer4.0426.56
Settings /wp-admin/admin.php?page=add-setting-slug4.0427.29
Recommendations /wp-admin/admin.php?page=htevent-recommendations4.0427.35

Server storage [IO: ▲5.00MB] [DB: ▲0.67MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 426 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-posts
widget_htevent-instagram
widget_htevent_description_widget
widget_htevent_twitter
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_htevent_twitter_sidebar
widget_htevent_recent_post
...

Browser metrics Passed 4 tests

HT Event - WordPress Event Manager Plugin for Elementor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,400 ▲65415.61 ▲1.2315.70 ▲13.7244.25 ▲1.60
Dashboard /wp-admin2,428 ▲2606.53 ▲1.67135.91 ▲30.8943.83 ▲2.47
Posts /wp-admin/edit.php2,341 ▲2523.38 ▲1.3955.64 ▲21.0232.88 ▼1.59
Add New Post /wp-admin/post-new.php1,601 ▲6818.75 ▼4.70625.76 ▼66.7335.84 ▼26.63
Media Library /wp-admin/upload.php1,481 ▲934.30 ▲0.0590.00 ▼20.7845.34 ▼4.09
Speakers /wp-admin/edit.php?post_type=speaker1,3173.4046.5727.92
All Items /wp-admin/edit.php?post_type=htevent_footer1,3083.3551.2728.23
HT Events /wp-admin/edit.php?post_type=htevent1,3313.4244.8227.97
Add New /wp-admin/post-new.php?post_type=htevent_footer2,1937.81165.6561.67
Settings /wp-admin/admin.php?page=add-setting-slug1,0643.1038.3024.27
Recommendations /wp-admin/admin.php?page=htevent-recommendations3,1323.4348.7582.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/ht-event/admin/cmb2/includes/helper-functions.php+44
    include_once(wp-content/plugins/ht-event/admin/cmb2/includes/CMB2_Hookup.php): failed to open stream: No such file or directory
  • This plugin does not fully uninstall, leaving 11 options in the database
    • widget_htevent_twitter_sidebar
    • widget_recent-comments
    • db_upgraded
    • widget_htevent_description_widget
    • theysaidso_admin_options
    • widget_htevent-instagram
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_htevent_twitter
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=htevent-recommendations
    • > Warning in wp-content/plugins/ht-event/admin/cmb2/includes/helper-functions.php+44
    include_once(wp-content/plugins/ht-event/admin/cmb2/includes/CMB2_Hookup.php): failed to open stream: No such file or directory
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=htevent-recommendations
    • > Warning in wp-content/plugins/ht-event/admin/cmb2/includes/helper-functions.php+44
    include_once(): Failed opening 'wp-content/plugins/ht-event/admin/cmb2/includes/CMB2_Hookup.php' for inclusion (include_path='.:/usr/share/php')
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=htevent-recommendations
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'CMB2_Hookup' not found

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 54× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/ht-event/admin/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/ht-event/admin/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/ht-event/admin/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/ht-event/admin/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/ht-event/admin/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/ht-event/admin/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/ht-event/admin/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/ht-event/admin/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/ht-event/admin/cmb2/includes/types/CMB2_Type_Text_Time.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/ht-event/admin/cmb2/includes/types/CMB2_Type_Picker_Base.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #19 (HT Event Accordinon)
  • Screenshots: A description for screenshot #13 is required in ht-event/assets to your readme.txt
The official readme.txt might help

ht-event/htevent.php 85% from 13 tests

"HT Event - WordPress Event Manager Plugin for Elementor" version 1.4.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ht-event.php" instead of "htevent.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin64,765 lines of code in 250 files:
LanguageFilesBlank linesComment linesLines of code
PO File12013,78717,89031,582
PHP943,7906,97719,100
CSS181,4141,3169,450
SVG2002,883
JavaScript164365261,750

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity18.02
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity99.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes109
▷ Abstract classes1110.09%
▷ Concrete classes9889.91%
▷ Final classes00.00%
Methods797
▷ Static methods10513.17%
▷ Public methods65582.18%
▷ Protected methods12715.93%
▷ Private methods151.88%
Functions59
▷ Named functions59100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants753.85%
▷ Class constants646.15%
▷ Public constants6100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
39 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) admin/assets/images/extensions/docus-pro.png3.98KB0.00KB▼ 100.00%
admin/assets/images/extensions/ht-slider-addons-pro.png6.41KB4.35KB▼ 32.23%
admin/assets/images/extensions/swatchly-pro.png13.99KB5.41KB▼ 61.37%
admin/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
admin/assets/images/extensions/hashbar-pro.png3.15KB3.30KB0.00%