68% wpbot

Code Review | ChatBot Sessions

WordPress plugin ChatBot Sessions scored 68% from 54 tests.

About plugin

  • Plugin page: wpbot
  • Plugin version: 0.9.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 15, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 12
  • Update frequency: every 45.0 days
  • Top authors: quantumcloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 866 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.69ms] Passed 4 tests

Analyzing server-side resources used by ChatBot Sessions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1743.29 ▲1.26
Dashboard /wp-admin3.46 ▲0.1644.89 ▼4.94
Posts /wp-admin/edit.php3.58 ▲0.2249.05 ▲2.86
Add New Post /wp-admin/post-new.php6.04 ▲0.1688.47 ▼13.24
Media Library /wp-admin/upload.php3.39 ▲0.1635.44 ▲2.18

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: 2 new tables, 7 new options
New tables
wp_wpbot_user
wp_wpbot_Conversation
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
enable_chat_session
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ChatBot Sessions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7414.78 ▲0.021.54 ▼0.2240.72 ▼8.50
Dashboard /wp-admin2,218 ▲304.92 ▲0.04104.47 ▼13.9439.00 ▼5.69
Posts /wp-admin/edit.php2,098 ▲92.05 ▲0.0737.65 ▼2.3133.13 ▼2.59
Add New Post /wp-admin/post-new.php1,543 ▲1523.13 ▲4.84670.65 ▲54.0956.58 ▲2.37
Media Library /wp-admin/upload.php1,397 ▲94.20 ▲0.0398.38 ▼30.3347.09 ▲2.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_wpbot_Conversation
    • wp_wpbot_user
  • Zombie WordPress options were found after uninstall: 7 options
    • enable_chat_session
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wpbot/wpbot-chat-history-addon.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpbot/class-qc-free-plugin-upgrade-notice.php:34

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: chatbot, history, live chat, livechat, sessions

wpbot/wpbot-chat-history-addon.php 85% from 13 tests

The entry point to "ChatBot Sessions" version 0.9.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "4.6")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpbot.php" instead of "wpbot-chat-history-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,102 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP222091898
JavaScript23210120
CSS110384

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin