83% chatlio

Code Review | Slack Live Chat

WordPress plugin Slack Live Chat scored83%from 54 tests.

About plugin

  • Plugin page: chatlio
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: Sep 15, 2021
  • Number of updates: 28
  • Update frequency: every 75.3 days
  • Top authors: jeberly (89.29%)jamesmorrison (10.71%)nivram80 (7.14%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /9,177 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.13ms] Passed 4 tests

Analyzing server-side resources used by Slack Live Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0256.28 ▲12.56
Dashboard /wp-admin3.33 ▲0.0349.35 ▼4.20
Posts /wp-admin/edit.php3.38 ▲0.0348.73 ▼0.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.28 ▼19.61
Media Library /wp-admin/upload.php3.26 ▲0.0336.27 ▼0.32
Chatlio /wp-admin/tools.php?page=chatlio-settings3.2233.17

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Slack Live Chat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.53 ▼0.798.08 ▲6.3745.02 ▲0.86
Dashboard /wp-admin2,225 ▲224.85 ▼0.03111.93 ▲7.6041.30 ▼1.05
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0636.67 ▼3.8633.39 ▼4.80
Add New Post /wp-admin/post-new.php1,548 ▲123.20 ▼0.10671.24 ▲5.5652.93 ▼0.76
Media Library /wp-admin/upload.php1,407 ▲74.30 ▼0.0597.77 ▼13.9341.53 ▼3.04
Chatlio /wp-admin/tools.php?page=chatlio-settings8142.0525.1323.92

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/chatlio/chatlio.php

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 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 58 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Chatlio WordPress settings - setup with your widget ID), #2 (Example Chatlio session underway)
Please take inspiration from this readme.txt

chatlio/chatlio.php 92% from 13 tests

The main PHP script in "Slack Live Chat" version 1.1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please improve your description making it at least 10 characters long (currently 7 characters long)

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
Everything looks great! No dangerous files found in this plugin82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1808982

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.58MB with 0.40MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png109.98KB32.00KB▼ 70.90%
assets/screenshot-2.png479.00KB156.41KB▼ 67.35%