84% helpcrunch-live-chat

Code Review | HelpCrunch - Live Chat, Chatbot & Knowledge Base for Customer Service

WordPress plugin HelpCrunch - Live Chat, Chatbot & Knowledge Base for Customer Service scored84%from 54 tests.

About plugin

  • Plugin page: helpcrunch-live-chat
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.2
  • WordPress version: 6.3.1
  • First release: Mar 25, 2016
  • Latest release: Apr 13, 2023
  • Number of updates: 59
  • Update frequency: every 43.6 days
  • Top authors: helpcrunch (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /12,189 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.54ms] Passed 4 tests

Analyzing server-side resources used by HelpCrunch - Live Chat, Chatbot & Knowledge Base for Customer Service
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.27 ▲1.92
Dashboard /wp-admin3.35 ▲0.0156.01 ▼8.43
Posts /wp-admin/edit.php3.46 ▲0.1146.71 ▲1.03
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.68 ▼8.66
Media Library /wp-admin/upload.php3.27 ▲0.0440.12 ▲2.14
HelpCrunch /wp-admin/options-general.php?page=helpcrunch3.2432.37

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
helpcrunch

Browser metrics Passed 4 tests

HelpCrunch - Live Chat, Chatbot & Knowledge Base for Customer Service: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.181.92 ▲0.2045.90 ▲6.83
Dashboard /wp-admin2,210 ▲195.85 ▲0.80107.36 ▼2.3839.47 ▼4.57
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0038.22 ▲0.6831.21 ▼9.15
Add New Post /wp-admin/post-new.php1,517 ▼317.72 ▼5.53687.12 ▲3.1153.27 ▲4.48
Media Library /wp-admin/upload.php1,395 ▲44.15 ▼0.06119.57 ▲2.0549.46 ▲0.52
HelpCrunch /wp-admin/options-general.php?page=helpcrunch8572.0129.7644.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • helpcrunch
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/helpcrunch-live-chat/helpcrunch.php:445

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: chat, live chat, customer support, chatbot, customer service...

helpcrunch-live-chat/helpcrunch.php 92% from 13 tests

The principal PHP file in "HelpCrunch - Live Chat, Chatbot & Knowledge Base for Customer Service" v. 2.0.4 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("helpcrunch-live-chat.php" instead of "helpcrunch.php")

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
Everything looks great! No dangerous files found in this plugin265 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151130265

PHP code Passed 2 tests

Analyzing 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.22
Average class complexity4.50
▷ Minimum class complexity4.00
▷ Maximum class complexity5.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 compressed PNG files occupy 0.30MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/choose-helpcrunch-widget.png150.26KB155.35KB0.00%
img/copy-helpcrunch-widget-code.png152.37KB159.90KB0.00%