90% xatkit-chatbot-for-woocommerce

Code Review | Xatkit - Smart Chatbot for WooCommerce

WordPress plugin Xatkit - Smart Chatbot for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: xatkit-chatbot-fo...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.8
  • WordPress version: 6.3.1
  • First release: Aug 17, 2021
  • Latest release: Nov 15, 2021
  • Number of updates: 7
  • Update frequency: every 12.9 days
  • Top authors: xatkit (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲3.58ms] Passed 4 tests

Analyzing server-side resources used by Xatkit - Smart Chatbot for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.86 ▼1.13
Dashboard /wp-admin3.37 ▲0.0759.10 ▲8.96
Posts /wp-admin/edit.php3.48 ▲0.1357.31 ▲5.13
Add New Post /wp-admin/post-new.php5.95 ▲0.06100.54 ▲13.71
Media Library /wp-admin/upload.php3.27 ▲0.0440.07 ▲1.35

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Xatkit - Smart Chatbot for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,096 ▲35017.19 ▲2.8234.87 ▲32.9677.20 ▲33.55
Dashboard /wp-admin2,388 ▲2006.83 ▲1.95124.32 ▲10.8337.75 ▼7.01
Posts /wp-admin/edit.php2,300 ▲2083.45 ▲1.4052.12 ▲11.9530.49 ▼7.15
Add New Post /wp-admin/post-new.php1,713 ▲18522.62 ▼0.53599.09 ▼82.1030.44 ▼27.08
Media Library /wp-admin/upload.php1,436 ▲484.55 ▲0.4185.50 ▼32.5443.99 ▼5.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: woocommerce, chatbot, cart, chat-bot, online-shop...

xatkit-chatbot-for-woocommerce/xatkit-chatbot-for-woocommerce.php 92% from 13 tests

"Xatkit - Smart Chatbot for WooCommerce" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,029 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP11198427676
PO File26070174
JavaScript32070146
CSS32033

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.33
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods4083.33%
▷ Protected methods510.42%
▷ Private methods36.25%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected