Yektanet Ecommerce

Yektanet Ecommerce plugin to integrate with yektanet advertising system

v1.1.6ynproductUpdated Added 1k+ installs100% rating
40
Score
45
Errors
103
Warnings
+0
Change

Category Scores

Security0
Repo94
Performance100
Maintainability78

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

148 findings

Security

110

9 issue groups

Maintainability

36

9 issue groups

I18n

1

1 issue group

Repo Compliance

1

1 issue group

WARNINGSecurityRequest data is not unslashed$_COOKIE['_yngt'] not unslashed before sanitization. Use wp_unslash() or similar28
Category
Security
Occurrences
28
Severity
warning

Sample message

$_COOKIE['_yngt'] not unslashed before sanitization. Use wp_unslash() or similar

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<h4 class='yektanet__setting__error__text'>$error_text</h4>"'.27
Category
Security
Occurrences
27
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<h4 class='yektanet__setting__error__text'>$error_text</h4>"'.

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_COOKIE[&#039;_yngt&#039;]. Check that the array index exists before using it.25
Category
Security
Occurrences
25
Severity
warning

Sample message

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

WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb-&gt;prepare(); found interpolated variable $limit at &quot;SELECT COUNT(product_id) as count_val, product_id, last_updated_time FROM {$wpdb-&gt;prefix}yektanet_products_views WHERE last_updated_time between $one_day and $now_date GROUP by product_id order by count_val DESC limit $limit&quot;14
Category
Security
Occurrences
14
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable $limit at &quot;SELECT COUNT(product_id) as count_val, product_id, last_updated_time FROM {$wpdb-&gt;prefix}yektanet_products_views WHERE last_updated_time between $one_day and $now_date GROUP by product_id order by count_val DESC limit $limit&quot;

ERRORMaintainabilityShort PHP open tag foundShort PHP opening tag used with echo; expected "<?php echo $titles ..." but found "<?= $titles ..."12
Category
Maintainability
Occurrences
12
Severity
error

Sample message

Short PHP opening tag used with echo; expected "<?php echo $titles ..." but found "<?= $titles ..."

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

Sample message

Use of a direct database call is discouraged.

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

Sample message

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

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

Sample message

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

WARNINGMaintainabilityNot In FooterIn 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.5
Category
Maintainability
Occurrences
5
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.

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $one_day used in $wpdb->get_results()\n$one_day assigned unsafely at line 81.4
Category
Security
Occurrences
4
Severity
error

Sample message

Unescaped parameter $one_day used in $wpdb->get_results()\n$one_day assigned unsafely at line 81.

Show 10 more
WARNINGSecurityMissing nonce verification4
Category
Security
Occurrences
4
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNon-prefixed global variable3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$plugin_dir_path&quot;.

WARNINGMaintainabilityNon-prefixed hook name2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

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

WARNINGSecurityDatabase parameter is not escaped1
Category
Security
Occurrences
1
Severity
warning

Sample message

Unescaped parameter $table used in $wpdb-&gt;query()\n$table assigned unsafely at line 46.

WARNINGMaintainabilityslow db query meta key1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Detected usage of meta_key, possible slow query.

WARNINGMaintainabilityNon-prefixed constant1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;count_of_products_to_show_in_charts&quot;.

WARNINGSecuritywp redirect wp redirect1
Category
Security
Occurrences
1
Severity
warning

Sample message

wp_redirect() found. Using wp_safe_redirect(), along with the &quot;allowed_redirect_hosts&quot; filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.

WARNINGMaintainabilityMissing Version1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

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

ERRORI18nMissing Arg Domain1
Category
I18n
Occurrences
1
Severity
error

Sample message

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

ERRORRepo Complianceoutdated tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 6.3 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

External Connections

Potential connections found in static code analysis.

6 domains

Outbound calls

11

External assets

4

Incoming endpoints

2

Notable Domains

yektanet.com3 · outbound
87.247.185.1502 · outbound
cdn.yektanet.com2 · outbound
ua.yektanet.com2 · outbound

Platform / Reference Domains

gnu.org2 · platform/reference

External Asset Domains

Incoming Endpoints

wp_ajax_nopriv_yektanet_change_timeframe_ajaxpublic

wp_ajax

Admin AJAX endpoints1
wp_ajax_yektanet_change_timeframe_ajaxauthenticated

wp_ajax

Score History

First score snapshot

v1.1.6

40

Latest

Findings
148
Errors
45
Warnings
103
Check
2.0.0

Relationship Map

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

29 nodes

Related Plugins