10% livehelpnow-helpdesk

Code Review | LiveHelpNow Help Desk

WordPress plugin LiveHelpNow Help Desk scored10%from 54 tests.

About plugin

  • Plugin page: livehelpnow-helpdesk
  • Plugin version: 0.2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2018
  • Latest release: Dec 10, 2021
  • Number of updates: 56
  • Update frequency: every 25.4 days
  • Top authors: livehelpnow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,737 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▼0.62MB] [CPU: ▼15.22ms] Passed 4 tests

Analyzing server-side resources used by LiveHelpNow Help Desk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.25 ▼1.69
Dashboard /wp-admin3.36 ▲0.0647.70 ▼4.24
Posts /wp-admin/edit.php3.48 ▲0.1251.19 ▲4.14
Add New Post /wp-admin/post-new.php3.21 ▼2.6734.43 ▼57.79
Media Library /wp-admin/upload.php3.28 ▲0.0636.80 ▲2.85
Settings /wp-admin/admin.php?page=livehelpnow-chat3.2837.38
All Chats /wp-admin/edit.php?post_type=lhn-chat3.3736.81

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 163 new files
Database: no new tables, 9 new options
New WordPress options
lhn_session_destroyed
can_compress_scripts
theysaidso_admin_options
db_upgraded
lhn_default_chat
lhn_display_chat
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by LiveHelpNow Help Desk
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲17013.66 ▼0.691.76 ▼0.1644.22 ▼2.18
Dashboard /wp-admin2,311 ▲1235.85 ▼0.01107.62 ▼10.3876.43 ▲28.85
Posts /wp-admin/edit.php2,199 ▲1102.06 ▲0.0635.42 ▲1.0831.30 ▼5.83
Add New Post /wp-admin/post-new.php6,523 ▲4,99027.75 ▲4.15864.25 ▲183.9159.01 ▲7.10
Media Library /wp-admin/upload.php1,501 ▲1194.28 ▲0.10100.08 ▼15.3048.81 ▲0.95
Settings /wp-admin/admin.php?page=livehelpnow-chat8562.0926.6024.42
All Chats /wp-admin/edit.php?post_type=lhn-chat1,6962.0337.4929.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 9 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • lhn_display_chat
    • lhn_session_destroyed
    • can_compress_scripts
    • widget_recent-posts
    • lhn_default_chat

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/livehelpnow-helpdesk/src/templates/admin/chat-settings-widget.php
  • 130× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/tests/Composer/Installers/Test/VgmcpInstallerTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/tests/Composer/Installers/Test/TestCase.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/GravInstaller.php:4
    • > PHP Warning
      Use of undefined constant LHN_CHAT_PLUGIN_DIR_PATH - assumed 'LHN_CHAT_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/livehelpnow-helpdesk/src/inc/init.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/Installer.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: help desk system, help desk widget, live chat widget, help desk software, live chat software...

livehelpnow-helpdesk/plugin.php 85% from 13 tests

The entry point to "LiveHelpNow Help Desk" version 0.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("livehelpnow-helpdesk.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin5,182 lines of code in 153 files:
LanguageFilesBlank linesComment linesLines of code
PHP1429281,5054,594
Markdown3530278
JSON300258
YAML27027
XML12023
CSS1011
JavaScript1011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.85
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces1
Traits0
Classes122
▷ Abstract classes32.46%
▷ Concrete classes11997.54%
▷ Final classes00.00%
Methods243
▷ Static methods41.65%
▷ Public methods19279.01%
▷ Protected methods4418.11%
▷ Private methods72.88%
Functions9
▷ Named functions333.33%
▷ Anonymous functions666.67%
Constants8
▷ Global constants337.50%
▷ Class constants562.50%
▷ Public constants5100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/dist/images/lhn.png6.26KB6.67KB0.00%