Login as User

Login as User is a free WordPress plugin that helps admins switch user accounts instantly to check data.

v1.7.2Yiannis ChristodoulouUpdated Added 30k+ installs96% rating33% support resolved
36
Score
101
Errors
64
Warnings
+0
Change

Category Scores

Security0
Repo94
Performance100
Maintainability60

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

165 findings

Security

80

5 issue groups

Maintainability

45

11 issue groups

I18n

39

5 issue groups

Repo Compliance

1

1 issue group

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<style>{$css}</style>"'.41
Category
Security
Occurrences
41
Severity
error

Sample message

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

ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: $args['placeholder']21
Category
I18n
Occurrences
21
Severity
error

Sample message

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

WARNINGSecurityRecommendedProcessing form data without nonce verification.17
Category
Security
Occurrences
17
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNon Prefixed Hookname FoundHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;auth_cookie_expiration&quot;.12
Category
Maintainability
Occurrences
12
Severity
warning

Sample message

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

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_COOKIE[$auth_cookie_name]12
Category
Security
Occurrences
12
Severity
warning

Sample message

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

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

Sample message

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

ERRORMaintainabilityEcho FoundShort PHP opening tag used with echo; expected "<?php echo $active_subtab ..." but found "<?= $active_subtab ..."7
Category
Maintainability
Occurrences
7
Severity
error

Sample message

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

ERRORMaintainabilityNot AllowedUse of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead7
Category
Maintainability
Occurrences
7
Severity
error

Sample message

Use of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead

WARNINGSecurityMissing Unslash$_GET[&#039;back_url&#039;] not unslashed before sanitization. Use wp_unslash() or similar6
Category
Security
Occurrences
6
Severity
warning

Sample message

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

ERRORI18nMissing Translators CommentA 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.5
Category
I18n
Occurrences
5
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.

Show 12 more
WARNINGMaintainabilityNon Prefixed Function Found4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;activate_LoginAsUser&quot;.

WARNINGMaintainabilityerror log error log4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

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

WARNINGSecurityInput Not Validated4
Category
Security
Occurrences
4
Severity
warning

Sample message

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

ERRORMaintainabilityparse url parse url3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

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

ERRORMaintainabilityOffloaded Content2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

Found call to wp_enqueue_script() with external resource. Offloading scripts to your servers or any remote service is disallowed.

ERRORMaintainabilitystrip tags strip tags2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

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

WARNINGI18nNo Html Wrapped Strings2
Category
I18n
Occurrences
2
Severity
warning

Sample message

Translatable string should not be wrapped in HTML. Found: &#039;&lt;p style=&quot;color:red&quot;&gt;You have to navigate to the &lt;a href=&quot;users.php&quot;&gt;&lt;strong&gt;Users page&lt;/strong&gt;&lt;/a&gt; and then you will see a button with the name &quot;&lt;strong&gt;Login as: `username`&lt;/strong&gt;&quot;, at the right side of each username. If you click on this button you will login at the front-end of the website as this User.&lt;/p&gt;&#039;

ERRORMaintainabilitymissing direct file access protection2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

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

WARNINGI18nload plugin textdomain Found1
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.

WARNINGMaintainabilityNon Prefixed Class Found1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

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

WARNINGMaintainabilityMissing Version1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

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

ERRORRepo Compliancelicense mismatch1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Your plugin has a different license declared in the readme file and plugin header. Please update your readme with a valid GPL license identifier.

Score History

First score snapshot

v1.7.2

36

Latest

Findings
165
Errors
101
Warnings
64
Check
2.0.0

Related Plugins

Login Security Captcha

10k+ active installs

100
PufferDesk

0 active installs

100
Simple Login Log

5k+ active installs

100
Simply Show Hooks

2k+ active installs

100
Customize Admin

4k+ active installs

99
99