77% jivochat

Code Review | JivoChat Live Chat - WP live chat plugin for WordPress

WordPress plugin JivoChat Live Chat - WP live chat plugin for WordPress scored77%from 54 tests.

About plugin

  • Plugin page: jivochat
  • Plugin version: 1.3.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Sep 17, 2014
  • Latest release: Oct 25, 2023
  • Number of updates: 176
  • Update frequency: every 18.9 days
  • Top authors: JivoChat (100%)

Code review

54 tests

User reviews

696 reviews

Install metrics

30,000+ active /597,488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by JivoChat Live Chat - WP live chat plugin for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.75 ▲0.27
Dashboard /wp-admin3.36 ▲0.0245.18 ▼14.76
Posts /wp-admin/edit.php3.47 ▲0.1244.60 ▼4.25
Add New Post /wp-admin/post-new.php5.94 ▲0.0578.75 ▼16.97
Media Library /wp-admin/upload.php3.28 ▲0.0634.66 ▲2.06

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

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

Browser metrics Passed 4 tests

JivoChat Live Chat - WP live chat plugin for WordPress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.14 ▼0.161.61 ▼0.2338.32 ▼3.12
Dashboard /wp-admin2,210 ▲395.65 ▲0.0980.60 ▼7.3384.29 ▲40.70
Posts /wp-admin/edit.php2,112 ▲122.02 ▼0.1036.11 ▼6.8132.70 ▼6.11
Add New Post /wp-admin/post-new.php1,559 ▲3122.97 ▼0.10668.25 ▲11.21157.02 ▲98.45
Media Library /wp-admin/upload.php1,412 ▲154.18 ▲0.0699.47 ▼48.0975.36 ▲18.53

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: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/jivochat/class-jivosite.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jivochat/templates/jivo-logo.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jivochat/templates/jivo-logo.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jivochat/templates/jivo-logo.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jivochat/templates/jivo-logo.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jivochat/templates/jivo-logo.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jivochat/templates/jivo-logo.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jivochat/templates/page.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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 to be fixed:
  • Tags: Please delete some tags, you are using 95 tag instead of maximum 10
Please take inspiration from this readme.txt

jivochat/class-jivosite.php 85% from 13 tests

The main file in "JivoChat Live Chat - WP live chat plugin for WordPress" v. 1.3.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("jivochat.php" instead of "class-jivosite.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
Everything looks great! No dangerous files found in this plugin2,490 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PO File166698351,568
PHP1092187730
CSS2235102
SVG31188
JavaScript2092

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods426.67%
▷ Protected methods00.00%
▷ Private methods1173.33%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 1.27MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png54.25KB19.45KB▼ 64.15%
assets/icon-256x256.png3.79KB1.83KB▼ 51.72%
assets/icon-512x512.png7.55KB3.23KB▼ 57.21%
assets/screenshot-5.png131.20KB52.86KB▼ 59.71%
img/logo.png3.87KB2.50KB▼ 35.33%