77% chatbot-for-easy-digital-downloads

Code Review | ChatBot for Easy Digital Downloads

WordPress plugin ChatBot for Easy Digital Downloads scored77%from 54 tests.

About plugin

  • Plugin page: chatbot-for-easy-...
  • Plugin version: 0.9.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Mar 24, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 6
  • Update frequency: every 83.8 days
  • Top authors: quantumcloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /636 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.41MB] [CPU: ▼3.51ms] Passed 4 tests

A check of server-side resources used by ChatBot for Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4044.96 ▼0.26
Dashboard /wp-admin3.72 ▲0.4147.61 ▲1.29
Posts /wp-admin/edit.php3.83 ▲0.4749.66 ▼3.44
Add New Post /wp-admin/post-new.php6.30 ▲0.4183.67 ▼11.61
Media Library /wp-admin/upload.php3.64 ▲0.4136.14 ▲1.95
EDDBot /wp-admin/admin.php?page=eddBot3.6845.65
Help /wp-admin/admin.php?page=qcld_eddbot_info_page3.6130.97

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 164 new files
Database: no new tables, 39 new options
New WordPress options
qlcd_eddbot_provide_email_address
qlcd_wp_chatbot_admin_email_name
qlcd_wp_chatbot_admin_email
qlcd_eddbot_product_asking
qlcd_eddbot_name_greeting
eddbot_icon
qlcd_eddbot_agent_join
disable_eddbot_on_mobile
widget_recent-posts
qlcd_eddbot_catalog
...

Browser metrics Passed 4 tests

A check of browser resources used by ChatBot for Easy Digital Downloads
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲23513.69 ▼0.6211.57 ▲9.5937.11 ▼8.93
Dashboard /wp-admin2,229 ▲385.86 ▲0.98101.83 ▼2.7540.99 ▼1.81
Posts /wp-admin/edit.php2,112 ▲232.01 ▼0.0135.95 ▼0.3937.22 ▲4.04
Add New Post /wp-admin/post-new.php1,533 ▼017.43 ▼5.92673.81 ▼0.4550.24 ▼15.13
Media Library /wp-admin/upload.php1,411 ▲264.22 ▲0.0196.46 ▼5.8046.81 ▲1.38
EDDBot /wp-admin/admin.php?page=eddBot2,4493.5062.00201.59
Help /wp-admin/admin.php?page=qcld_eddbot_info_page8322.0623.5625.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 39 options in the database
    • qlcd_wp_chatbot_admin_email_name
    • theysaidso_admin_options
    • qlcd_eddbot_host
    • qlcd_eddbot_more_specific
    • qlcd_eddbot_product_success
    • eddbot_position_y
    • qlcd_eddbot_welcome
    • qlcd_eddbot_i_am
    • qlcd_eddbot_conversations_with
    • qlcd_wp_chatbot_admin_from_email
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatbot-for-easy-digital-downloads/qcld-eddbot-info-page.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=eddBot
    • > Network (severe)
    http://agent%20image/ - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: easy digital downloads, edd, chatbot, bot, live chat

chatbot-for-easy-digital-downloads/qcld-eddbot.php 69% from 13 tests

"ChatBot for Easy Digital Downloads" version 0.9.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.9")
  • Main file name: Name the main plugin file the same as the plugin slug ("chatbot-for-easy-digital-downloads.php" instead of "qcld-eddbot.php")
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected8,758 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
SVG3102,972
CSS102881662,713
PHP53852011,915
JavaScript94002351,020
PO File15758138

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity53.67
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity7.58
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
78 PNG files occupy 1.22MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/jarvis-dot.png5.11KB0.21KB▼ 95.85%
images/custom.png4.71KB1.70KB▼ 63.80%
images/send-button.png0.26KB0.27KB0.00%
qc-support-promo-page/images/icon-pack/service-04.png1.67KB0.90KB▼ 46.47%
qc-support-promo-page/images/feature02.png5.13KB2.39KB▼ 53.37%