79% chatbot-support-ai

Code Review | Chatbot Support AI: Free ChatGPT Chatbot, Woocommerce Chatbot

WordPress plugin Chatbot Support AI: Free ChatGPT Chatbot, Woocommerce Chatbot scored79%from 54 tests.

About plugin

  • Plugin page: chatbot-support-ai
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 27, 2023
  • Latest release: Apr 9, 2023
  • Number of updates: 10
  • Update frequency: every 2.6 days
  • Top authors: mansurahamed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,458 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.31ms] Passed 4 tests

An overview of server-side resources used by Chatbot Support AI: Free ChatGPT Chatbot, Woocommerce Chatbot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1044.30 ▼0.45
Dashboard /wp-admin3.41 ▲0.1051.85 ▼1.57
Posts /wp-admin/edit.php3.52 ▲0.1649.98 ▼0.16
Add New Post /wp-admin/post-new.php5.99 ▲0.1096.95 ▼7.04
Media Library /wp-admin/upload.php3.33 ▲0.1038.88 ▲1.07
Chatbot Support AI /wp-admin/options-general.php?page=chatbot-support-ai-settings3.3033.60

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: 2 new tables, 8 new options
New tables
wp_chatbot_conversations
wp_chatbot_messages
New WordPress options
chatbot_support_ai_general_settings
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
chatbot_support_ai_chatgpt_settings

Browser metrics Passed 4 tests

A check of browser resources used by Chatbot Support AI: Free ChatGPT Chatbot, Woocommerce Chatbot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,025 ▲26413.90 ▼0.4621.20 ▲19.4574.10 ▲29.25
Dashboard /wp-admin2,202 ▲255.58 ▲0.0182.65 ▼17.7345.30 ▲2.46
Posts /wp-admin/edit.php2,107 ▲72.02 ▼0.0041.55 ▲0.1036.59 ▼0.27
Add New Post /wp-admin/post-new.php1,531 ▲323.27 ▲0.14627.42 ▼58.4049.88 ▼3.95
Media Library /wp-admin/upload.php1,407 ▲134.22 ▲0.0397.05 ▼6.9344.18 ▲1.34
Chatbot Support AI /wp-admin/options-general.php?page=chatbot-support-ai-settings9402.0323.7527.46

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
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_chatbot_conversations
    • wp_chatbot_messages
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • chatbot_support_ai_chatgpt_settings
    • chatbot_support_ai_general_settings
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: The official readme.txt is a good inspiration

chatbot-support-ai/chatbot-support-ai.php 92% from 13 tests

The entry point to "Chatbot Support AI: Free ChatGPT Chatbot, Woocommerce Chatbot" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 206 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin877 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP49754567
CSS1271219
JavaScript123691

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity23.00
▷ Minimum class complexity8.00
▷ Maximum class complexity37.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin