84% chatandbot

Code Review | Live Chat and ChatBot - ChatAndBot

WordPress plugin Live Chat and ChatBot - ChatAndBot scored84%from 54 tests.

About plugin

  • Plugin page: chatandbot
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3-6.3
  • WordPress version: 6.3.1
  • First release: Jan 27, 2023
  • Latest release: Aug 18, 2023
  • Number of updates: 9
  • Update frequency: every 22.7 days
  • Top authors: chatandbot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.18ms] Passed 4 tests

An overview of server-side resources used by Live Chat and ChatBot - ChatAndBot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.77 ▲3.50
Dashboard /wp-admin3.32 ▲0.0245.75 ▼6.10
Posts /wp-admin/edit.php3.38 ▲0.0247.00 ▲0.61
Add New Post /wp-admin/post-new.php5.91 ▲0.02101.86 ▼8.60
Media Library /wp-admin/upload.php3.25 ▲0.0233.23 ▼2.63
ChatAndBot Settings /wp-admin/options-general.php?page=chatandbot-settings3.2130.34

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Live Chat and ChatBot - ChatAndBot: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.21 ▼0.371.73 ▲0.1343.40 ▼0.15
Dashboard /wp-admin2,202 ▲255.63 ▲0.0192.32 ▲0.9341.06 ▼2.94
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0239.07 ▲3.6536.04 ▼2.31
Add New Post /wp-admin/post-new.php1,529 ▲123.62 ▲0.55586.17 ▼160.5750.79 ▼6.65
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0497.90 ▲3.1840.93 ▼2.29
ChatAndBot Settings /wp-admin/options-general.php?page=chatandbot-settings8032.0322.7131.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/chatandbot/chatandbot.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

chatandbot/chatandbot.php 92% from 13 tests

"Live Chat and ChatBot - ChatAndBot" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin163 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File33339112

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.07
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 functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin