74% wp-live-chat-support

Code Review | 3CX Free Live Chat, Calls & WhatsApp

WordPress plugin 3CX Free Live Chat, Calls & WhatsApp scored74%from 54 tests.

About plugin

  • Plugin page: wp-live-chat-support
  • Plugin version: 10.0.10
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2013
  • Latest release: Jul 24, 2023
  • Number of updates: 599
  • Update frequency: every 6.4 days
  • Top authors: WP-LiveChat (47.25%)wpdev3cx (34.39%)dmitry3cx (16.86%)wordpress3cx (1.67%)

Code review

54 tests

User reviews

818 reviews

Install metrics

30,000+ active /2,787,220 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by 3CX Free Live Chat, Calls & WhatsApp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.40 ▲3.10
Dashboard /wp-admin3.34 ▲0.0444.86 ▼4.34
Posts /wp-admin/edit.php3.39 ▲0.0347.86 ▲1.82
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.66 ▼14.80
Media Library /wp-admin/upload.php3.26 ▲0.0333.01 ▼2.71

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
wplc_callback_nonce
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for 3CX Free Live Chat, Calls & WhatsApp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10413.28 ▼1.451.76 ▼0.2441.88 ▼8.21
Dashboard /wp-admin2,229 ▲414.88 ▼1.03107.24 ▲2.6939.56 ▼4.01
Posts /wp-admin/edit.php2,112 ▲232.03 ▲0.0339.99 ▼2.4539.51 ▲4.47
Add New Post /wp-admin/post-new.php1,534 ▲1423.18 ▼0.12676.60 ▲10.6766.62 ▲11.75
Media Library /wp-admin/upload.php1,414 ▲264.30 ▲0.1597.71 ▼3.6042.20 ▼2.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall correctly, leaving 37 files (0.80MB) in the plugin directory
    • (new file) admin/class-wplc-plugin-settings.php
    • (new file) admin/css/wplc-plugin-admin.css
    • (new file) admin/index.php
    • (new file) admin/js/wplc-plugin-admin.js
    • (new file) includes/class-wplc-plugin-deactivator.php
    • (new file) includes/class-wplc-plugin-activator.php
    • (new file) config.php
    • (new file) admin/partials/wplc-plugin-admin-display.php
    • (new file) admin/class-wplc-plugin-admin.php
    • (new file) changelog.txt
    • ...
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • wplc_callback_nonce
    • db_upgraded
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-live-chat-support/admin/partials/wplc-plugin-admin-display.php
    • > /wp-content/plugins/wp-live-chat-support/public/partials/wplc-plugin-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: The official readme.txt might help

wp-live-chat-support/wp-live-chat-support.php Passed 13 tests

The principal PHP file in "3CX Free Live Chat, Calls & WhatsApp" v. 10.0.10 is loaded by WordPress automatically on each request
127 characters long description:
Live chat and voice/video call for web visitors. Setup a free portal account for unlimited agents and then activate the plugin.

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
Everything looks great! No dangerous files found in this plugin1,219 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP14146565622
PO File6135169458
CSS211484
JavaScript2102355

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity8.75
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods47
▷ Static methods36.38%
▷ Public methods3880.85%
▷ Protected methods00.00%
▷ Private methods919.15%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin