10% click4assistance-live-chat-real-time-visitor-monitoring

Code Review | Click4Assistance Live Web Chat Software UK Provider

WordPress plugin Click4Assistance Live Web Chat Software UK Provider scored 10% from 54 tests.

About plugin

  • Plugin page: click4assistance-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 5.8.1
  • First release: Mar 24, 2015
  • Latest release: Aug 4, 2020
  • Number of updates: 82
  • Update frequency: every 29.7 days
  • Top authors: Click4Assistance (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,799 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/click4assistance-live-chat-real-time-visitor-monitoring/index.php+190
    Methods with the same name as their class will not be constructors in a future version of PHP; Click4Assistance_Widget has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼192.61ms] Passed 4 tests

A check of server-side resources used by Click4Assistance Live Web Chat Software UK Provider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼0.935.68 ▼12.61
Dashboard /wp-admin1.82 ▼1.245.63 ▼43.56
Posts /wp-admin/edit.php1.82 ▼1.306.71 ▼37.99
Add New Post /wp-admin/post-new.php1.82 ▼3.625.19 ▼655.03
Media Library /wp-admin/upload.php1.82 ▼1.204.80 ▼33.86
Click4Assistance /wp-admin/options-general.php?page=Click4Assistance_Settings_Panel1.826.19

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 2 new options
New WordPress options
Click4Assistance_plugin_Account_GUID
widget_click4assistance-widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Click4Assistance Live Web Chat Software UK Provider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,753 ▲15715.84 ▲0.2112.13 ▲2.2366.90 ▲18.63
Dashboard /wp-admin2,972 ▲355.92 ▼0.20136.44 ▼10.91104.57 ▼8.46
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0161.70 ▼0.9493.78 ▼0.57
Add New Post /wp-admin/post-new.php1,618 ▼5421.96 ▲3.26265.72 ▼95.19102.54 ▼7.73
Media Library /wp-admin/upload.php1,812 ▲55.01 ▼0.05140.21 ▼23.44109.11 ▼7.63
Click4Assistance /wp-admin/options-general.php?page=Click4Assistance_Settings_Panel1,0722.0955.8262.57

Uninstaller [IO: ▲0.00MB] [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
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/click4assistance-live-chat-real-time-visitor-monitoring/index.php+190
    Methods with the same name as their class will not be constructors in a future version of PHP; Click4Assistance_Widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_click4assistance-widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=Click4Assistance_Settings_Panel
    • > Deprecated in wp-content/plugins/click4assistance-live-chat-real-time-visitor-monitoring/index.php+190
    Methods with the same name as their class will not be constructors in a future version of PHP; Click4Assistance_Widget has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Click4Assistance_Settings_Panel
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=Click4Assistance_Settings_Panel
    • > Notice in wp-content/plugins/click4assistance-live-chat-real-time-visitor-monitoring/Click4Assistance_import_admin.php+26
    Undefined index: Click4Assistance_plugin_hidden
    • > GET request to /wp-admin/options-general.php?page=Click4Assistance_Settings_Panel
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=Click4Assistance_Settings_Panel
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: Click4Assistance_plugin_hidden in wp-content/plugins/click4assistance-live-chat-real-time-visitor-monitoring/Click4Assistance_import_admin.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/click4assistance-live-chat-real-time-visitor-monitoring/Click4Assistance_import_admin.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/click4assistance-live-chat-real-time-visitor-monitoring/index.php:15

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

readme.txt 81% 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: Please delete some tags, you are using 16 tag instead of maximum 10
  • Donate link: Please fix this invalid URI: ""
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === click4assistance-live-chat-real-time-visitor-monitoring === )
The official readme.txt is a good inspiration

click4assistance-live-chat-real-time-visitor-monitoring/index.php 85% from 13 tests

The main file in "Click4Assistance Live Web Chat Software UK Provider" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 633 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("click4assistance-live-chat-real-time-visitor-monitoring.php" instead of "index.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
There were no executable files found in this plugin154 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP225126154

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin