90% xatkit-chatbot-connector

Code Review | Blog Navigator Chatbot by Xatkit

WordPress plugin Blog Navigator Chatbot by Xatkit scored90%from 54 tests.

About plugin

  • Plugin page: xatkit-chatbot-co...
  • Plugin version: 3.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.0
  • WordPress version: 6.3.1
  • First release: Jan 16, 2020
  • Latest release: Jul 10, 2022
  • Number of updates: 21
  • Update frequency: every 43.2 days
  • Top authors: xatkit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,537 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.98ms] Passed 4 tests

Server-side resources used by Blog Navigator Chatbot by Xatkit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.47 ▼2.07
Dashboard /wp-admin3.57 ▲0.2349.34 ▼16.35
Posts /wp-admin/edit.php3.63 ▲0.2758.04 ▲9.74
Add New Post /wp-admin/post-new.php5.63 ▼0.2675.76 ▼22.78
Media Library /wp-admin/upload.php3.39 ▲0.1638.75 ▲1.27

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Blog Navigator Chatbot by Xatkit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,090 ▲34417.51 ▲3.3440.49 ▲38.6843.15 ▼0.62
Dashboard /wp-admin2,385 ▲2057.09 ▲1.42152.94 ▲53.2958.36 ▲16.21
Posts /wp-admin/edit.php2,313 ▲2134.66 ▲2.6568.50 ▲29.8061.14 ▲26.78
Add New Post /wp-admin/post-new.php1,571 ▲3824.40 ▲1.06663.23 ▼28.8740.03 ▼13.98
Media Library /wp-admin/upload.php1,447 ▲475.93 ▲1.6992.91 ▼21.6649.71 ▲1.12

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: bot, ai, assistant, nlp, conversation...

xatkit-chatbot-connector/xatkit-chatbot-connector.php Passed 13 tests

"Blog Navigator Chatbot by Xatkit" version 3.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
48 characters long description:
Plugin to integrate Xatkit chatbots in WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin974 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11214431795
JavaScript32070146
CSS32033

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.44
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods52
▷ Static methods23.85%
▷ Public methods4484.62%
▷ Protected methods59.62%
▷ Private methods35.77%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected