93% gobot

Code Review | Gobot - Sales Boosting Chatbot

WordPress plugin Gobot - Sales Boosting Chatbot scored 93% from 54 tests.

About plugin

  • Plugin page: gobot
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 5.8.1
  • First release: Jul 2, 2017
  • Latest release: Apr 6, 2020
  • Number of updates: 29
  • Update frequency: every 36.3 days
  • Top authors: eapariciodev (44.83%)maxronai (41.38%)krishnabhatt (20.69%)

Code review

54 tests

User reviews

58 reviews

Install metrics

700+ active / 10,931 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼143.15ms] Passed 4 tests

Analyzing server-side resources used by Gobot - Sales Boosting Chatbot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1531.83 ▲12.96
Dashboard /wp-admin3.10 ▲0.0546.07 ▼1.75
Posts /wp-admin/edit.php3.15 ▲0.0540.10 ▼0.30
Add New Post /wp-admin/post-new.php5.46 ▲0.0385.32 ▼572.02
Media Library /wp-admin/upload.php3.04 ▲0.0432.97 ▲1.47

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Gobot - Sales Boosting Chatbot
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲10215.78 ▲0.0010.81 ▲1.1948.70 ▲2.63
Dashboard /wp-admin2,982 ▲515.90 ▼0.15131.16 ▼15.36134.77 ▲15.54
Posts /wp-admin/edit.php2,759 ▲202.59 ▼0.1263.85 ▼6.9892.64 ▲10.66
Add New Post /wp-admin/post-new.php1,513 ▲1318.54 ▼0.22370.16 ▼14.85105.77 ▼1.88
Media Library /wp-admin/upload.php1,764 ▼435.04 ▲0.03127.69 ▼17.53128.96 ▲7.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gobot/gobot-plugin.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in gobot/assets to your readme.txt
You can take inspiration from this readme.txt

gobot/gobot-plugin.php 85% from 13 tests

The main PHP file in "Gobot - Sales Boosting Chatbot" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gobot.php" instead of "gobot-plugin.php")
  • Description: The description should be shorter than 140 characters (currently 153 characters long)

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
Success! There were no dangerous files found in this plugin211 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35128211

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
gobot.png0.37KB0.59KB0.00%