WordPress REST API (Version 2)

Access your site's data through an easy-to-use HTTP REST API. (Version 2)

v2.0-beta15Ryan McCueUpdated Added 10k+ installs84% rating
82
Score
476
Errors
13
Warnings
+0
Change

Category Scores

Security89
Repo91
Performance91
Maintainability51

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

489 findings

I18n

399

3 issue groups

Maintainability

79

10 issue groups

Performance

8

2 issue groups

Repo Compliance

2

2 issue groups

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

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wpFunction "get_registered_settings()" requires WordPress 4.7.0, but your plugin minimum supported version is WordPress 4.6.0.67
Category
Maintainability
Occurrences
67
Severity
error

Sample message

Function "get_registered_settings()" requires WordPress 4.7.0, but your plugin minimum supported version is WordPress 4.6.0.

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.34
Category
I18n
Occurrences
34
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.

ERRORI18nUnordered Placeholders TextMultiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$d", but got "%s, %d" in '%s must be greater than %d (exclusive)'.12
Category
I18n
Occurrences
12
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$d", but got "%s, %d" in '%s must be greater than %d (exclusive)'.

WARNINGPerformancePost Not In excludeUsing exclusionary parameters, like exclude, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.6
Category
Performance
Occurrences
6
Severity
warning

Sample message

Using exclusionary parameters, like exclude, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

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

WARNINGPerformancePost Not In post not inUsing exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.2
Category
Performance
Occurrences
2
Severity
warning

Sample message

Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.

WARNINGMaintainabilitytrademarked termThe plugin name includes a restricted term. Your chosen plugin name - "WP REST API" - contains the restricted term "wp" which cannot be used at all in your plugin name.2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "WP REST API" - contains the restricted term "wp" which cannot be used at all in your plugin name.

ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.1
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 '__'.

Show 8 more
ERRORMaintainabilityfile system operations fclose1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose().

ERRORMaintainabilityfile system operations fopen1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen().

ERRORMaintainabilityfile system operations fwrite1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fwrite().

ERRORMaintainabilityDeprecated parameter: get_terms parameter 21
Category
Maintainability
Occurrences
1
Severity
error

Sample message

The parameter "$prepared_args" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.

WARNINGMaintainabilityDeprecated parameter: wp_count_terms parameter 21
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The parameter "$count_args" at position #2 of wp_count_terms() has been deprecated since WordPress version 5.6.0. Instead do not pass the parameter.

WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "WordPress REST API (Version 2)" is different from the name declared in plugin header "WP REST API".

ERRORRepo Complianceoutdated tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 4.7 < 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.

WARNINGRepo Compliancereadme parser warnings trimmed section changelog1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

The "Changelog" section is too long and was truncated. A maximum of 5000 characters is supported.

External Connections

Not analyzed yet.

Score History

First score snapshot

v2.0-beta15

82

Latest

Findings
489
Errors
476
Warnings
13
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

28 nodes

Related Plugins

Logged-in-only

700 active installs

100
Disable Gutenberg Autosave

2k+ active installs

99
Export All URLs

50k+ active installs

99
99