Relevanssi – A Better Search

Relevanssi replaces the default search with a partial-match search that sorts results by relevance. It also indexes comments and shortcode content.

v4.27.1Christoph VielgraderUpdated Added 100k+ installs96% rating60% support resolved
32
Score
86
Errors
266
Warnings
+0
Change

Category Scores

Security0
Repo100
Performance100
Maintainability37

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

352 findings

Maintainability

231

13 issue groups

Security

113

4 issue groups

I18n

8

2 issue groups

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

Sample message

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

WARNINGSecurityUnescaped DBParameterUnescaped parameter $data_query used in $wpdb->get_results()\n$data_query assigned unsafely at line 67.65
Category
Security
Occurrences
65
Severity
warning

Sample message

Unescaped parameter $data_query used in $wpdb->get_results()\n$data_query assigned unsafely at line 67.

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.61
Category
Maintainability
Occurrences
61
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().57
Category
Maintainability
Occurrences
57
Severity
warning

Sample message

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

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_COOKIE['wp-postpass_' . COOKIEHASH]21
Category
Security
Occurrences
21
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_COOKIE['wp-postpass_' . COOKIEHASH]

WARNINGMaintainabilityNon Prefixed Hookname FoundHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "post_password_required".19
Category
Maintainability
Occurrences
19
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "post_password_required".

WARNINGSecurityMissing Unslash$_POST['args'] not unslashed before sanitization. Use wp_unslash() or similar19
Category
Security
Occurrences
19
Severity
warning

Sample message

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

WARNINGSecurityInput Not ValidatedDetected usage of a possibly undefined superglobal array index: $_POST['completed']. Check that the array index exists before using it.8
Category
Security
Occurrences
8
Severity
warning

Sample message

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

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

Sample message

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

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

Sample message

Function "get_post_parent()" requires WordPress 5.7.0, but your plugin minimum supported version is WordPress 4.9.0.

Show 9 more
WARNINGMaintainabilitySchema Change4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Attempting a database schema change is discouraged.

ERRORMaintainabilityNot Allowed3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

Use of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead

WARNINGMaintainabilityNon Prefixed Function Found3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

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

WARNINGMaintainabilityNon Prefixed Variable Found3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

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

WARNINGMaintainabilityslow db query meta query2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Detected usage of meta_query, possible slow query.

WARNINGMaintainabilityslow db query tax query2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Detected usage of tax_query, possible slow query.

WARNINGI18nload plugin textdomain Found1
Category
I18n
Occurrences
1
Severity
warning

Sample message

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.

ERRORMaintainabilityOffloaded Content1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Found call to wp_enqueue_script() with external resource. Offloading scripts to your servers or any remote service is disallowed.

WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "Relevanssi - A Better Search" is different from the name declared in plugin header "Relevanssi".

Score History

First score snapshot

v4.27.1

32

Latest

Findings
352
Errors
86
Warnings
266
Check
2.0.0

Related Plugins