AMP for WP is the most recommended AMP plugin by the community. Automatically add Accelerated Mobile Pages (Google AMP Project) functionality on your …
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Maintainability
3,039
15 issue groups
Security
17
7 issue groups
Repo Compliance
1
1 issue group
WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$$this".2,012
- Category
- Maintainability
- Occurrences
- 2,012
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$$this".
ERRORMaintainabilitywp function not compatible with requires wpFunction "_doing_it_wrong()" requires WordPress 3.1.0, but your plugin minimum supported version is WordPress 3.0.0.637
- Category
- Maintainability
- Occurrences
- 637
- Severity
- error
Sample message
Function "_doing_it_wrong()" requires WordPress 3.1.0, but your plugin minimum supported version is WordPress 3.0.0.
WARNINGMaintainabilityNon Prefixed Hookname FoundHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "aal_filter_output".217
- Category
- Maintainability
- Occurrences
- 217
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "aal_filter_output".
WARNINGMaintainabilityNon Prefixed Function FoundFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "AMP_for_WP_QueryStringAllowed_for_AIOSEO_Plugin".124
- Category
- Maintainability
- Occurrences
- 124
- Severity
- warning
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "AMP_for_WP_QueryStringAllowed_for_AIOSEO_Plugin".
ERRORMaintainabilitymissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;15
- Category
- Maintainability
- Occurrences
- 15
- Severity
- error
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
WARNINGMaintainabilityNon Prefixed Constant FoundGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "AMPFROWP_HOST_NAME".10
- Category
- Maintainability
- Occurrences
- 10
- Severity
- warning
Sample message
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "AMPFROWP_HOST_NAME".
WARNINGMaintainabilityNon Prefixed Class FoundClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "AMP_Base_Embed_Handler".9
- Category
- Maintainability
- Occurrences
- 9
- Severity
- warning
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "AMP_Base_Embed_Handler".
WARNINGSecuritywp redirect wp redirectwp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.6
- Category
- Security
- Occurrences
- 6
- Severity
- warning
Sample message
wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.
WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_POST['verify_nonce']5
- Category
- Security
- Occurrences
- 5
- Severity
- warning
Sample message
Detected usage of a non-sanitized input variable: $_POST['verify_nonce']
WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- warning
Sample message
Use of a direct database call is discouraged.
Show 13 moreShow less
WARNINGMaintainabilityNo Caching4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- warning
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
WARNINGMaintainabilityABSPATHDetected2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- warning
Sample message
Writing files using ABSPATH may be problematic. Consider using wp_upload_dir() instead if storing user data or generated files.
WARNINGSecurityRecommended2
- Category
- Security
- Occurrences
- 2
- Severity
- warning
Sample message
Processing form data without nonce verification.
ERRORMaintainabilityFound1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- error
Sample message
The use of function _cleanup_header_comment() is forbidden
WARNINGSecurityInterpolated Not Prepared1
- Category
- Security
- Occurrences
- 1
- Severity
- warning
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $values_sql at "INSERT INTO {$wpdb->postmeta} (post_id, meta_key, meta_value) VALUES $values_sql"
ERRORSecurityNot Prepared1
- Category
- Security
- Occurrences
- 1
- Severity
- error
Sample message
Use placeholders and $wpdb->prepare(); found $sql
ERRORSecurityOutput Not Escaped1
- Category
- Security
- Occurrences
- 1
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$privacy'.
WARNINGSecurityMissing Unslash1
- Category
- Security
- Occurrences
- 1
- Severity
- warning
Sample message
$_POST['verify_nonce'] not unslashed before sanitization. Use wp_unslash() or similar
WARNINGMaintainabilitywp targeted link rel Found1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
wp_targeted_link_rel() has been deprecated since WordPress version 6.7.0.
ERRORMaintainabilityfive star reviews detected1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- error
Sample message
Linking directly to 5 stars reviews is not allowed.
WARNINGMaintainabilitymismatched plugin name1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Plugin name "AMP for WP - Accelerated Mobile Pages" is different from the name declared in plugin header "Accelerated Mobile Pages".
WARNINGRepo Compliancereadme parser warnings trimmed short description1
- Category
- Repo Compliance
- Occurrences
- 1
- Severity
- warning
Sample message
The "Short Description" section is too long and was truncated. A maximum of 150 characters is supported.
WARNINGMaintainabilitytrademarked term1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
The plugin name includes a restricted term. Your chosen plugin name - "AMP for WP - Accelerated Mobile Pages" - contains the restricted term "wp" which cannot be used at all in your plugin name.
Score History
First score snapshot
v1.1.14
41
Latest
- Findings
- 3,057
- Errors
- 656
- Warnings
- 2,401
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 41 | 3,057 | 656 | 2,401 | v1.1.14 | 2.0.0 |