WP-DownloadManager

Adds a simple download manager to your WordPress blog.

v1.69.1Lester ChanUpdated Added 3k+ installs80% rating0% support resolved
25
Score
607
Errors
508
Warnings
+0
Change

Category Scores

Security0
Repo86
Performance100
Maintainability10

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

1,115 findings

Security

655

9 issue groups

Maintainability

400

14 issue groups

I18n

50

2 issue groups

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

Sample message

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

WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$addfile".252
Category
Maintainability
Occurrences
252
Severity
warning

Sample message

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

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<option value=\"$i\" selected=\"selected\">$i</option>\n"'.207
Category
Security
Occurrences
207
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<option value=\"$i\" selected=\"selected\">$i</option>\n"'.

WARNINGSecurityInterpolated Not PreparedUse placeholders and $wpdb-&gt;prepare(); found interpolated variable $category_sql at &quot;SELECT * FROM $wpdb-&gt;downloads WHERE $category_sql AND file_permission != -2 ORDER BY FROM_UNIXTIME(file_date) DESC LIMIT $limit&quot;47
Category
Security
Occurrences
47
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable $category_sql at &quot;SELECT * FROM $wpdb-&gt;downloads WHERE $category_sql AND file_permission != -2 ORDER BY FROM_UNIXTIME(file_date) DESC LIMIT $limit&quot;

WARNINGSecurityMissing Unslash$_GET[&#039;by&#039;] not unslashed before sanitization. Use wp_unslash() or similar39
Category
Security
Occurrences
39
Severity
warning

Sample message

$_GET[&#039;by&#039;] not unslashed before sanitization. Use wp_unslash() or similar

ERRORI18nMissing Translators CommentA function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.37
Category
I18n
Occurrences
37
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_FILES[&#039;file_upload&#039;][&#039;name&#039;]36
Category
Security
Occurrences
36
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_FILES[&#039;file_upload&#039;][&#039;name&#039;]

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

Sample message

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

WARNINGMaintainabilityNon Prefixed Function FoundFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;file_extension&quot;.26
Category
Maintainability
Occurrences
26
Severity
warning

Sample message

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

Show 15 more
ERRORMaintainabilityAdd option Param3Found21
Category
Maintainability
Occurrences
21
Severity
error

Sample message

The parameter "'Displayed After Paging In The Downloads Page'" at position #3 of add_option() has been deprecated since WordPress version 2.3.0. Instead do not pass the parameter.

ERRORSecurityUnescaped DBParameter14
Category
Security
Occurrences
14
Severity
error

Sample message

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

WARNINGSecurityInput Not Validated14
Category
Security
Occurrences
14
Severity
warning

Sample message

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

ERRORI18nUnordered Placeholders Text13
Category
I18n
Occurrences
13
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s", but got "%s, %s" in 'Error In Adding File \'%s (%s)\''.

WARNINGSecurityRecommended8
Category
Security
Occurrences
8
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNon Prefixed Hookname Found7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;rss2_head&quot;.

ERRORMaintainabilitymissing direct file access protection6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

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

ERRORMaintainabilitystrip tags strip tags5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

strip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead.

ERRORSecurityNot Prepared4
Category
Security
Occurrences
4
Severity
error

Sample message

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

WARNINGMaintainabilitytrademarked term3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "WP-DownloadManager" - contains the restricted term "wp" which cannot be used at all in your plugin name.

ERRORMaintainabilityFound2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

The use of function move_uploaded_file() is forbidden

ERRORMaintainabilityfile system operations is writable2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: is_writable().

ERRORMaintainabilityfile system operations mkdir2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: mkdir().

ERRORMaintainabilityfile system operations readfile2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: readfile().

WARNINGMaintainabilitywp get sites Found2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

wp_get_sites() has been deprecated since WordPress version 4.6.0. Use get_sites() instead.

Score History

First score snapshot

v1.69.1

25

Latest

Findings
1,115
Errors
607
Warnings
508
Check
2.0.0

Related Plugins

KP Zip Downloader

3k+ active installs

99
File Upload Types by WPForms

30k+ active installs

98
Bulk Media Register

8k+ active installs

95
Clean Image Filenames

30k+ active installs

82
FileBird Document Library

5k+ active installs

76