REST API Helper

This plugin help REST API for display featured media source, author, categories, and custom fields.

v2.2.8JasmanXcrewUpdated Added 500 installs100% rating
39
Score
108
Errors
85
Warnings
+0
Change

Category Scores

Security0
Repo83
Performance100
Maintainability82

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

193 findings

Security

129

11 issue groups

I18n

48

3 issue groups

Maintainability

12

6 issue groups

Repo Compliance

4

4 issue groups

ERRORSecurityUnsafe printing functionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.39
Category
Security
Occurrences
39
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

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

Sample message

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

WARNINGSecurityRequest data is not unslashed$_POST['address_1'] not unslashed before sanitization. Use wp_unslash() or similar24
Category
Security
Occurrences
24
Severity
warning

Sample message

$_POST['address_1'] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_POST['address_1']. Check that the array index exists before using it.21
Category
Security
Occurrences
21
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_POST['address_1']. Check that the array index exists before using it.

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.15
Category
Security
Occurrences
15
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST['imh_onesignal_message']11
Category
Security
Occurrences
11
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST['imh_onesignal_message']

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$current_imh_option_custom_field_blacklist'.10
Category
Security
Occurrences
10
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$current_imh_option_custom_field_blacklist'.

ERRORMaintainabilitywp function not compatible with requires wpFunction "get_avatar_url()" requires WordPress 4.2.0, but your plugin minimum supported version is WordPress 4.0.0.7
Category
Maintainability
Occurrences
7
Severity
error

Sample message

Function "get_avatar_url()" requires WordPress 4.2.0, but your plugin minimum supported version is WordPress 4.0.0.

ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: "<h1>" . __("OneSignal Sender", "rest-api-helper") . "</h1>"6
Category
I18n
Occurrences
6
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: "<h1>" . __("OneSignal Sender", "rest-api-helper") . "</h1>"

WARNINGSecurityInput is not validated or sanitizedDetected usage of a non-sanitized, non-validated input variable _SERVER: &quot;Access-Control-Allow-Headers: {$_SERVER[&#039;HTTP_ACCESS_CONTROL_REQUEST_HEADERS&#039;]}&quot;4
Category
Security
Occurrences
4
Severity
warning

Sample message

Detected usage of a non-sanitized, non-validated input variable _SERVER: &quot;Access-Control-Allow-Headers: {$_SERVER[&#039;HTTP_ACCESS_CONTROL_REQUEST_HEADERS&#039;]}&quot;

Show 14 more
ERRORI18nText Domain Mismatch4
Category
I18n
Occurrences
4
Severity
error

Sample message

Mismatched text domain. Expected 'rest-api-helper' but got "imh-textdomain".

WARNINGSecurityNonce verification recommended2
Category
Security
Occurrences
2
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityDatabase parameter is not escaped1
Category
Security
Occurrences
1
Severity
warning

Sample message

Unescaped parameter $table used in $wpdb-&gt;get_results()\n$table assigned unsafely at line 1637.

WARNINGMaintainabilityDirect Query1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

WARNINGSecurityInterpolated SQL is not prepared1
Category
Security
Occurrences
1
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable $table at &quot;SELECT meta_key FROM `$table` WHERE `post_id`=%d&quot;

WARNINGMaintainabilityslow db query tax query1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Detected usage of tax_query, possible slow query.

WARNINGSecuritywp redirect wp redirect1
Category
Security
Occurrences
1
Severity
warning

Sample message

wp_redirect() found. Using wp_safe_redirect(), along with the &quot;allowed_redirect_hosts&quot; 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.

ERRORMaintainabilityDeprecated parameter: get_the_author parameter 11
Category
Maintainability
Occurrences
1
Severity
error

Sample message

The parameter "$_data["author"]" at position #1 of get_the_author() has been deprecated since WordPress version 2.1.0. Instead do not pass the parameter.

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

Sample message

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

ERRORRepo Complianceplugin header no license1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.

WARNINGRepo Compliancereadme parser warnings no short description present1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

The "Short Description" section is missing. An excerpt was generated from your main plugin description.

WARNINGRepo Compliancereadme parser warnings too many tags1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

One or more tags were ignored. Please limit your plugin to 5 tags.

ERRORMaintainabilitystable tag mismatch1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Mismatched Stable Tag: 2.2.4 != 2.2.8. Your Stable Tag is meant to be the stable version of your plugin and it needs to be exactly the same with the Version in your main plugin file's header. Any mismatch can prevent users from downloading the correct plugin files from WordPress.org.

External Connections

Potential connections found in static code analysis.

3 domains

Outbound calls

12

External assets

0

Incoming endpoints

4

Notable Domains

ihsana.net2 · outbound
onesignal.com2 · outbound

Platform / Reference Domains

codex.wordpress.org8 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

/wp-json/ima_wc/v2/categoriesREST

register_rest_route

/wp-json/ima_wc/v2/productsREST

register_rest_route

/wp-json/ima_wc/v2/products/(?P<id>[0-9]+)REST

register_rest_route

/wp-json/wp/v2/users/registerREST

register_rest_route

Score History

First score snapshot

v2.2.8

39

Latest

Findings
193
Errors
108
Warnings
85
Check
2.0.0

Relationship Map

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

31 nodes

Related Plugins

Export Media URLs

7k+ active installs

100
Export All URLs

50k+ active installs

99
Schema Default Image

800 active installs

96
WP-REST-API V2 Menus

3k+ active installs

96