Collapsing Archives

This plugin uses Javascript to dynamically expand or collapse the set of months for each year and posts for each month in the archive listing of your …

v3.0.8robfeltyUpdated Added 3k+ installs82% rating
64
Score
36
Errors
9
Warnings
+0
Change

Category Scores

Security47
Repo86
Performance100
Maintainability75

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

45 findings

Maintainability

28

8 issue groups

I18n

7

2 issue groups

Security

7

5 issue groups

Repo Compliance

3

3 issue groups

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

Sample message

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

ERRORI18nText Domain MismatchMismatched text domain. Expected 'collapsing-archives' but got 'collapsArch'.6
Category
I18n
Occurrences
6
Severity
error

Sample message

Mismatched text domain. Expected 'collapsing-archives' but got 'collapsArch'.

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wpFunction "get_block_wrapper_attributes()" requires WordPress 5.6.0, but your plugin minimum supported version is WordPress 2.8.0.3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

Function "get_block_wrapper_attributes()" requires WordPress 5.6.0, but your plugin minimum supported version is WordPress 2.8.0.

WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb->prepare(); found interpolated variable $in at "AND YEAR($wpdb->posts.post_date) $in ($placeholders)"2
Category
Security
Occurrences
2
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $in at "AND YEAR($wpdb->posts.post_date) $in ($placeholders)"

WARNINGMaintainabilityerror log print rprint_r() found. Debug code should not normally be used in production.2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

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

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"POST QUERY:\n $postquery\n"'.2
Category
Security
Occurrences
2
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"POST QUERY:\n $postquery\n"'.

ERRORMaintainabilityblock api version too lowEditor blocks must define "apiVersion" 3 or higher in block.json for WordPress 7.0+ iframe editor compatibility.2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

Editor blocks must define "apiVersion" 3 or higher in block.json for WordPress 7.0+ iframe editor compatibility.

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $postquery used in $wpdb->get_results()\n$postquery assigned unsafely at line 90.1
Category
Security
Occurrences
1
Severity
error

Sample message

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

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

Sample message

Use of a direct database call is discouraged.

Show 8 more
WARNINGMaintainabilityNo Caching1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

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

ERRORSecuritySQL query is not prepared1
Category
Security
Occurrences
1
Severity
error

Sample message

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

WARNINGSecurityUnfinished Prepare1
Category
Security
Occurrences
1
Severity
warning

Sample message

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

WARNINGMaintainabilityDeprecated function: wp_specialchars1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

wp_specialchars() has been deprecated since WordPress version 2.8.0. Use esc_html() instead.

ERRORI18nDeprecated parameter: load_plugin_textdomain parameter 21
Category
I18n
Occurrences
1
Severity
error

Sample message

The parameter "WP_PLUGIN_DIR."/".basename(dirname(__FILE__))" at position #2 of load_plugin_textdomain() has been deprecated since WordPress version 2.7.0. Use "" instead.

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

Sample message

Tested up to: 6.9 < 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 trimmed short description1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

The "Short Description" section is too long and was truncated. A maximum of 150 characters is supported.

External Connections

Not analyzed yet.

Score History

First score snapshot

v3.0.8

64

Latest

Findings
45
Errors
36
Warnings
9
Check
2.0.0

Relationship Map

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

29 nodes

Related Plugins

Collapse Magic

1k+ active installs

99
Easy Accordion Block

7k+ active installs

99
Toggles

2k+ active installs

98
Newpost Catch

10k+ active installs

97
Sidebar Login

10k+ active installs

97