Robots.txt for WordPress
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Security
10
3 issue groups
Maintainability
5
3 issue groups
I18n
1
1 issue group
Repo Compliance
1
1 issue group
WARNINGSecurityInput Not Validated Not SanitizedDetected usage of a non-sanitized, non-validated input variable _SERVER: "{$_SERVER['DOCUMENT_ROOT']}/robots.txt"6
- Category
- Security
- Occurrences
- 6
- Severity
- warning
Sample message
Detected usage of a non-sanitized, non-validated input variable _SERVER: "{$_SERVER['DOCUMENT_ROOT']}/robots.txt"
ERRORMaintainabilityEcho FoundShort PHP opening tag used with echo; expected "<?php echo $robotsUrl ..." but found "<?= $robotsUrl ..."2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- error
Sample message
Short PHP opening tag used with echo; expected "<?php echo $robotsUrl ..." but found "<?= $robotsUrl ..."
ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$robotsUrl'.2
- Category
- Security
- Occurrences
- 2
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$robotsUrl'.
ERRORSecurityUnsafe Printing FunctionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.2
- Category
- Security
- Occurrences
- 2
- Severity
- error
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
ERRORMaintainabilityrename renamerename() is discouraged. Use WP_Filesystem::move() to rename a file.2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- error
Sample message
rename() is discouraged. Use WP_Filesystem::move() to rename a file.
WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$robotsUrl".1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$robotsUrl".
ERRORI18nNo Empty StringsThe $text text string should have translatable content. Found: ''1
- Category
- I18n
- Occurrences
- 1
- Severity
- error
Sample message
The $text text string should have translatable content. Found: ''
ERRORRepo Complianceoutdated tested upto headerTested up to: 5.6 < 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: 5.6 < 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.
Score History
First score snapshot
v1.1.4
72
Latest
- Findings
- 17
- Errors
- 10
- Warnings
- 7
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 72 | 17 | 10 | 7 | v1.1.4 | 2.0.0 |