62% bdtaskchatbot

Code Review | Bdtaskchatbot Best chatting WordPress plugin

WordPress plugin Bdtaskchatbot Best chatting WordPress plugin scored62%from 54 tests.

About plugin

  • Plugin page: bdtaskchatbot
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.0
  • WordPress version: 6.3.1
  • First release: Oct 29, 2019
  • Latest release: Apr 29, 2021
  • Number of updates: 27
  • Update frequency: every 20.4 days
  • Top authors: bdtask (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /766 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.66MB] [CPU: ▲1.50ms] Passed 4 tests

A check of server-side resources used by Bdtaskchatbot Best chatting WordPress plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5844.25 ▲5.31
Dashboard /wp-admin4.05 ▲0.7152.93 ▼10.01
Posts /wp-admin/edit.php4.10 ▲0.7457.42 ▲4.39
Add New Post /wp-admin/post-new.php6.57 ▲0.68100.97 ▲9.93
Media Library /wp-admin/upload.php3.91 ▲0.6842.10 ▲6.29
Chat /wp-admin/admin.php?page=bdtaskchatbot_chat3.9344.22
Agents/Departments /wp-admin/admin.php?page=bdtaskchatbot_department3.9541.63
Intents /wp-admin/admin.php?page=bdtaskchatbot_intents3.9136.80
Update Intents /wp-admin/admin.php?page=bdtaskchatbot_update_intents3.9434.37
Dashboard /wp-admin/admin.php?page=bdtaskchatbot3.9738.55
Update Mapping /wp-admin/admin.php?page=bdtaskchatbot_update_mapping3.9637.08
Settings /wp-admin/admin.php?page=bdtaskchatbot_setting3.9237.20
Create Intents /wp-admin/admin.php?page=bdtaskchatbot_create_intents3.9338.30
Department Mapping /wp-admin/admin.php?page=bdtaskchatbot_department_mapping3.9637.94

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 322 new files
Database: 11 new tables, 6 new options
New tables
wp_bdtaskchatboard_visitors
wp_bdtaskchatboard_chat_history
wp_bdtaskchatboard_department_mapping
wp_bdtaskchatboard_chat_color
wp_bdtaskchatboard_chatbox
wp_bdtaskchatboard_question_bank
wp_bdtaskchatboard_visiting_history
wp_bdtaskchatboard_support
wp_bdtaskchatboard_department
wp_bdtaskchatboard_answer_bank
...
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bdtaskchatbot Best chatting WordPress plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲24814.50 ▲0.1514.35 ▲12.3741.12 ▼1.57
Dashboard /wp-admin2,251 ▲745.76 ▲0.1998.25 ▲11.6138.03 ▼3.25
Posts /wp-admin/edit.php2,162 ▲622.10 ▲0.0847.38 ▲7.6637.19 ▼2.31
Add New Post /wp-admin/post-new.php1,575 ▲4722.07 ▼0.89702.81 ▼9.3353.39 ▼12.03
Media Library /wp-admin/upload.php1,456 ▲564.28 ▲0.10107.88 ▲3.6948.30 ▼1.91
Chat /wp-admin/admin.php?page=bdtaskchatbot_chat99120.29476.3393.48
Agents/Departments /wp-admin/admin.php?page=bdtaskchatbot_department91329.86456.0630.66
Intents /wp-admin/admin.php?page=bdtaskchatbot_intents81320.61301.0038.52
Update Intents /wp-admin/admin.php?page=bdtaskchatbot_update_intents95720.86311.9339.79
Dashboard /wp-admin/admin.php?page=bdtaskchatbot1,01631.97361.4765.09
Update Mapping /wp-admin/admin.php?page=bdtaskchatbot_update_mapping97920.70315.5334.34
Settings /wp-admin/admin.php?page=bdtaskchatbot_setting99020.24285.1134.90
Create Intents /wp-admin/admin.php?page=bdtaskchatbot_create_intents95120.31271.7633.20
Department Mapping /wp-admin/admin.php?page=bdtaskchatbot_department_mapping1,25224.27340.8536.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 11 tables in the database
    • wp_bdtaskchatboard_answer_bank
    • wp_bdtaskchatboard_support
    • wp_bdtaskchatboard_chat_color
    • wp_bdtaskchatboard_intents
    • wp_bdtaskchatboard_department_mapping
    • wp_bdtaskchatboard_department
    • wp_bdtaskchatboard_visiting_history
    • wp_bdtaskchatboard_question_bank
    • wp_bdtaskchatboard_chatbox
    • wp_bdtaskchatboard_chat_history
    • ...
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=bdtaskchatbot_intents
    • > Notice in wp-content/plugins/bdtaskchatbot/admin/templates/bdtaskchatbot_intents.php+62
    Undefined offset: 0
    • > GET request to /wp-admin/admin.php?page=bdtaskchatbot_intents
    • > Notice in wp-content/plugins/bdtaskchatbot/admin/templates/bdtaskchatbot_intents.php+62
    Trying to get property 'department_id' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bdtaskchatbot_update_mapping
    • > Notice in wp-content/plugins/bdtaskchatbot/admin/templates/bdtaskchatbot_update_mapping.php+21
    Undefined index: id
    • > GET request to /wp-admin/admin.php?page=bdtaskchatbot_update_intents
    • > Notice in wp-content/plugins/bdtaskchatbot/admin/templates/bdtaskchatbot_update_intents.php+71
    Trying to get property 'intent_id' of non-object
    • > GET request to /wp-admin/admin.php?page=bdtaskchatbot_update_intents
    • > Notice in wp-content/plugins/bdtaskchatbot/admin/templates/bdtaskchatbot_update_intents.php+108
    Trying to get property 'intent_name' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bdtaskchatbot_update_intents
    • > Notice in wp-content/plugins/bdtaskchatbot/admin/templates/bdtaskchatbot_update_intents.php+119
    Trying to get property 'intent_type' of non-object
    • > GET request to /wp-admin/admin.php?page=bdtaskchatbot_update_mapping
    • > Notice in wp-content/plugins/bdtaskchatbot/admin/templates/bdtaskchatbot_update_mapping.php+89
    Trying to get property 'id' of non-object
    • > GET request to /wp-admin/admin.php?page=bdtaskchatbot_update_mapping
    • > Notice in wp-content/plugins/bdtaskchatbot/admin/templates/bdtaskchatbot_update_mapping.php+118
    Trying to get property 'user_id' of non-object

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bdtaskchatbot/admin/assets/plugins/datatables/ids-objects.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require(): Failed opening required 'ssp.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/bdtaskchatbot/admin/assets/plugins/datatables/server_processing.php on line 66
    • > PHP Warning
      require(ssp.class.php): failed to open stream: No such file or directory in wp-content/plugins/bdtaskchatbot/admin/assets/plugins/datatables/server_processing.php on line 66

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in bdtaskchatbot/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

bdtaskchatbot/bdtaskchatbot.php Passed 13 tests

The principal PHP file in "Bdtaskchatbot Best chatting WordPress plugin" v. 1.0.0 is loaded by WordPress automatically on each request
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
Success! There were no dangerous files found in this plugin78,761 lines of code in 176 files:
LanguageFilesBlank linesComment linesLines of code
CSS376,21890632,290
JavaScript532,00580115,406
SVG801311,779
PHP249258235,618
Sass22596385,366
LESS18502554,585
YAML1001,702
Markdown963501,415
HTML100406
JSON200124
make117470

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity22.90
▷ Minimum class complexity1.00
▷ Maximum class complexity105.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods108
▷ Static methods3431.48%
▷ Public methods10395.37%
▷ Protected methods00.00%
▷ Private methods54.63%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.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
23 compressed PNG files occupy 0.43MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/dist/img/icon.png26.57KB11.12KB▼ 58.14%
admin/assets/plugins/images/sort_asc.png0.16KB0.25KB0.00%
public/assets/dist/img/favicon.png0.16KB0.17KB0.00%
admin/assets/plugins/datatables/details_close.png0.67KB0.79KB0.00%
admin/assets/dist/img/icons.png1.13KB1.14KB0.00%