84% instabot

Code Review | Instabot: Chatbot to Increase Conversions on Wordpress. Try for Free

WordPress plugin Instabot: Chatbot to Increase Conversions on Wordpress. Try for Free scored 84% from 54 tests.

About plugin

  • Plugin page: instabot
  • Plugin version: 1.10
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Mar 22, 2018
  • Latest release: May 16, 2022
  • Number of updates: 33
  • Update frequency: every 46.0 days
  • Top authors: instabot (93.94%)abidzan (9.09%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 3,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Instabot: Chatbot to Increase Conversions on Wordpress. Try for Free
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0070.98 ▲1.39
Dashboard /wp-admin3.32 ▲0.0185.33 ▼0.11
Posts /wp-admin/edit.php3.37 ▲0.0178.29 ▼11.46
Add New Post /wp-admin/post-new.php5.90 ▲0.01148.50 ▼9.57
Media Library /wp-admin/upload.php3.24 ▲0.0166.55 ▲0.16

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Instabot: Chatbot to Increase Conversions on Wordpress. Try for Free: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.17 ▲0.103.63 ▲0.3974.24 ▼5.65
Dashboard /wp-admin2,208 ▲265.90 ▲1.01175.41 ▼9.60128.33 ▲41.56
Posts /wp-admin/edit.php2,106 ▲172.00 ▼0.0264.36 ▼5.1073.05 ▼3.76
Add New Post /wp-admin/post-new.php1,415 ▲1717.79 ▼0.09998.40 ▲21.7784.41 ▲12.36
Media Library /wp-admin/upload.php1,390 ▼14.22 ▼0.07180.94 ▼7.32129.27 ▲30.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: _asset_url in wp-content/plugins/instabot/views/settings.php on line 2
    • > PHP Fatal error
      Uncaught Error: Function name must be a string in wp-content/plugins/instabot/views/settings.php:2
    • > PHP Fatal error
      Uncaught Exception: Can't be called directly in wp-content/plugins/instabot/instabot.php:14

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: chatbot, chat bot, instabot, natural language processing, ai

instabot/instabot.php 92% from 13 tests

"Instabot: Chatbot to Increase Conversions on Wordpress. Try for Free" version 1.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 241 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected310 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP75242265
CSS110045

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.80
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods14
▷ Static methods428.57%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants11
▷ Global constants654.55%
▷ Class constants545.45%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/menu-icon.png0.24KB0.33KB0.00%
assets/instabot-wordpress.png4.37KB2.03KB▼ 53.60%