Chatbot with IBM watsonx Assistant

This plugin allows you to easily add chatbots powered by IBM watsonx Assistant to your website.

v0.9.1IBM Skills NetworkUpdated Added 400 installs88% rating
33
Score
324
Errors
83
Warnings
+0
Change

Category Scores

Security0
Repo86
Performance100
Maintainability50

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

407 findings

Security

183

8 issue groups

I18n

149

2 issue groups

Maintainability

68

15 issue groups

ERRORI18nNon Singular String Literal DomainThe $domain parameter must be a single text string literal. Found: self::SLUG135
Category
I18n
Occurrences
135
Severity
error

Sample message

The $domain parameter must be a single text string literal. Found: self::SLUG

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<div>{$total_messages_text} {$showing_messages_text}</div> {$copy_logs_button}"'.92
Category
Security
Occurrences
92
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<div>{$total_messages_text} {$showing_messages_text}</div> {$copy_logs_button}"'.

ERRORSecuritySetting is missing a sanitization callbackSanitization missing for register_setting().47
Category
Security
Occurrences
47
Severity
error

Sample message

Sanitization missing for register_setting().

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.14
Category
Maintainability
Occurrences
14
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().14
Category
Maintainability
Occurrences
14
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

ERRORI18nMissing Arg DomainMissing $domain parameter in function call to __().14
Category
I18n
Occurrences
14
Severity
error

Sample message

Missing $domain parameter in function call to __().

ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found $count_query10
Category
Security
Occurrences
10
Severity
error

Sample message

Use placeholders and $wpdb->prepare(); found $count_query

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;10
Category
Maintainability
Occurrences
10
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $column used in $wpdb->get_row()\n$column assigned unsafely at line 268.9
Category
Security
Occurrences
9
Severity
error

Sample message

Unescaped parameter $column used in $wpdb->get_row()\n$column assigned unsafely at line 268.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST[&#039;my_logo_upload_nonce&#039;]9
Category
Security
Occurrences
9
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST[&#039;my_logo_upload_nonce&#039;]

Show 15 more
WARNINGSecurityRequest data is not unslashed9
Category
Security
Occurrences
9
Severity
warning

Sample message

$_POST[&#039;my_logo_upload_nonce&#039;] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGSecurityInterpolated SQL is not prepared6
Category
Security
Occurrences
6
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable {$column} at \t\t\tWHERE {$column} LIKE %s\n

WARNINGMaintainabilityDynamic hook name6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$this-&gt;identifier . &#039;_cron_interval&#039;&quot;.

WARNINGMaintainabilityerror log var export4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

var_export() found. Debug code should not normally be used in production.

WARNINGMaintainabilityNon-prefixed hook name3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;cron_request&quot;.

WARNINGMaintainabilityNot In Footer3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.

WARNINGMaintainabilitytrademarked term3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "Chatbot with IBM watsonx Assistant" - contains the restricted term "watson" which cannot be used at all in your plugin name.

WARNINGMaintainabilityShort PHP open tag found2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Possible use of short open tags detected; found: &lt;? if (get_option(&#039;watsonconv_history_enab...

WARNINGMaintainabilityNon-prefixed class2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;WP_Async_Request&quot;.

WARNINGMaintainabilityerror log debug backtrace2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

debug_backtrace() found. Debug code should not normally be used in production.

WARNINGMaintainabilityMissing Version2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Resource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.

ERRORMaintainabilityGoto statement found1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

The "goto" language construct should not be used.

ERRORMaintainabilitydate date1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

WARNINGSecurityInput is not validated1
Category
Security
Occurrences
1
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_FILES[&#039;watsonconv_custom_logo&#039;][&#039;error&#039;]. Check that the array index exists before using it.

ERRORMaintainabilityparse url parse url1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.

External Connections

Potential connections found in static code analysis.

47 domains

Outbound calls

291

External assets

2

Incoming endpoints

7

Notable Domains

api.twilio.com169 · outbound
chat.twilio.com21 · outbound
accounts.twilio.com14 · outbound
php.net11 · outbound
creativecommons.org7 · outbound
twilio.com7 · outbound

Platform / Reference Domains

w3.org3 · platform/reference
github.com2 · platform/reference
wordpress.org1 · platform/reference

External Asset Domains

Incoming Endpoints

/wp-json/watsonconv/v1/get-logoREST

register_rest_route

/wp-json/watsonconv/v1/messageREST

register_rest_route

/wp-json/watsonconv/v1/test-emailREST

register_rest_route

/wp-json/watsonconv/v1/test-notificationREST

register_rest_route

/wp-json/watsonconv/v1/twilio-callREST

register_rest_route

/wp-json/watsonconv/v1/twilio-tokenREST

register_rest_route

Score History

First score snapshot

v0.9.1

33

Latest

Findings
407
Errors
324
Warnings
83
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

37 nodes

Related Plugins