10% hello24-order-on-chat-abandoned-cart-recovery-marketing-automation

Code Review | Hello24 - Order on Chat, Abandoned cart recovery & Marketing Automation

WordPress plugin Hello24 - Order on Chat, Abandoned cart recovery & Marketing Automation scored10%from 54 tests.

About plugin

  • Plugin page: hello24-order-on-...
  • Plugin version: 1.6.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2022
  • Latest release: Nov 10, 2023
  • Number of updates: 30
  • Update frequency: every 15.0 days
  • Top authors: helloapp (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,287 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.92MB] [CPU: ▼51.72ms] Passed 4 tests

A check of server-side resources used by Hello24 - Order on Chat, Abandoned cart recovery & Marketing Automation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.14 ▼35.58
Dashboard /wp-admin2.10 ▼1.245.69 ▼55.98
Posts /wp-admin/edit.php2.10 ▼1.256.04 ▼36.87
Add New Post /wp-admin/post-new.php2.10 ▼3.785.72 ▼78.46
Media Library /wp-admin/upload.php2.10 ▼1.136.07 ▼23.97

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: 2 new tables, 6 new options
New tables
wp_h24_abandonment
wp_h24_setting
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Hello24 - Order on Chat, Abandoned cart recovery & Marketing Automation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5614.13 ▼0.211.89 ▲0.2042.04 ▼1.99
Dashboard /wp-admin2,211 ▲345.62 ▼0.0693.01 ▼6.8139.28 ▼6.56
Posts /wp-admin/edit.php2,116 ▲162.10 ▲0.1340.07 ▼0.5436.75 ▲1.38
Add New Post /wp-admin/post-new.php1,548 ▲1725.51 ▲2.61611.07 ▼41.9876.94 ▲17.42
Media Library /wp-admin/upload.php1,413 ▲104.21 ▲0.0199.19 ▲0.2741.45 ▼0.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_h24_setting
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant WP_H24_DIR - assumed 'WP_H24_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/modules/cart-abandonment/class-h24-module-loader.php on line 46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/classes/class-h24-loader.php:78
    • > PHP Warning
      Use of undefined constant WP_H24_DIR - assumed 'WP_H24_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/modules/cart-abandonment/class-h24-cart-abandonment.php on line 495
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/classes/class-h24-settings.php:26
    • > PHP Warning
      Use of undefined constant WP_H24_URL - assumed 'WP_H24_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/modules/cart-abandonment/class-h24-cart-abandonment.php on line 496
    • > PHP Warning
      include_once(WP_H24_DIRmodules/cart-abandonment/class-h24-cart-abandonment.php): failed to open stream: No such file or directory in wp-content/plugins/hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/modules/cart-abandonment/class-h24-module-loader.php on line 46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/classes/class-h24-loader.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/modules/cart-abandonment/includes/admin/h24-admin-settings.php:92
    • > PHP Warning
      include_once(): Failed opening 'WP_H24_DIRmodules/cart-abandonment/class-h24-cart-abandonment.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/modules/cart-abandonment/class-h24-module-loader.php on line 46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/modules/cart-abandonment/class-h24-cart-abandonment.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 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: woocommerce order on whatsapp, abandoned cart, whatsapp button, whatsapp api, click to chat

hello24-order-on-chat-abandoned-cart-recovery-marketing-automation/hello24-order-on-chat-apps.php 77% from 13 tests

The main file in "Hello24 - Order on Chat, Abandoned cart recovery & Marketing Automation" v. 1.6.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("hello24-order-on-chat-abandoned-cart-recovery-marketing-automation.php" instead of "hello24-order-on-chat-apps.php")
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 71 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,578 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP106523852,959
JavaScript311123619

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity37.00
▷ Minimum class complexity2.00
▷ Maximum class complexity197.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods109
▷ Static methods1311.93%
▷ Public methods10596.33%
▷ Protected methods32.75%
▷ Private methods10.92%
Functions34
▷ Named functions12.94%
▷ Anonymous functions3397.06%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin