Grid/List View for WooCommerce

Simple plugin for WooCommerce which toggle grid / list view of your products and toggle products count per page.

v3.0.8.4BeRocketUpdated Added 2k+ installs88% rating
24
Score
1,127
Errors
543
Warnings
+0
Change

Category Scores

Security0
Repo94
Performance98
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

1,670 findings

Security

819

7 issue groups

I18n

435

4 issue groups

Maintainability

384

14 issue groups

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"&utm_term={$cur_plugin->info['plugin_sku']}' target='_blank'>"'.496
Category
Security
Occurrences
496
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"&utm_term={$cur_plugin->info['plugin_sku']}' target='_blank'>"'.

ERRORI18nText Domain MismatchMismatched text domain. Expected 'gridlist-view-for-woocommerce' but got "BeRocket_LGV_domain".410
Category
I18n
Occurrences
410
Severity
error

Sample message

Mismatched text domain. Expected 'gridlist-view-for-woocommerce' but got "BeRocket_LGV_domain".

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$banner".159
Category
Maintainability
Occurrences
159
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$banner".

ERRORSecurityUnsafe printing functionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.75
Category
Security
Occurrences
75
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

WARNINGSecurityRequest data is not unslashed$_COOKIE['br_lgv_stat'] not unslashed before sanitization. Use wp_unslash() or similar71
Category
Security
Occurrences
71
Severity
warning

Sample message

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

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.61
Category
Security
Occurrences
61
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_COOKIE['br_lgv_stat']59
Category
Security
Occurrences
59
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_COOKIE['br_lgv_stat']

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

Sample message

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

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "br_lgv_after_list_grid_buttons".40
Category
Maintainability
Occurrences
40
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "br_lgv_after_list_grid_buttons".

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.35
Category
Security
Occurrences
35
Severity
warning

Sample message

Processing form data without nonce verification.

Show 15 more
WARNINGMaintainabilityNon-prefixed function33
Category
Maintainability
Occurrences
33
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "BR_woocommerce_json_search_found_products".

ERRORMaintainabilityShort PHP open tag found24
Category
Maintainability
Occurrences
24
Severity
error

Sample message

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

WARNINGSecurityInput is not validated22
Category
Security
Occurrences
22
Severity
warning

Sample message

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

ERRORI18nMissing Arg Domain16
Category
I18n
Occurrences
16
Severity
error

Sample message

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

WARNINGMaintainabilityMissing Version14
Category
Maintainability
Occurrences
14
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.

WARNINGMaintainabilityDynamic hook name13
Category
Maintainability
Occurrences
13
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$hook_name . &#039;_check_type_&#039; . $condition[&#039;type&#039;]&quot;.

ERRORMaintainabilityOffloaded Content10
Category
Maintainability
Occurrences
10
Severity
error

Sample message

Offloading images, js, css, and other scripts to your servers or any remote service is disallowed.

ERRORMaintainabilitystrip tags strip tags10
Category
Maintainability
Occurrences
10
Severity
error

Sample message

strip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead.

WARNINGMaintainabilityNot In Footer10
Category
Maintainability
Occurrences
10
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.

ERRORMaintainabilityrand rand8
Category
Maintainability
Occurrences
8
Severity
error

Sample message

rand() is discouraged. Use the far less predictable wp_rand() instead.

ERRORMaintainabilitydate date5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

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

ERRORI18nNon Singular String Literal Text5
Category
I18n
Occurrences
5
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: $feature['label']

WARNINGMaintainabilityNon-prefixed class4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

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

WARNINGMaintainabilityNon-prefixed constant4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

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

ERRORI18nMissing Translators Comment4
Category
I18n
Occurrences
4
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

Score History

First score snapshot

v3.0.8.4

24

Latest

Findings
1,670
Errors
1,127
Warnings
543
Check
2.0.0

Related Plugins

Dark Mode Toggle

2k+ active installs

100
Layout Grid Block

200k+ active installs

98
Parent Category Toggler

10k+ active installs

91
Accordion Toggle

2k+ active installs

82