Yektanet Ecommerce plugin to integrate with yektanet advertising system
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
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['_yngt']. 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['_yngt']. Check that the array index exists before using it.
WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb->prepare(); found interpolated variable $limit at "SELECT COUNT(product_id) as count_val, product_id, last_updated_time FROM {$wpdb->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"14
- Category
- Security
- Occurrences
- 14
- Severity
- warning
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $limit at "SELECT COUNT(product_id) as count_val, product_id, last_updated_time FROM {$wpdb->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"
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['_nonce']6
- Category
- Security
- Occurrences
- 6
- Severity
- warning
Sample message
Detected usage of a non-sanitized input variable: $_POST['_nonce']
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 moreShow less
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: "$plugin_dir_path".
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: "active_plugins".
WARNINGSecurityDatabase parameter is not escaped1
- Category
- Security
- Occurrences
- 1
- Severity
- warning
Sample message
Unescaped parameter $table used in $wpdb->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: "count_of_products_to_show_in_charts".
WARNINGSecuritywp redirect wp redirect1
- Category
- Security
- Occurrences
- 1
- Severity
- warning
Sample message
wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" 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.
Outbound calls
11
External assets
4
Incoming endpoints
2
Notable Domains
Platform / Reference Domains
External Asset Domains
Incoming Endpoints
wp_ajax
Admin AJAX endpoints1
wp_ajax
Score History
First score snapshot
v1.1.6
40
Latest
- Findings
- 148
- Errors
- 45
- Warnings
- 103
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 40 | 148 | 45 | 103 | v1.1.6 | 2.0.0 |
Relationship Map
Author, categories, issues, domains, and nearby plugins.