84% revechat

Code Review | Chatbot & Live Chat for WordPress - REVE Chat

WordPress plugin Chatbot & Live Chat for WordPress - REVE Chat scored84%from 54 tests.

About plugin

  • Plugin page: revechat
  • Plugin version: 6.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2015
  • Latest release: Aug 23, 2022
  • Number of updates: 191
  • Update frequency: every 13.7 days
  • Top authors: revechat (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

300+ active /27,116 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.61MB] [CPU: ▼16.63ms] Passed 4 tests

This is a short check of server-side resources used by Chatbot & Live Chat for WordPress - REVE Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.95 ▼7.23
Dashboard /wp-admin3.37 ▲0.0746.48 ▼4.71
Posts /wp-admin/edit.php3.42 ▲0.0749.12 ▲1.81
Add New Post /wp-admin/post-new.php3.25 ▼2.6439.48 ▼56.25
Media Library /wp-admin/upload.php3.30 ▲0.0736.40 ▲1.68

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Chatbot & Live Chat for WordPress - REVE Chat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.33 ▼0.981.73 ▼0.4539.40 ▼8.85
Dashboard /wp-admin2,219 ▲315.06 ▼0.84104.80 ▼2.3673.76 ▲27.34
Posts /wp-admin/edit.php2,117 ▲282.32 ▲0.3140.09 ▲3.4237.66 ▲3.44
Add New Post /wp-admin/post-new.php1,537 ▲1823.31 ▲0.05680.47 ▲0.2138.39 ▼13.61
Media Library /wp-admin/upload.php1,413 ▲254.45 ▲0.23100.19 ▼3.6073.61 ▲31.38

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/revechat/revechat.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (90 tag instead of maximum 10)
The official readme.txt might help

revechat/revechat.php 92% from 13 tests

The primary PHP file in "Chatbot & Live Chat for WordPress - REVE Chat" version 6.2.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 456 characters long)

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 plugin1,101 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript49141419
CSS211375
PHP113097290
SVG10016
HTML1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png6.28KB3.10KB▼ 50.57%
assets/images/favicon.png1.24KB0.47KB▼ 62.20%
assets/images/flags.png67.55KB23.95KB▼ 64.54%
assets/images/flags@2x.png169.18KB65.55KB▼ 61.26%