78% querlo-chatbots

Code Review | Querlo Chatbot

WordPress plugin Querlo Chatbot scored78%from 54 tests.

About plugin

  • Plugin page: querlo-chatbots
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 13, 2022
  • Latest release: Jul 5, 2022
  • Number of updates: 11
  • Update frequency: every 7.6 days
  • Top authors: lry8p (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /999 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Querlo Chatbot
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.0541.38 ▼5.01
Dashboard /wp-admin3.69 ▲0.0647.93 ▼18.24
Posts /wp-admin/edit.php3.74 ▲0.0651.30 ▼3.95
Add New Post /wp-admin/post-new.php6.21 ▲0.0698.12 ▼8.89
Media Library /wp-admin/upload.php3.55 ▲0.0642.80 ▲2.98

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Querlo Chatbot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.37 ▼0.291.89 ▲0.1443.28 ▼7.05
Dashboard /wp-admin2,206 ▲325.55 ▼0.1489.13 ▼1.5483.21 ▲40.32
Posts /wp-admin/edit.php2,114 ▲171.97 ▼0.1639.42 ▼0.0634.17 ▼1.03
Add New Post /wp-admin/post-new.php1,536 ▼923.38 ▲0.23685.98 ▼19.7559.27 ▲4.25
Media Library /wp-admin/upload.php1,411 ▲84.24 ▼0.09112.33 ▲8.6879.28 ▲31.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/querlo-chatbots/admin/views/admin-embeds-by-location_v.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/querlo-chatbots/admin/views/admin-main-settings_v.php:86
    • > PHP Notice
      Undefined variable: option in wp-content/plugins/querlo-chatbots/admin/views/admin-embeds-by-location_v.php on line 41
    • > PHP Warning
      sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/querlo-chatbots/admin/views/admin-embeds-by-location_v.php on line 41
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/querlo-chatbots/admin/views/admin-embeds-by-location_v.php on line 41

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 90% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Requires php: The plugin version is formatted incorrectly
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

querlo-chatbots/querlo.php 92% from 13 tests

This is the main PHP file of "Querlo Chatbot" version 1.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("querlo-chatbots.php" instead of "querlo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected519 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP59699519

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.67
▷ Minimum class complexity2.00
▷ Maximum class complexity27.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2076.92%
▷ Protected methods00.00%
▷ Private methods623.08%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/menu-icon.png2.29KB0.84KB▼ 63.35%