73% qubotchat

Code Review | QuBot - Chatbot Builder with Templates

WordPress plugin QuBot - Chatbot Builder with Templates scored73%from 54 tests.

About plugin

  • Plugin page: qubotchat
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 35
  • Update frequency: every 19.0 days
  • Top authors: qudata (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,345 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.17ms] Passed 4 tests

A check of server-side resources used by QuBot - Chatbot Builder with Templates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1736.02 ▼6.69
Dashboard /wp-admin3.47 ▲0.1748.47 ▼2.45
Posts /wp-admin/edit.php3.53 ▲0.1648.52 ▲2.25
Add New Post /wp-admin/post-new.php6.06 ▲0.1691.97 ▲2.20
Media Library /wp-admin/upload.php3.40 ▲0.1638.00 ▲4.12

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 216 new files
Database: 2 new tables, 6 new options
New tables
wp_qubotchat_data
wp_qubotchat_bots
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for QuBot - Chatbot Builder with Templates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18014.64 ▲0.243.70 ▲1.9548.70 ▲1.39
Dashboard /wp-admin2,198 ▲215.54 ▼0.0295.21 ▼0.7373.16 ▲35.01
Posts /wp-admin/edit.php2,121 ▲181.98 ▼0.0438.67 ▼0.2333.87 ▼2.27
Add New Post /wp-admin/post-new.php1,692 ▲16222.33 ▼0.75719.49 ▲30.4855.20 ▲2.89
Media Library /wp-admin/upload.php1,415 ▲154.18 ▼0.1199.35 ▲0.2474.43 ▲30.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_qubotchat_bots
    • wp_qubotchat_data
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/qubotchat/qubotchat.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

qubotchat/qubotchat.php 92% from 13 tests

The principal PHP file in "QuBot - Chatbot Builder with Templates" v. 1.1.9 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected50,072 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54425,31342,015
CSS97613735,284
SVG9211271,607
PHP189291,166

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
74 PNG files occupy 1.23MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
qubot/qb/css/icons/animal02.png11.90KB5.35KB▼ 55.05%
qubot/qb/css/icons/smile01.png15.44KB5.83KB▼ 62.27%
qubot/editor/css/icons/logo02b.png43.80KB14.50KB▼ 66.89%
qubot/editor/css/icons/animal02.png11.90KB5.35KB▼ 55.05%
qubot/qb/css/icons/smile03.png7.75KB3.64KB▼ 53.08%