Swiftype Site Search Plugin for WordPress

Fast, intelligent, and fully customizable search for your site.

v2.0.5matthewtyrileyUpdated Added 400 installs74% rating
34
Score
250
Errors
50
Warnings
+0
Change

Category Scores

Security0
Repo86
Performance100
Maintainability55

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

300 findings

Security

128

7 issue groups

I18n

92

2 issue groups

Maintainability

77

12 issue groups

Repo Compliance

3

3 issue groups

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not find $testsDir/includes/functions.php, have you run bin/install-wp-tests.sh ?"'.100
Category
Security
Occurrences
100
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not find $testsDir/includes/functions.php, have you run bin/install-wp-tests.sh ?"'.

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

Sample message

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

ERRORMaintainabilityShort PHP open tag foundShort PHP opening tag used with echo; expected "<?php echo $this ..." but found "<?= $this ..."36
Category
Maintainability
Occurrences
36
Severity
error

Sample message

Short PHP opening tag used with echo; expected "<?php echo $this ..." but found "<?= $this ..."

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$allowedPostTypes&quot;.14
Category
Maintainability
Occurrences
14
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$allowedPostTypes&quot;.

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

Sample message

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

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.9
Category
Security
Occurrences
9
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityRequest data is not unslashed$_GET[&#039;st-filter-&#039; . $field] not unslashed before sanitization. Use wp_unslash() or similar8
Category
Security
Occurrences
8
Severity
warning

Sample message

$_GET[&#039;st-filter-&#039; . $field] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_GET[&#039;st-filter-&#039; . $filterField]5
Category
Security
Occurrences
5
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET[&#039;st-filter-&#039; . $filterField]

WARNINGMaintainabilityMissing VersionResource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Resource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_POST[&#039;api_key&#039;]. Check that the array index exists before using it.3
Category
Security
Occurrences
3
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_POST[&#039;api_key&#039;]. Check that the array index exists before using it.

Show 14 more
ERRORMaintainabilityapplication detected3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

Application files are not permitted.

ERRORSecurityUnsafe printing function2
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'.

WARNINGMaintainabilityNo PHP code found1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.

WARNINGMaintainabilityNon-prefixed function1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;_manually_load_plugin&quot;.

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.

WARNINGMaintainabilityNot In Footer1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.

ERRORI18nSingle Underscore Get Text Function1
Category
I18n
Occurrences
1
Severity
error

Sample message

Found single-underscore "_()" function when double-underscore expected.

ERRORMaintainabilitylibrary core files1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Library files that are already in the WordPress core are not permitted.

WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "Swiftype Site Search Plugin for Wordpress" is different from the name declared in plugin header "Swiftype Search".

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

Sample message

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

WARNINGMaintainabilitytrademarked term1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "Swiftype Site Search Plugin for Wordpress" - contains the restricted term "plugin" which cannot be used at all in your plugin name.

ERRORMaintainabilitywp function not compatible with requires wp1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

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

External Connections

Potential connections found in static code analysis.

34 domains

Outbound calls

177

External assets

0

Incoming endpoints

4

Notable Domains

swiftype.com37 · outbound
apache.org29 · outbound
bugs.jquery.com6 · outbound
app.swiftype.com5 · outbound
api.swiftype.com4 · outbound
bar.com4 · outbound

Platform / Reference Domains

w3.org24 · platform/reference
github.com5 · platform/reference
dev.w3.org2 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

No public endpoints detected.

Admin AJAX endpoints4
wp_ajax_check_engine_existsauthenticated

wp_ajax

wp_ajax_delete_batch_of_trashed_postsauthenticated

wp_ajax

wp_ajax_index_batch_of_postsauthenticated

wp_ajax

wp_ajax_update_facet_configauthenticated

wp_ajax

Score History

First score snapshot

v2.0.5

34

Latest

Findings
300
Errors
250
Warnings
50
Check
2.0.0

Relationship Map

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

37 nodes

Related Plugins

Disable Search

40k+ active installs

99
Search Analytics for WP

3k+ active installs

99
Voice Search

600 active installs

99
WPCasa Advanced Search

700 active installs

99