84% onwebchat

Code Review | Live Chat & AI Bot Support

WordPress plugin Live Chat & AI Bot Support scored84%from 54 tests.

About plugin

  • Plugin page: onwebchat
  • Plugin version: 3.3.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 22, 2015
  • Latest release: Nov 11, 2023
  • Number of updates: 148
  • Update frequency: every 20.7 days
  • Top authors: onwebchat_dev (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

1,000+ active /25,643 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Live Chat & AI Bot Support
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.59 ▼1.38
Dashboard /wp-admin3.36 ▲0.0148.37 ▼14.89
Posts /wp-admin/edit.php3.41 ▲0.0548.24 ▲4.01
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.17 ▼10.34
Media Library /wp-admin/upload.php3.28 ▲0.0535.75 ▲4.14

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

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

Browser metrics Passed 4 tests

Live Chat & AI Bot Support: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6614.32 ▼0.022.39 ▲0.8043.70 ▲0.90
Dashboard /wp-admin2,212 ▲325.56 ▼0.1287.49 ▼9.6878.19 ▲34.32
Posts /wp-admin/edit.php2,120 ▲201.99 ▼0.0441.13 ▲4.8534.92 ▲1.05
Add New Post /wp-admin/post-new.php1,546 ▲2023.32 ▲0.18695.14 ▲17.6660.91 ▲3.81
Media Library /wp-admin/upload.php1,420 ▲204.22 ▼0.04101.15 ▼11.9568.77 ▲21.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/onwebchat/onwebchat.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: ai bot, live chat, ai chatbot, free chat software, support plugin...

onwebchat/onwebchat.php Passed 13 tests

The primary PHP file in "Live Chat & AI Bot Support" version 3.3.2 is used by WordPress to initiate all plugin functionality
74 characters long description:
live chat service that helps you communicate with your website's visitors.

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
There were no executable files found in this plugin428 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP116389318
CSS1280110

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/onwebchat-logo.png0.63KB0.60KB▼ 4.80%