84% acobot-chatbot

Code Review | Acobot AI Chatbot

WordPress plugin Acobot AI Chatbot scored84%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: 6.3.1
  • 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

100+ active /7,008 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.29ms] Passed 4 tests

Server-side resources used by Acobot AI Chatbot
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.27 ▼4.71
Dashboard /wp-admin3.32 ▲0.0147.41 ▼2.26
Posts /wp-admin/edit.php3.37 ▲0.0146.73 ▲0.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.06 ▲3.68
Media Library /wp-admin/upload.php3.24 ▲0.0134.87 ▲1.00
Acobot /wp-admin/options-general.php?page=acobot3.2029.31

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Acobot AI Chatbot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼1.021.63 ▼0.1440.78 ▼5.14
Dashboard /wp-admin2,213 ▲254.89 ▼0.97108.15 ▼12.7340.41 ▼7.08
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0539.28 ▼0.9935.02 ▲2.07
Add New Post /wp-admin/post-new.php1,536 ▲323.37 ▲0.23645.84 ▼32.5251.93 ▼4.74
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.08103.17 ▲2.8143.66 ▲0.34
Acobot /wp-admin/options-general.php?page=acobot7882.0425.0528.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 | A shallow check that no browser errors were triggered
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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this 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
You should first fix the following items:
  • 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected192 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected