90% instant-answers-chatbot

Code Review | Instant Answers Chatbot

WordPress plugin Instant Answers Chatbot scored90%from 54 tests.

About plugin

  • Plugin page: instant-answers-c...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2023
  • Latest release: Aug 18, 2023
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: instantanswers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /81 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.26ms] Passed 4 tests

An overview of server-side resources used by Instant Answers Chatbot
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.59 ▼4.75
Dashboard /wp-admin3.31 ▼0.0347.17 ▼14.86
Posts /wp-admin/edit.php3.36 ▲0.0146.38 ▼5.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.01 ▼16.37
Media Library /wp-admin/upload.php3.24 ▲0.0139.93 ▲6.29
Instant Answers Options /wp-admin/options-general.php?page=instant_answers_settings3.2032.79

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Instant Answers Chatbot
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.70 ▲0.102.23 ▲0.6840.47 ▼2.17
Dashboard /wp-admin2,202 ▲255.55 ▼0.1088.82 ▼12.1340.00 ▼8.16
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0236.38 ▼2.8233.47 ▼3.74
Add New Post /wp-admin/post-new.php1,541 ▲1523.08 ▲0.12690.77 ▲54.8062.21 ▲2.41
Media Library /wp-admin/upload.php1,407 ▲104.18 ▼0.0598.66 ▼4.5546.76 ▼2.46
Instant Answers Options /wp-admin/options-general.php?page=instant_answers_settings7912.1525.3527.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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

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
6 plugin tags: artificial intelligence, support, chatbot, customer service, ai...

instant-answers-chatbot/instant-answers-chatbot.php Passed 13 tests

This is the main PHP file of "Instant Answers Chatbot" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
Allows to add a chatbot created in Instant Answers into the WordPress site.

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
No dangerous file extensions were detected233 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1211187
PHP191046

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin