84% tidio-live-chat

Code Review | Tidio – Live Chat & AI Chatbots

WordPress plugin Tidio – Live Chat & AI Chatbots scored84%from 54 tests.

About plugin

  • Plugin page: tidio-live-chat
  • Plugin version: 6.0.11
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Apr 14, 2014
  • Latest release: Oct 26, 2023
  • Number of updates: 488
  • Update frequency: every 7.1 days
  • Top authors: tytus-tytus (84.02%)kkopaczyktidio (10.45%)lucastidio (5.94%)

Code review

54 tests

User reviews

373 reviews

Install metrics

100,000+ active /2,033,993 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.45ms] Passed 4 tests

Analyzing server-side resources used by Tidio – Live Chat & AI Chatbots
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.40 ▲0.04
Dashboard /wp-admin3.34 ▲0.0450.43 ▲0.25
Posts /wp-admin/edit.php3.38 ▲0.0347.63 ▲0.28
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.62 ▼6.35
Media Library /wp-admin/upload.php3.26 ▲0.0335.58 ▲1.98

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
tidio-async-load
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Tidio – Live Chat & AI Chatbots
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲16714.28 ▼0.092.00 ▲0.2143.37 ▼0.08
Dashboard /wp-admin2,310 ▲1335.59 ▼0.1195.61 ▼3.3146.00 ▲4.03
Posts /wp-admin/edit.php2,214 ▲1142.18 ▲0.1837.32 ▼0.2536.71 ▲2.54
Add New Post /wp-admin/post-new.php1,615 ▲8723.10 ▲0.08666.44 ▼5.1962.15 ▲4.27
Media Library /wp-admin/upload.php1,517 ▲1174.19 ▲0.02110.50 ▲11.1547.71 ▲3.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • tidio-async-load

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

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
Please fix the following
  • 46× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/tidio-live-chat/src/Container.php
    • > /wp-content/plugins/tidio-live-chat/src/WooCommerceSdk/WooCommerceApiV3ClientFactory.php
    • > /wp-content/plugins/tidio-live-chat/src/TidioSdk/Exception/CannotIntegrateWithProjectException.php
    • > /wp-content/plugins/tidio-live-chat/src/Http/Exception/HttpClientException.php
    • > /wp-content/plugins/tidio-live-chat/config.php
    • > /wp-content/plugins/tidio-live-chat/src/Admin/Notice/Views/NoticeTemplate.php
    • > /wp-content/plugins/tidio-live-chat/src/TidioSdk/Dto/ApiCredentialsDto.php
    • > /wp-content/plugins/tidio-live-chat/src/Encryption/Service/EncryptionServiceFactory.php
    • > /wp-content/plugins/tidio-live-chat/src/TidioSdk/Exception/CannotRetrieveAccessTokensException.php
    • > /wp-content/plugins/tidio-live-chat/src/Encryption/EncryptionService.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: chat, chatbot, livechat, mailchimp, zendesk...

tidio-live-chat/tidio-elements.php 92% from 13 tests

The main PHP script in "Tidio – Live Chat & AI Chatbots" version 6.0.11 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tidio-live-chat.php" instead of "tidio-elements.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,890 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP566998132,864
JSON20018
CSS1008

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.98
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces20
Interfaces2
Traits0
Classes43
▷ Abstract classes12.33%
▷ Concrete classes4297.67%
▷ Final classes12.38%
Methods215
▷ Static methods4721.86%
▷ Public methods16275.35%
▷ Protected methods00.00%
▷ Private methods5324.65%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants41
▷ Global constants24.88%
▷ Class constants3995.12%
▷ Public constants39100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin