Login as User is a free WordPress plugin that helps admins switch user accounts instantly to check data.
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
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: "auth_cookie_expiration".12
- Category
- Maintainability
- Occurrences
- 12
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "auth_cookie_expiration".
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['back_url'] not unslashed before sanitization. Use wp_unslash() or similar6
- Category
- Security
- Occurrences
- 6
- Severity
- warning
Sample message
$_GET['back_url'] 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 moreShow less
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: "activate_LoginAsUser".
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['HTTP_HOST']. 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: '<p style="color:red">You have to navigate to the <a href="users.php"><strong>Users page</strong></a> and then you will see a button with the name "<strong>Login as: `username`</strong>", 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.</p>'
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: "w357LoginAsUser".
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
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 36 | 165 | 101 | 64 | v1.7.2 | 2.0.0 |