Tainacan

A powerful and flexible open-source repository platform that brings digital collection management to WordPress.

v1.1.0tainacanUpdated Added 1k+ installs100% rating
24
Score
156
Errors
598
Warnings
+0
Change

Category Scores

Security0
Repo100
Performance89
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

754 findings

Maintainability

528

18 issue groups

Security

182

5 issue groups

Performance

12

2 issue groups

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

Sample message

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

WARNINGSecurityInterpolated Not PreparedUse placeholders and $wpdb->prepare(); found interpolated variable $childrens_in at \t\t\t\t\t\t\t\t\t\tmeta_id IN ($childrens_in)"71
Category
Security
Occurrences
71
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $childrens_in at \t\t\t\t\t\t\t\t\t\tmeta_id IN ($childrens_in)"

WARNINGMaintainabilityslow db query meta valueDetected usage of meta_value, possible slow query.52
Category
Maintainability
Occurrences
52
Severity
warning

Sample message

Detected usage of meta_value, possible slow query.

ERRORSecurityNot PreparedUse placeholders and $wpdb->prepare(); found $base_query48
Category
Security
Occurrences
48
Severity
error

Sample message

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

WARNINGMaintainabilityslow db query meta queryDetected usage of meta_query, possible slow query.35
Category
Maintainability
Occurrences
35
Severity
warning

Sample message

Detected usage of meta_query, possible slow query.

ERRORSecurityUnescaped DBParameterUnescaped parameter $base_query used in $wpdb->get_results()\n$base_query assigned unsafely at line 1327.30
Category
Security
Occurrences
30
Severity
error

Sample message

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

ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.22
Category
Maintainability
Occurrences
22
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

WARNINGSecurityUnfinished PrepareReplacement variables found, but no valid placeholders found in the query.17
Category
Security
Occurrences
17
Severity
warning

Sample message

Replacement variables found, but no valid placeholders found in the query.

WARNINGSecurityUnescaped DBParameterUnescaped parameter $sql used in $wpdb->get_var()\n$sql assigned unsafely at line 306.16
Category
Security
Occurrences
16
Severity
warning

Sample message

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

Show 15 more
ERRORMaintainabilityfile system operations fopen16
Category
Maintainability
Occurrences
16
Severity
error

Sample message

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

WARNINGMaintainabilityslow db query meta key14
Category
Maintainability
Occurrences
14
Severity
warning

Sample message

Detected usage of meta_key, possible slow query.

WARNINGMaintainabilityerror log error log12
Category
Maintainability
Occurrences
12
Severity
warning

Sample message

error_log() found. Debug code should not normally be used in production.

WARNINGMaintainabilityNon Prefixed Hookname Found9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

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

WARNINGMaintainabilityDynamic Hookname Found8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

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

WARNINGMaintainabilityerror log print r7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

print_r() found. Debug code should not normally be used in production.

ERRORMaintainabilityfile system operations fclose7
Category
Maintainability
Occurrences
7
Severity
error

Sample message

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

WARNINGPerformancePost Not In post not in7
Category
Performance
Occurrences
7
Severity
warning

Sample message

Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.

ERRORMaintainabilityunlink unlink6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

unlink() is discouraged. Use wp_delete_file() to delete a file.

WARNINGMaintainabilitySchema Change5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

Attempting a database schema change is discouraged.

ERRORMaintainabilityfile system operations fputs5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

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

ERRORMaintainabilityrename rename5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

rename() is discouraged. Use WP_Filesystem::move() to rename a file.

WARNINGPerformancePost Not In exclude5
Category
Performance
Occurrences
5
Severity
warning

Sample message

Using exclusionary parameters, like exclude, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.

WARNINGMaintainabilityslow db query tax query4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Detected usage of tax_query, possible slow query.

WARNINGMaintainabilityNon Prefixed Variable Found4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

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

Score History

First score snapshot

v1.1.0

24

Latest

Findings
754
Errors
156
Warnings
598
Check
2.0.0

Related Plugins

Disable Author Archives

10k+ active installs

96
Advanced Posts/Page

3k+ active installs

91
Compact Archives

2k+ active installs

90
81
Collapsing Archives

3k+ active installs

64
Expanding Archives

3k+ active installs

54