Trash Duplicate and 301 Redirect

Find and delete duplicates posts, pages, custom post type posts and set 301 redirect to the new or old URL.

v1.9.1solwininfotechUpdated Added 1k+ installs86% rating
38
Score
13
Errors
103
Warnings
+0
Change

Category Scores

Security0
Repo80
Performance100
Maintainability78

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

116 findings

Security

57

9 issue groups

Maintainability

54

8 issue groups

Repo Compliance

4

4 issue groups

I18n

1

1 issue group

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

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.24
Category
Maintainability
Occurrences
24
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().13
Category
Maintainability
Occurrences
13
Severity
warning

Sample message

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

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$body".10
Category
Maintainability
Occurrences
10
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$body".

WARNINGSecurityUnquoted Complex PlaceholderComplex placeholders used for values in the query string in $wpdb->prepare() will NOT be quoted automagically. Found: %1s.7
Category
Security
Occurrences
7
Severity
warning

Sample message

Complex placeholders used for values in the query string in $wpdb->prepare() will NOT be quoted automagically. Found: %1s.

WARNINGSecuritywp redirect wp redirectwp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" 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.4
Category
Security
Occurrences
4
Severity
warning

Sample message

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

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $count_individual_query used in $wpdb->get_var()\n$count_individual_query assigned unsafely at line 364.3
Category
Security
Occurrences
3
Severity
error

Sample message

Unescaped parameter $count_individual_query used in $wpdb->get_var()\n$count_individual_query assigned unsafely at line 364.

ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found $count_individual_query3
Category
Security
Occurrences
3
Severity
error

Sample message

Use placeholders and $wpdb->prepare(); found $count_individual_query

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

Sample message

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

WARNINGMaintainabilitySchema ChangeAttempting a database schema change is discouraged.2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Attempting a database schema change is discouraged.

Show 12 more
WARNINGSecurityInput is not validated2
Category
Security
Occurrences
2
Severity
warning

Sample message

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

ERRORMaintainabilityMissing direct file access protection2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

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

WARNINGI18nDiscouraged text-domain loading1
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.

ERRORSecurityOutput is not escaped1
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 'wp_redirect'.

WARNINGSecurityRequest data is not unslashed1
Category
Security
Occurrences
1
Severity
warning

Sample message

$_REQUEST['select_posts_hidden'] not unslashed before sanitization. Use wp_unslash() or similar

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.

ERRORMaintainabilityfive star reviews detected1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Linking directly to 5 stars reviews is not allowed.

WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "Trash Duplicate and 301 Redirect" is different from the name declared in plugin header "Trash Duplicate And 301 Redirect".

ERRORRepo Compliancemismatched tested up to header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Mismatched "Tested up to": 6.8.2 != 6.6.1. The "Tested up to" value in the readme file must match the "Tested up to" value in the plugin header. If the plugin header has a "Tested up to" value, it will override the readme value, which can cause confusion.

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

Sample message

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

External Connections

Potential connections found in static code analysis.

8 domains

Outbound calls

29

External assets

0

Incoming endpoints

2

Notable Domains

solwininfotech.com9 · outbound
codecanyon.net4 · outbound
loremipsum.com2 · outbound
facebook.com1 · outbound
twitter.com1 · outbound

Platform / Reference Domains

wordpress.org7 · platform/reference
api.wordpress.org4 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

No public endpoints detected.

Admin AJAX endpoints2
admin_post_tdrd_bulk_actionauthenticated

admin_post

wp_ajax_tdrd_submit_optinauthenticated

wp_ajax

Score History

First score snapshot

v1.9.1

38

Latest

Findings
116
Errors
13
Warnings
103
Check
2.0.0

Relationship Map

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

32 nodes

Related Plugins

GF No Duplicates

700 active installs

98
Delete Duplicate Posts

10k+ active installs

47
Fix Duplicates

800 active installs

39