83% zoho-salesiq

Code Review | Zoho SalesIQ - Live chat, chatbots, and visitor tracking

WordPress plugin Zoho SalesIQ - Live chat, chatbots, and visitor tracking scored83%from 54 tests.

About plugin

  • Plugin page: zoho-salesiq
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2014
  • Latest release: Sep 20, 2023
  • Number of updates: 66
  • Update frequency: every 49.6 days
  • Top authors: zohosalesiq (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

20,000+ active /226,100 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.78ms] Passed 4 tests

Server-side resources used by Zoho SalesIQ - Live chat, chatbots, and visitor tracking
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.81 ▼1.12
Dashboard /wp-admin3.31 ▼0.0443.95 ▼20.29
Posts /wp-admin/edit.php3.36 ▲0.0047.77 ▼4.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.39 ▼21.14
Media Library /wp-admin/upload.php3.23 ▲0.0037.48 ▲3.20

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Zoho SalesIQ - Live chat, chatbots, and visitor tracking
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.72 ▲0.301.72 ▼0.0445.75 ▲5.33
Dashboard /wp-admin2,203 ▲265.56 ▼0.1289.48 ▼0.3989.11 ▲50.74
Posts /wp-admin/edit.php2,111 ▲112.02 ▼0.0036.94 ▲0.3932.15 ▼1.08
Add New Post /wp-admin/post-new.php1,556 ▲3023.00 ▼0.17708.59 ▲70.0668.16 ▼16.96
Media Library /wp-admin/upload.php1,399 ▼14.24 ▼0.01100.28 ▼9.48109.07 ▲66.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/zoho-salesiq/salesiq.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zoho-salesiq/index.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (User Tracking), #2 (SalesIQ Bots), #3 (Ongoing chat), #4 (Audio & Video calls), #5 (FAQ in Widgets), #6 (SalesIQ Mobile apps), #7 (Articles - Mobile view), #8 (Bots to the rescue!)
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

zoho-salesiq/index.php 92% from 13 tests

The main PHP file in "Zoho SalesIQ - Live chat, chatbots, and visitor tracking" ver. 2.0.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: Please rename the main PHP file in this plugin to the plugin slug ("zoho-salesiq.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected167 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2448167

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 3.73MB with 1.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
favicon.png0.44KB0.47KB0.00%
logo.png2.18KB1.67KB▼ 23.41%
screenshot-4.png491.11KB166.57KB▼ 66.08%
screenshot-5.png351.08KB147.46KB▼ 58.00%
screenshot-1.png1,049.35KB415.17KB▼ 60.44%