84% livehelp-chat

Code Review | LiveHelp chat

WordPress plugin LiveHelp chat scored84%from 54 tests.

About plugin

  • Plugin page: livehelp-chat
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-5.2
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: Jul 16, 2019
  • Number of updates: 77
  • Update frequency: every 24.6 days
  • Top authors: alaciura (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

20+ active /3,790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by LiveHelp chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.27 ▼0.13
Dashboard /wp-admin3.33 ▲0.0250.32 ▼1.21
Posts /wp-admin/edit.php3.38 ▲0.0249.72 ▼4.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.09 ▼19.31
Media Library /wp-admin/upload.php3.25 ▲0.0235.59 ▼0.93

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

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

Browser metrics Passed 4 tests

Checking browser requirements for LiveHelp chat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.85 ▲0.531.82 ▲0.2044.43 ▼0.22
Dashboard /wp-admin2,239 ▲394.85 ▼0.03102.56 ▲2.3340.11 ▼4.80
Posts /wp-admin/edit.php2,118 ▲182.01 ▲0.0435.76 ▼6.6434.45 ▼4.72
Add New Post /wp-admin/post-new.php1,541 ▼417.47 ▼5.67671.90 ▼25.0050.43 ▼12.93
Media Library /wp-admin/upload.php1,418 ▲214.23 ▲0.0097.12 ▼8.2446.62 ▲1.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • livehelp_version
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/livehelp-chat/admin/admin.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/livehelp-chat/public/public.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/livehelp-chat/admin/includes/main.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

livehelp-chat/livehelp.php 92% from 13 tests

The main PHP file in "LiveHelp chat" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("livehelp-chat.php" instead of "livehelp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin437 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP73521262
CSS13410175

PHP code Passed 2 tests

This is a very shot review of 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 complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/lh-wordpress_16x16.png0.43KB0.38KB▼ 12.87%
img/lh-wordpress_32x32.png0.87KB0.69KB▼ 20.52%
img/logo.png8.67KB6.43KB▼ 25.84%