Collapsing Categories 2.2.7

Does Collapsing Categories work with WordPress 6.2.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
15PHP warnings
3PHP notices
1PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 4.54 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.2.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 5,000+
WordPress.org page https://wordpress.org/plugins/collapsing-categories/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=collapsing-categories%2Fcollapscat.php&plugin_status=all&paged=1&s&_wpnonce=0184a30860
Aspect after-activation
HTTP status 200
Load time 0.245 s
Memory usage 3.02 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.261 s
Memory usage 2.98 MiB
JS errors None
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 0.794 s
Memory usage 4.95 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.290 s0.215 s-0.075 s3.07 MiB3.08 MiB+ 10.57 KiB
/wp-admin/edit.php0.162 s0.146 s-0.016 s3.1 MiB3.11 MiB+ 10.57 KiB
/wp-admin/post-new.php0.671 s0.811 s+0.140 s5.02 MiB5.04 MiB+ 22.75 KiB
/wp-admin/upload.php0.512 s0.259 s-0.253 s3.02 MiB3.01 MiB- 6.84 KiB
/wp-admin/options-writing.php0.283 s0.124 s-0.159 s3.01 MiB2.99 MiB- 20.08 KiB
/wp-admin/media-new.php0.237 s0.190 s-0.047 s2.99 MiB3 MiB+ 5.35 KiB
/wp-admin/edit-tags.php?taxonomy=category0.151 s0.145 s-0.006 s3.01 MiB3.02 MiB+ 10.52 KiB
/wp-admin/post-new.php?post_type=page0.539 s0.533 s-0.006 s5.01 MiB5.03 MiB+ 18.34 KiB
/wp-admin/options-discussion.php0.176 s0.224 s+0.048 s3 MiB2.99 MiB- 6.34 KiB
/wp-admin/edit-comments.php0.188 s0.173 s-0.015 s3.03 MiB3.02 MiB- 6.84 KiB
/0.250 s0.177 s-0.073 s2.97 MiB2.98 MiB+ 11.96 KiB
Average 0.314 s0.272 s-0.042 s3.38 MiB3.39 MiB+ 4.54 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
Language % Lines of code Comment lines Files
PHP89.3%1,3411049
PO File5.8%871682
JavaScript4.1%6131
Bourne Again Shell0.9%1311
Total 1,502 276 13

PHP Code Analysis | More results »

Lines of code 883
Total complexity 243
Median class complexity 13.0
Median method complexity 1.0
Most complex class collapsCat
Most complex function list_categories()
Classes 2
Methods 10
Functions 15

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Options wp_options 7

Sidebar Widgets 1

ID Name
collapscatCollapsing Categories

PHP Error Log 19 lines

[21-May-2023 19:28:08 UTC] PHP Deprecated:  Optional parameter $args declared before required parameter $cookies is implicitly treated as a required parameter in /wp-content/plugins/collapsing-categories/collapscat.php on line 123
[21-May-2023 19:28:08 UTC] PHP Warning:  compact(): Undefined variable $selected in /wp-content/plugins/collapsing-categories/collapscat.php on line 59
[21-May-2023 19:28:08 UTC] PHP Warning:  compact(): Undefined variable $default in /wp-content/plugins/collapsing-categories/collapscat.php on line 59
[21-May-2023 19:28:08 UTC] PHP Warning:  compact(): Undefined variable $block in /wp-content/plugins/collapsing-categories/collapscat.php on line 59
[21-May-2023 19:28:08 UTC] PHP Warning:  compact(): Undefined variable $noArrows in /wp-content/plugins/collapsing-categories/collapscat.php on line 59
[21-May-2023 19:28:08 UTC] PHP Warning:  compact(): Undefined variable $custom in /wp-content/plugins/collapsing-categories/collapscat.php on line 59
[21-May-2023 19:28:08 UTC] PHP Warning:  Undefined variable $selected in /wp-content/plugins/collapsing-categories/collapscat.php on line 61
[21-May-2023 19:28:08 UTC] PHP Warning:  Undefined variable $selected in /wp-content/plugins/collapsing-categories/collapscat.php on line 62
[21-May-2023 19:28:08 UTC] PHP Warning:  Undefined array key "" in /wp-content/plugins/collapsing-categories/collapscat.php on line 62
[21-May-2023 19:28:08 UTC] PHP Warning:  compact(): Undefined variable $selected in /wp-content/plugins/collapsing-categories/collapscat.php on line 59
[21-May-2023 19:28:08 UTC] PHP Warning:  compact(): Undefined variable $default in /wp-content/plugins/collapsing-categories/collapscat.php on line 59
[21-May-2023 19:28:08 UTC] PHP Warning:  compact(): Undefined variable $block in /wp-content/plugins/collapsing-categories/collapscat.php on line 59
[21-May-2023 19:28:08 UTC] PHP Warning:  compact(): Undefined variable $noArrows in /wp-content/plugins/collapsing-categories/collapscat.php on line 59
[21-May-2023 19:28:08 UTC] PHP Warning:  compact(): Undefined variable $custom in /wp-content/plugins/collapsing-categories/collapscat.php on line 59
[21-May-2023 19:28:08 UTC] PHP Warning:  Undefined variable $style in /wp-content/plugins/collapsing-categories/collapscat.php on line 67
[21-May-2023 19:28:08 UTC] PHP Warning:  Undefined variable $style in /wp-content/plugins/collapsing-categories/collapscat.php on line 75
[21-May-2023 19:28:10 UTC] PHP Notice:  Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>collapsing-categories/v1/get</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /wp-includes/functions.php on line 5865
[21-May-2023 19:28:13 UTC] PHP Notice:  Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>collapsing-categories/v1/get</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /wp-includes/functions.php on line 5865
[21-May-2023 19:28:16 UTC] PHP Notice:  Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>collapsing-categories/v1/get</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /wp-includes/functions.php on line 5865
See also: All tests for this plugin