78% cliengo

Code Review | Cliengo - Chatbot

WordPress plugin Cliengo - Chatbot scored78%from 54 tests.

About plugin

  • Plugin page: cliengo
  • Plugin version: 3.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2018
  • Latest release: Jan 27, 2023
  • Number of updates: 90
  • Update frequency: every 19.9 days
  • Top authors: cliengo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

4,000+ active /38,755 total downloads

Benchmarks

Plugin footprint 83% from 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.09MB] [CPU: ▼8.76ms] Passed 4 tests

Server-side resources used by Cliengo - Chatbot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0731.02 ▼11.72
Dashboard /wp-admin3.40 ▲0.0955.14 ▲2.73
Posts /wp-admin/edit.php3.51 ▲0.1554.73 ▼14.77
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.99 ▼9.64
Media Library /wp-admin/upload.php3.32 ▲0.0937.75 ▲1.11

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 84 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
position_chatbot
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
cliengo_chatbot_token
db_upgraded

Browser metrics Passed 4 tests

Cliengo - Chatbot: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17713.67 ▼0.768.77 ▲6.7942.69 ▼0.65
Dashboard /wp-admin2,221 ▲535.86 ▲0.3292.70 ▼8.9773.01 ▲26.26
Posts /wp-admin/edit.php2,138 ▲382.30 ▲0.3339.63 ▲1.4234.56 ▲0.41
Add New Post /wp-admin/post-new.php1,557 ▲2223.22 ▲0.00725.62 ▲69.5539.69 ▼23.87
Media Library /wp-admin/upload.php1,429 ▲264.53 ▲0.31101.84 ▲1.7276.44 ▲33.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • position_chatbot
    • widget_theysaidso_widget
    • db_upgraded
    • cliengo_chatbot_token
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cliengo/public/partials/cliengo-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/cliengo/admin/partials/cliengo-admin-display.php:16

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: cliengo, leads, chatbot

cliengo/cliengo.php 92% from 13 tests

The principal PHP file in "Cliengo - Chatbot" v. 3.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin17,491 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
CSS7503912,762
JavaScript96063422,036
PO File105205501,323
PHP14174661831
SVG502538
Markdown1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.78
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods40
▷ Static methods37.50%
▷ Public methods3382.50%
▷ Protected methods00.00%
▷ Private methods717.50%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
13 PNG files occupy 3.47MB with 2.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/favicon-16x16.png1.41KB0.84KB▼ 40.32%
public/images/cliengo.png19.55KB2.15KB▼ 89.01%
assets/screenshot-4.png69.23KB19.02KB▼ 72.52%
admin/images/logo.png2.46KB1.30KB▼ 47.27%
admin/images/chat-popup.png2.52KB1.56KB▼ 38.34%