YARPP – Yet Another Related Posts Plugin

yet-another-related-posts-plugin

The best WordPress plugin for displaying related posts. Simple and flexible, with a powerful proven algorithm and inbuilt caching.

C
64%
Version Opdateret 7,956,366+ downloads 100,000+ aktive installationer Forfatter: YARPP Kilde: wordpress.org WordPress.org

Score breakdown

C Compatibility
C php-compatibility
A coding-standards
F wp-since

Plugin has not been updated in over a year; Plugin has not been tested with the current WordPress version.

Kræver WordPress 3.7 eller nyere
Testet op til 6.7.5 Forældet
Kræver PHP 5.3 eller nyere
Sidst opdateret Forældet
Plugin-afhængigheder Ingen
WP–PHP compatibility ok PHP 5.3+ is compatible with WP 3.7+ (which requires PHP 5.2.4+).
20%
Ok
Declared PHP
5.3+ (plugin header)
Detected PHP
5.6+

Declared PHP 5.3+ is below the effective minimum (5.6+) — incorrect declaration. Effective minimum: PHP 5.6+.

Tested versions
PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.2 PHP 7.3 PHP 7.4 PHP 8.0 PHP 8.1 PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5

Lowest required PHP version: 5.6

Analysed on

The coding standards scan found 36 error(s) and 110 warning(s), but the weighted issue density is only 4.47 per 100 non-empty PHP lines across 7195 lines.

36
errors
110
warnings
14
files with issues
53
files scanned
4.47
issues / 100 lines

Detected 36 error(s) and 110 warning(s) across 14 file(s) with issues, with a weighted density of 4.47 per 100 non-empty PHP lines.

Issues by rule

WordPress.Security.ValidatedSanitizedInput.MissingUnslash 33
WordPress.Security.ValidatedSanitizedInput.InputNotSanitized 30
WordPress.DB.PreparedSQL.NotPrepared 27
WordPress.Security.NonceVerification.Recommended 16
WordPress.Security.ValidatedSanitizedInput.InputNotValidated 15
WordPress.DB.PreparedSQL.InterpolatedNotPrepared 11
WordPress.WP.DiscouragedConstants.STYLESHEETPATHUsageFound 3
WordPress.PHP.DevelopmentFunctions.error_log_error_log 2
WordPress.WP.AlternativeFunctions.strip_tags_strip_tags 2
WordPress.WP.DeprecatedParameters.Get_termsParam2Found 2
PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound 1
WordPress.DB.PreparedSQLPlaceholders.QuotedSimplePlaceholder 1
WordPress.PHP.DevelopmentFunctions.error_log_print_r 1
WordPress.WP.AlternativeFunctions.file_system_operations_is_writable 1
WordPress.WP.DiscouragedFunctions.query_posts_query_posts 1

Issues 25

  • warning
    Use placeholders and $wpdb->prepare(); found interpolated variable {$recent_unit} at " AND post_date > date_sub(now(), INTERVAL %d {$recent_unit}) "
    WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Bypass.php line 64:6
  • error
    Use placeholders and $wpdb->prepare(); found $this
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Bypass.php line 133:49
  • error
    Use placeholders and $wpdb->prepare(); found sql
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Bypass.php line 133:56
  • error
    Use placeholders and $wpdb->prepare(); found $reference_ID
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Bypass.php line 133:61
  • error
    Use placeholders and $wpdb->prepare(); found $args
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Bypass.php line 133:76
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_DB_Schema.php line 140:72
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_DB_Schema.php line 166:53
  • warning
    Use placeholders and $wpdb->prepare(); found interpolated variable $charset_collate at \t\t\t)$charset_collate;"
    WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    yet-another-related-posts-plugin/classes/YARPP_DB_Schema.php line 174:1
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 30:38
  • warning
    Use placeholders and $wpdb->prepare(); found interpolated variable $old_keywords_table at "drop table if exists `$old_keywords_table`"
    WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 48:18
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 57:34
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 68:35
  • warning
    Use placeholders and $wpdb->prepare(); found interpolated variable {$threshold} at \t\t\tHAVING sum(score) > {$threshold}"
    WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 92:1
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 224:49
  • error
    Use placeholders and $wpdb->prepare(); found $reference_IDs
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 224:121
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 277:39
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 293:54
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 309:41
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 321:50
  • error
    Use placeholders and $wpdb->prepare(); found YARPP_TABLES_RELATED_TABLE
    WordPress.DB.PreparedSQL.NotPrepared
    yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php line 331:60
  • warning
    $_REQUEST['_wpnonce'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    yet-another-related-posts-plugin/classes/YARPP_Admin.php line 84:60
  • warning
    Detected usage of a non-sanitized input variable: $_REQUEST['_wpnonce']
    WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    yet-another-related-posts-plugin/classes/YARPP_Admin.php line 84:60
  • warning
    $_REQUEST['types'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    yet-another-related-posts-plugin/classes/YARPP_Admin.php line 95:39
  • warning
    $_GET['_wpnonce'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    yet-another-related-posts-plugin/classes/YARPP_Admin.php line 135:22
  • warning
    Detected usage of a non-sanitized input variable: $_GET['_wpnonce']
    WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    yet-another-related-posts-plugin/classes/YARPP_Admin.php line 135:22
Analysed on

The plugin declares WordPress 3.7, but wp-since found 8 compatibility issue(s) that push the suggested minimum WordPress version to 5.1.0.

Issues Found
Declared min WP
3.7+
Suggested min WP
5.1.0+
Tool output
✅ Minimum version declared: 3.7 (from readme)

🚨 Compatibility issues found:

┌─────────────────────────────────────────────┬──────────────────┐
│ Symbol                                      │ Introduced in WP │
├─────────────────────────────────────────────┼──────────────────┤
│ wp_enqueue_code_editor (function)           │ 4.9.0            │
│ register_rest_route (function)              │ 4.4.0            │
│ rest_authorization_required_code (function) │ 4.7.0            │
│ WP_REST_Posts_Controller (class)            │ 4.7.0            │
│ wp_parse_list (function)                    │ 5.1.0            │
│ get_user_count (function)                   │ 4.8.0            │
│ register_block_type (function)              │ 5.0.0            │
│ wp_get_additional_image_sizes (function)    │ 4.7.0            │
└─────────────────────────────────────────────┴──────────────────┘

📌 Suggested version required:  5.1.0

Issues 8

  • info
  • info
  • info
  • info
  • info
  • info
  • info
  • info
Analysed on

Karakterskala

A Fremragende B God C Acceptabel D Svag F Utilstrækkelig