Document Library Lite

Create a WordPress document library to manage, search and download files.

v1.2.0Barn2 PluginsUpdated Added 4k+ installs80% rating
34
Score
149
Errors
85
Warnings
+0
Change

Category Scores

Security0
Repo86
Performance100
Maintainability57

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

234 findings

I18n

100

6 issue groups

Security

87

7 issue groups

Maintainability

39

11 issue groups

Supply Chain

2

1 issue group

ERRORI18nText Domain MismatchMismatched text domain. Expected 'document-library-lite' but got 'barn2'.79
Category
I18n
Occurrences
79
Severity
error

Sample message

Mismatched text domain. Expected 'document-library-lite' but got 'barn2'.

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<div{$id}{$class}><div class='barn2-settings-inner'>"'.39
Category
Security
Occurrences
39
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<div{$id}{$class}><div class='barn2-settings-inner'>"'.

WARNINGSecurityMissingProcessing form data without nonce verification.17
Category
Security
Occurrences
17
Severity
warning

Sample message

Processing form data without nonce verification.

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

Sample message

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

WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$ds&quot;.11
Category
Maintainability
Occurrences
11
Severity
warning

Sample message

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

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_GET[&#039;return_url&#039;]9
Category
Security
Occurrences
9
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET[&#039;return_url&#039;]

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

Sample message

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

WARNINGSecurityInput Not ValidatedDetected usage of a possibly undefined superglobal array index: $_POST[&#039;order&#039;][0][&#039;column&#039;]. Check that the array index exists before using it.7
Category
Security
Occurrences
7
Severity
warning

Sample message

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

WARNINGSecurityRecommendedProcessing form data without nonce verification.5
Category
Security
Occurrences
5
Severity
warning

Sample message

Processing form data without nonce verification.

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

Sample message

Use of a direct database call is discouraged.

Show 15 more
WARNINGMaintainabilityNo Caching4
Category
Maintainability
Occurrences
4
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 Found4
Category
Maintainability
Occurrences
4
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;.

ERRORI18nMissing Translators Comment4
Category
I18n
Occurrences
4
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.

ERRORMaintainabilitymissing direct file access protection4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

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

WARNINGMaintainabilityDynamic Hookname Found3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$this-&gt;get_services_action_name($service_class)&quot;.

WARNINGMaintainabilityNon Prefixed Hookname Found3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

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

ERRORMaintainabilityPlugin Directory Write2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

Plugin folders are deleted when upgraded. Do not save data to the plugin folder using copy(). Detected usage of __FILE__ or __DIR__ magic constant. Use wp_upload_dir() to get the uploads directory path or save to the database instead.

WARNINGI18nNo Html Wrapped Strings2
Category
I18n
Occurrences
2
Severity
warning

Sample message

Translatable string should not be wrapped in HTML. Found: &#039;&lt;p&gt;%1$s database update complete. Thank you for updating to the latest version!&lt;/p&gt;&#039;

ERRORI18nNon Singular String Literal Text2
Category
I18n
Occurrences
2
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: $args['input_class']

ERRORSupply Chainhidden files2
Category
Supply Chain
Occurrences
2
Severity
error

Sample message

Hidden files are not permitted.

WARNINGMaintainabilityupdate modification detected2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Plugin Updater detected. Detected code which may be altering WordPress update routines. Detected: _site_transient_update_plugins

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.

ERRORMaintainabilityNot Allowed1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

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

WARNINGMaintainabilityslow db query tax query1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Detected usage of tax_query, possible slow query.

ERRORSecurityException 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 '__'.

Score History

First score snapshot

v1.2.0

34

Latest

Findings
234
Errors
149
Warnings
85
Check
2.0.0

Related Plugins