94% acobot-chatbot

Code Review | Acobot AI Chatbot

WordPress plugin Acobot AI Chatbot scored 94% from 54 tests.

About plugin

  • Plugin page: acobot-chatbot
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.1
  • WordPress version: 5.9.2
  • First release: May 8, 2018
  • Latest release: Nov 8, 2021
  • Number of updates: 47
  • Update frequency: every 27.7 days
  • Top authors: vic1 (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

200+ active / 6,103 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Acobot AI Chatbot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1052.78 ▲4.06
Dashboard /wp-admin3.45 ▲0.0433.69 ▲0.17
Posts /wp-admin/edit.php3.68 ▲0.0465.49 ▲29.76
Add New Post /wp-admin/post-new.php6.93 ▼0.04100.26 ▼1,217.73
Media Library /wp-admin/upload.php3.34 ▲0.0332.39 ▲1.53
Acobot /wp-admin/options-general.php?page=acobot3.3127.79

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Acobot AI Chatbot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲1516.19 ▲0.486.04 ▼0.052.18 ▼0.75
Dashboard /wp-admin2,897 ▲366.12 ▼0.09121.31 ▼10.73156.81 ▼3.58
Posts /wp-admin/edit.php2,696 ▲83.23 ▼0.0062.49 ▼1.76141.13 ▲1.25
Add New Post /wp-admin/post-new.php1,720 ▲4821.96 ▲1.08417.69 ▼3.88157.72 ▲4.97
Media Library /wp-admin/upload.php1,703 ▲55.53 ▲0.06139.79 ▼7.83189.09 ▼3.51
Acobot /wp-admin/options-general.php?page=acobot1,0182.4153.80124.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_schedule_single_event() in wp-content/plugins/acobot-chatbot/acobot-woocommerce.php:127
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_schedule_single_event() in wp-content/plugins/acobot-chatbot/acobot-woocommerce.php:127

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)
Everything seems fine on the user side


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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

acobot-chatbot/acobot.php 92% from 13 tests

The principal PHP file in "Acobot AI Chatbot" v. 1.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acobot-chatbot.php" instead of "acobot.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
No dangerous file extensions were detected192 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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 functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin