78% imsupporting

Code Review | Live Chat

WordPress plugin Live Chat scored78%from 54 tests.

About plugin

  • Plugin page: imsupporting
  • Plugin version:
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Mar 7, 2022
  • Number of updates: 152
  • Update frequency: every 20.1 days
  • Top authors: imsupporting (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /45,660 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.82ms] Passed 4 tests

This is a short check of server-side resources used by Live Chat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.50 ▲2.16
Dashboard /wp-admin3.35 ▲0.0149.02 ▼14.85
Posts /wp-admin/edit.php3.41 ▲0.0547.38 ▼1.17
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.94 ▼12.26
Media Library /wp-admin/upload.php3.28 ▲0.0536.59 ▲1.01
IMsupporting Chat /wp-admin/options-general.php?page=imsupportingchat3.2231.68

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 23 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Live Chat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲8014.75 ▲0.392.10 ▲0.0447.07 ▲6.91
Dashboard /wp-admin2,199 ▲195.64 ▼0.0187.66 ▼12.9536.84 ▼0.75
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0335.50 ▼3.7035.17 ▼0.83
Add New Post /wp-admin/post-new.php1,529 ▲123.54 ▲0.46643.45 ▼35.8949.70 ▼4.56
Media Library /wp-admin/upload.php1,407 ▲44.26 ▲0.0597.63 ▼6.4141.02 ▼8.13
IMsupporting Chat /wp-admin/options-general.php?page=imsupportingchat9762.0624.7556.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=imsupportingchat
    • > Notice in wp-content/plugins/imsupporting/imsupporting-admin.php+168
    Undefined variable: adddetails

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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imsupporting/imsupporting-screen-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/imsupporting/imsupporting-admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/imsupporting/imsupporting-live-chat-plugin.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (20 tag instead of maximum 10)
The official readme.txt might help

imsupporting/imsupporting-live-chat-plugin.php 92% from 13 tests

Analyzing the main PHP file in "Live Chat" version
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("imsupporting.php" instead of "imsupporting-live-chat-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin324 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.40MB with 0.36MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png407.29KB42.24KB▼ 89.63%