93% chatra-live-chat

Code Review | Chatra Live Chat + ChatBot + Cart Saver

WordPress plugin Chatra Live Chat + ChatBot + Cart Saver scored 93% from 54 tests.

About plugin

  • Plugin page: chatra-live-chat
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.1
  • WordPress version: 5.8.1
  • First release: May 9, 2015
  • Latest release: Apr 29, 2021
  • Number of updates: 41
  • Update frequency: every 53.2 days
  • Top authors: chatra (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

4,000+ active / 48,073 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Chatra Live Chat + ChatBot + Cart Saver
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1238.02 ▲16.61
Dashboard /wp-admin3.07 ▲0.0248.16 ▼0.04
Posts /wp-admin/edit.php3.12 ▲0.0245.59 ▼1.61
Add New Post /wp-admin/post-new.php5.43 ▼0.0089.72 ▼562.64
Media Library /wp-admin/upload.php3.01 ▲0.0131.30 ▲2.52
Chatra widget /wp-admin/options-general.php?page=options-chatra2.9827.17

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Chatra Live Chat + ChatBot + Cart Saver
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.25 ▲0.6710.57 ▲2.1544.26 ▼5.16
Dashboard /wp-admin2,972 ▲385.94 ▼0.25161.69 ▼4.98107.46 ▼6.02
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0271.65 ▼7.0983.79 ▼1.81
Add New Post /wp-admin/post-new.php1,607 ▼7618.86 ▲0.39408.05 ▲30.08101.23 ▼8.34
Media Library /wp-admin/upload.php1,815 ▲85.00 ▼0.05149.76 ▼4.09114.56 ▲1.23
Chatra widget /wp-admin/options-general.php?page=options-chatra1,0212.2253.6460.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatra-live-chat/chatra.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Operator dashboard with visitor information. Shows you everything you want to know about your visitors.), #2 (Clean and easy to learn. Beautifully designed on both visitor's and agent's sides.), #3 (Operator dashboard.), #4 (Reports - Satisfaction report.), #5 (Distinctive Features. Fully customizable: pick a look to match your website design.), #6 (By humans for humans :))
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

chatra-live-chat/chatra.php 85% from 13 tests

The principal PHP file in "Chatra Live Chat + ChatBot + Cart Saver" v. 1.0.11 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 195 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("chatra-live-chat.php" instead of "chatra.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected189 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File43644153

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.05
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 functions4100.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
2 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png170.14KB61.08KB▼ 64.10%
screenshot-6.png17.29KB6.79KB▼ 60.72%