79% chatbot-botnation

Code Review | Chatbot Botnation Plugin

WordPress plugin Chatbot Botnation Plugin scored79%from 54 tests.

About plugin

  • Plugin page: chatbot-botnation
  • Plugin version: 1.3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Feb 15, 2018
  • Latest release: Jun 7, 2022
  • Number of updates: 46
  • Update frequency: every 34.2 days
  • Top authors: botnation (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /3,225 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Chatbot Botnation Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1048.53 ▲6.61
Dashboard /wp-admin3.42 ▲0.0746.94 ▼16.74
Posts /wp-admin/edit.php3.47 ▲0.1145.23 ▼0.59
Add New Post /wp-admin/post-new.php6.00 ▲0.1183.37 ▼23.78
Media Library /wp-admin/upload.php3.34 ▲0.1134.20 ▲1.52
Chatbot Botnation /wp-admin/options-general.php?page=bnai_cb3.3131.26

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Chatbot Botnation Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.24 ▼1.151.98 ▲0.1642.26 ▼0.95
Dashboard /wp-admin2,210 ▲194.84 ▼0.97112.74 ▲4.4744.84 ▲3.28
Posts /wp-admin/edit.php2,090 ▲12.03 ▲0.0433.29 ▼2.8033.20 ▲1.14
Add New Post /wp-admin/post-new.php1,536 ▼023.59 ▲0.39641.05 ▼36.1951.12 ▼10.44
Media Library /wp-admin/upload.php1,395 ▲44.20 ▲0.0194.32 ▼2.0741.07 ▲0.30
Chatbot Botnation /wp-admin/options-general.php?page=bnai_cb9002.0325.0428.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/chatbot-botnation/chatbot-botnation.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatbot-botnation/includes/bnai-cb-page-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatbot-botnation/includes/bnai-cb-injector.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatbot-botnation/includes/bnai-cb-administration.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: web, botnation, bot, chatbot

chatbot-botnation/chatbot-botnation.php Passed 13 tests

The principal PHP file in "Chatbot Botnation Plugin" v. 1.3.3 is loaded by WordPress automatically on each request
105 characters long description:
Create easily your own AI chatbot for Word Press powered by Botnation AI. Free chatbot building platform.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin609 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP58083504
PO File13237105

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/bnai-cb-help-ref.png15.54KB5.74KB▼ 63.06%