Robots.txt for WordPress
Category Scores
Top Issues by Category
security10
maintainability5
repo_compliance1
Issues Details
17 issues found in latest scan
Detected usage of a non-sanitized, non-validated input variable _SERVER: "{$_SERVER['DOCUMENT_ROOT']}/robots.txt"
Short PHP opening tag used with echo; expected "<?php echo $robotsUrl ..." but found "<?= $robotsUrl ..."
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$robotsUrl'.
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
rename() is discouraged. Use WP_Filesystem::move() to rename a file.
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$robotsUrl".
The $text text string should have translatable content. Found: ''
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.
| Code | Type | Message | Count |
|---|---|---|---|
| WordPress.Security.ValidatedSanitizedInput.InputNotValidatedNotSanitized | WARNING | Detected usage of a non-sanitized, non-validated input variable _SERVER: "{$_SERVER['DOCUMENT_ROOT']}/robots.txt" | 6 |
| Generic.PHP.DisallowShortOpenTag.EchoFound | ERROR | Short PHP opening tag used with echo; expected "<?php echo $robotsUrl ..." but found "<?= $robotsUrl ..." | 2 |
| WordPress.Security.EscapeOutput.OutputNotEscaped | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$robotsUrl'. | 2 |
| WordPress.Security.EscapeOutput.UnsafePrintingFunction | ERROR | All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. | 2 |
| WordPress.WP.AlternativeFunctions.rename_rename | ERROR | rename() is discouraged. Use WP_Filesystem::move() to rename a file. | 2 |
| WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound | WARNING | Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$robotsUrl". | 1 |
| WordPress.WP.I18n.NoEmptyStrings | ERROR | The $text text string should have translatable content. Found: '' | 1 |
| outdated_tested_upto_header | ERROR | 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. | 1 |
Latest Snapshot
Findings
17
Errors
10
Warnings
7
Score History
First score snapshot
First scan completed Jun 20, 2026
v1.1.4 · Plugin Check 2.0.0 · Model 2026.06-mvp-static-v2
Jun 20, 2026
v1.1.4
72
Latest
- Findings
- 17
- Errors
- 10
- Warnings
- 7
- Plugin Check
- 2.0.0
- Model
- 2026.06-mvp-static-v2
| Scan | Score | Findings | Errors | Warnings | Plugin | Plugin Check | Model |
|---|---|---|---|---|---|---|---|
| Jun 20, 2026Latest | 72 | 17 | 10 | 7 | v1.1.4 | 2.0.0 | 2026.06-mvp-static-v2 |