Require Login for WooCommerce

Set the WooCommerce Shop only for logged-in users. Just activate the plugin.

v1.4.1Ramon AhnertUpdated Added 2k+ installs100% rating
35
Score
10
Errors
6
Warnings
+0
Change

Category Scores

Security89
Repo81
Performance100
Maintainability89

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

16 findings

Maintainability

9

5 issue groups

I18n

3

3 issue groups

Supply Chain

2

1 issue group

Security

1

1 issue group

ERRORMaintainabilitywp function not compatible with requires wpFunction "register_rest_route()" requires WordPress 4.4.0, but your plugin minimum supported version is WordPress 3.0.1.4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

Function "register_rest_route()" requires WordPress 4.4.0, but your plugin minimum supported version is WordPress 3.0.1.

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "redirect_after_login".2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

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

ERRORSupply ChainHidden files includedHidden files are not permitted.2
Category
Supply Chain
Occurrences
2
Severity
error

Sample message

Hidden files are not permitted.

WARNINGI18nDiscouraged text-domain loadingload_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.1
Category
I18n
Occurrences
1
Severity
warning

Sample message

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.

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

Sample message

Sanitization missing for register_setting().

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

Sample message

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

ERRORI18nText Domain MismatchMismatched text domain. Expected 'woo-for-logged-users' but got 'woo-for-logged-in-users'.1
Category
I18n
Occurrences
1
Severity
error

Sample message

Mismatched text domain. Expected 'woo-for-logged-users' but got 'woo-for-logged-in-users'.

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

Sample message

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

ERRORRepo Complianceoutdated tested upto headerTested up to: 6.8 < 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.1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 6.8 < 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.

WARNINGI18ntextdomain mismatchThe "Text Domain" header in the plugin file does not match the slug. Found "woo-for-logged-in-users", expected "woo-for-logged-users".1
Category
I18n
Occurrences
1
Severity
warning

Sample message

The "Text Domain" header in the plugin file does not match the slug. Found "woo-for-logged-in-users", expected "woo-for-logged-users".

Show 1 more
WARNINGMaintainabilitytrademarked term1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The plugin slug includes a restricted term. Your plugin slug - "woo-for-logged-users" - contains the restricted term "woo" and cannot be used to begin your plugin slug. We disallow the use of certain terms in ways that are abused, or potentially infringe on and/or are misleading with regards to trademarks. You may use the term "woo" elsewhere in your plugin slug, such as "... for woo".

External Connections

Not analyzed yet.

Score History

First score snapshot

v1.4.1

35

Latest

Findings
16
Errors
10
Warnings
6
Check
2.0.0

Relationship Map

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

29 nodes

Related Plugins