73% help-dialog

Code Review | Help Dialog Chat - WhatsApp, FAQs, Search, Contact Form, AI

WordPress plugin Help Dialog Chat - WhatsApp, FAQs, Search, Contact Form, AI scored73%from 54 tests.

About plugin

  • Plugin page: help-dialog
  • Plugin version: 2.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Jun 13, 2022
  • Latest release: Nov 15, 2023
  • Number of updates: 32
  • Update frequency: every 25.0 days
  • Top authors: echoplugins (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,360 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.67ms] 75% from 4 tests

An overview of server-side resources used by Help Dialog Chat - WhatsApp, FAQs, Search, Contact Form, AI
Please take the time to fix the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,349.92ms on /wp-admin/admin.php?page=ephd-help-dialog)
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4244.56 ▲2.79
Dashboard /wp-admin3.45 ▲0.1544.85 ▼1.21
Posts /wp-admin/edit.php3.56 ▲0.2149.92 ▲9.54
Add New Post /wp-admin/post-new.php6.05 ▲0.1785.04 ▼10.01
Media Library /wp-admin/upload.php3.37 ▲0.1437.22 ▲5.75
Widgets /wp-admin/admin.php?page=ephd-help-dialog-widgets4.31108.39
Advanced /wp-admin/admin.php?page=ephd-help-dialog-advanced-config3.4439.27
Analytics /wp-admin/admin.php?page=ephd-plugin-analytics3.4541.39
Form Submissions /wp-admin/admin.php?page=ephd-help-dialog-contact-form3.5035.79
Get Started /wp-admin/admin.php?page=ephd-help-dialog3.561,349.92

Server storage [IO: ▲5.72MB] [DB: ▲0.09MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 158 new files
Database: 5 new tables, 11 new options
New tables
wp_ephd_search
wp_ephd_faqs
wp_ephd_submissions
wp_ephd_widgets
wp_ephd_analytics
New WordPress options
widget_recent-comments
widget_recent-posts
ephd_global_config
ephd_flush_rewrite_rules
ephd_version
db_upgraded
can_compress_scripts
ephd_version_first
widget_theysaidso_widget
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Help Dialog Chat - WhatsApp, FAQs, Search, Contact Form, AI
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,520 ▲75813.45 ▼0.8912.48 ▲10.3643.90 ▼0.08
Dashboard /wp-admin2,235 ▲545.54 ▼0.1493.82 ▼19.1940.43 ▼3.31
Posts /wp-admin/edit.php2,137 ▲342.00 ▲0.0541.14 ▲5.5936.56 ▲0.81
Add New Post /wp-admin/post-new.php1,558 ▲3223.03 ▼0.34671.09 ▼60.1658.25 ▲0.44
Media Library /wp-admin/upload.php1,431 ▲374.13 ▼0.0697.69 ▲0.6844.57 ▲2.93
Widgets /wp-admin/admin.php?page=ephd-help-dialog-widgets5,9406.48151.6163.13
Advanced /wp-admin/admin.php?page=ephd-help-dialog-advanced-config1,5562.3644.8766.64
Analytics /wp-admin/admin.php?page=ephd-plugin-analytics2,6532.2737.0041.23
Form Submissions /wp-admin/admin.php?page=ephd-help-dialog-contact-form1,2042.3135.0336.88
Get Started /wp-admin/admin.php?page=ephd-help-dialog1,9592.2531.4646.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 5 tables
    • wp_ephd_search
    • wp_ephd_analytics
    • wp_ephd_faqs
    • wp_ephd_submissions
    • wp_ephd_widgets
  • Zombie WordPress options detected upon uninstall: 10 options
    • ephd_version_first
    • widget_theysaidso_widget
    • db_upgraded
    • ephd_global_config
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • ephd_version
    • ephd_analytics_purge_date
    • theysaidso_admin_options

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 fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/help-dialog/includes/system/plugin-setup.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/help-dialog/includes/admin/admin-menu.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/help-dialog/includes/system/scripts-registration.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/help-dialog/includes/system/plugin-links.php:28

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: gpt-3, openai, chatgpt, whatsapp, chat...

help-dialog/echo-help-dialog.php 85% from 13 tests

The main PHP script in "Help Dialog Chat - WhatsApp, FAQs, Search, Contact Form, AI" version 2.2.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("help-dialog.php" instead of "echo-help-dialog.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin46,611 lines of code in 114 files:
LanguageFilesBlank linesComment linesLines of code
CSS203,14039021,533
PHP644,4866,63517,504
JavaScript241,6691,1894,819
SVG6002,755

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity41.36
▷ Minimum class complexity1.00
▷ Maximum class complexity350.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes59
▷ Abstract classes11.69%
▷ Concrete classes5898.31%
▷ Final classes11.72%
Methods669
▷ Static methods34351.27%
▷ Public methods43064.28%
▷ Protected methods111.64%
▷ Private methods22834.08%
Functions26
▷ Named functions2180.77%
▷ Anonymous functions519.23%
Constants81
▷ Global constants11.23%
▷ Class constants8098.77%
▷ Public constants80100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/edit-hd-icon.png4.97KB2.36KB▼ 52.61%
img/hd-dialog-setting-icon-active.png1.09KB0.14KB▼ 87.26%
img/analytics/searches-initiated.png4.86KB1.98KB▼ 59.21%
img/HD-logo-footer-light.png1.16KB0.53KB▼ 54.12%
img/setup-wizard/your-logo-here.png5.31KB3.24KB▼ 38.97%