89% tars-chatbot

Code Review | TARS Bot Widget — Create Engaging Conversational Bots for your website and Generate Leads for your Business

WordPress plugin TARS Bot Widget — Create Engaging Conversational Bots for your website and Generate Leads for your Business scored89%from 54 tests.

About plugin

  • Plugin page: tars-chatbot
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 14, 2018
  • Latest release: Apr 14, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: vinitagr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /1,546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.18ms] Passed 4 tests

Server-side resources used by TARS Bot Widget — Create Engaging Conversational Bots for your website and Generate Leads for your Business
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.90 ▼4.80
Dashboard /wp-admin3.33 ▲0.0347.31 ▼9.08
Posts /wp-admin/edit.php3.38 ▲0.0347.14 ▼8.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.03 ▼14.54
Media Library /wp-admin/upload.php3.25 ▲0.0333.22 ▼5.10
TARS Bot Widget /wp-admin/options-general.php?page=tarsbot-plugin3.2233.48

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

TARS Bot Widget — Create Engaging Conversational Bots for your website and Generate Leads for your Business: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲7313.18 ▼1.201.90 ▼0.5542.77 ▼0.03
Dashboard /wp-admin2,228 ▲284.86 ▼1.07101.46 ▼12.5137.49 ▼8.86
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0135.82 ▼2.5432.75 ▼2.78
Add New Post /wp-admin/post-new.php1,552 ▲718.59 ▼4.54625.99 ▼59.7663.81 ▲8.47
Media Library /wp-admin/upload.php1,398 ▼54.24 ▲0.0299.70 ▼15.3745.41 ▼2.16
TARS Bot Widget /wp-admin/options-general.php?page=tarsbot-plugin7992.0226.3829.66

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2 in tars-chatbot/assets to your readme.txt
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

tars-chatbot/tars.php 92% from 13 tests

The principal PHP file in "TARS Bot Widget — Create Engaging Conversational Bots for your website and Generate Leads for your Business" v. 0.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tars-chatbot.php" instead of "tars.php")

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
Success! There were no dangerous files found in this plugin133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12729133

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin