83% aion-chatbot

Code Review | AION chatbot

WordPress plugin AION chatbot scored83%from 54 tests.

About plugin

  • Plugin page: aion-chatbot
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Aug 24, 2021
  • Latest release: Feb 11, 2022
  • Number of updates: 12
  • Update frequency: every 14.3 days
  • Top authors: aionmit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,989 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲10.10ms] Passed 4 tests

An overview of server-side resources used by AION chatbot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0781.87 ▲36.21
Dashboard /wp-admin3.37 ▲0.0650.35 ▲2.86
Posts /wp-admin/edit.php3.42 ▲0.0646.46 ▼2.21
Add New Post /wp-admin/post-new.php5.95 ▲0.06183.82 ▲87.98
Media Library /wp-admin/upload.php3.29 ▲0.0639.52 ▲3.52

Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/aion-chatbot/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/aion-chatbot/admin/images/banner-772\303\227250.png"
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
aionchat_options

Browser metrics Passed 4 tests

A check of browser resources used by AION chatbot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17613.68 ▼0.549.13 ▲7.3636.77 ▼5.00
Dashboard /wp-admin2,212 ▲214.87 ▲0.01103.79 ▼0.6543.88 ▲1.64
Posts /wp-admin/edit.php2,098 ▲122.02 ▼0.0334.44 ▼5.4133.71 ▼2.86
Add New Post /wp-admin/post-new.php1,557 ▲4323.17 ▲5.73654.90 ▼22.9261.64 ▼6.25
Media Library /wp-admin/upload.php1,400 ▲124.21 ▼0.02105.79 ▲7.6045.61 ▲3.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/aion-chatbot/admin/my-plugin-admin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/aion-chatbot/admin/questionsForm.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/aion-chatbot/admin/askingforacoumpt.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Contributors: Plugin contributors not specified
The official readme.txt might help

aion-chatbot/aionchat.php 92% from 13 tests

"AION chatbot" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aion-chatbot.php" instead of "aionchat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,555 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS35560731
PHP58457640
JavaScript56479184

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/bg-header.png5.92KB2.57KB▼ 56.56%
admin/images/banner-772×250.png68.78KB31.49KB▼ 54.22%
public/images/img.png43.40KB11.87KB▼ 72.65%
public/images/bg.png23.08KB8.94KB▼ 61.28%