WP Add Active Class To Menu Item 1.0

Does "WP Add Active Class To Menu Item" work with WordPress 6.9.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: -1.05 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.9.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 800+
WordPress.org page https://wordpress.org/plugins/wp-add-active-class-to-menu-item/
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=wp-add-active-class-to-menu-item%2Fwp-add-active-class-to-menu-item.php&plugin_status=all&paged=1&s&_wpnonce=5e53f43f37
Aspect after-activation
HTTP status 200
Load time 0.349 s
Memory usage 3.73 MiB
JS errors None
Resource errors None

Settings → WP Add Active Class To Menu Item

Page screenshot: Settings → WP Add Active Class To Menu Item
URL /wp-admin/options-general.php?page=wp_add_active_class_to_menu_item_dashboard
Aspect menu-item
HTTP status 200
Load time 0.269 s
Memory usage 3.73 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.235 s
Memory usage 4.11 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.429 s0.357 s-0.072 s3.78 MiB3.78 MiB+ 4.66 KiB
/wp-admin/edit.php0.378 s0.321 s-0.057 s3.78 MiB3.79 MiB+ 4.66 KiB
/wp-admin/post-new.php0.870 s0.949 s+0.079 s6.31 MiB6.32 MiB+ 9.09 KiB
/wp-admin/upload.php0.634 s0.430 s-0.204 s3.74 MiB3.73 MiB- 12.75 KiB
/wp-admin/options-writing.php0.331 s0.308 s-0.023 s3.71 MiB3.7 MiB- 8.76 KiB
/wp-admin/media-new.php0.510 s0.312 s-0.198 s3.7 MiB3.7 MiB- 576 bytes
/wp-admin/edit-tags.php?taxonomy=category0.331 s0.484 s+0.153 s3.72 MiB3.73 MiB+ 10.11 KiB
/wp-admin/post-new.php?post_type=page0.689 s0.702 s+0.013 s6.3 MiB6.3 MiB+ 4.61 KiB
/wp-admin/options-discussion.php0.338 s0.388 s+0.050 s3.71 MiB3.7 MiB- 12.26 KiB
/wp-admin/edit-comments.php0.325 s0.325 s+0.000 s3.73 MiB3.72 MiB- 12.76 KiB
/0.290 s0.212 s-0.078 s4.11 MiB4.11 MiB+ 2.41 KiB
Average 0.466 s0.435 s-0.031 s4.23 MiB4.23 MiB- 1.05 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
PHP100.0%68182
Total 68 18 2

PHP Code Analysis | More results »

Lines of code 69
Total complexity 13
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function wp_add_active_class_to_menu_item_settings()
Classes 0
Methods 0
Functions 3

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 1

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "WP Add Active Class To Menu Item" Admin Menu