Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.62ms] Passed 4 tests
An overview of server-side resources used by WP Add Active Class To Menu Item
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.65 ▼5.23 |
Dashboard /wp-admin | 3.32 ▼0.03 | 52.30 ▼14.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 59.49 ▲5.67 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.01 | 94.24 ▼3.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 35.21 ▲0.20 |
WP Add Active Class To Menu Item /wp-admin/options-general.php?page=wp_add_active_class_to_menu_item_dashboard | 3.21 | 33.66 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
wp_add_active_class_to_menu_item_classes |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Add Active Class To Menu Item: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.38 ▼0.14 | 1.87 ▲0.07 | 40.57 ▼3.59 |
Dashboard /wp-admin | 2,196 ▲21 | 5.51 ▼0.21 | 91.99 ▼13.65 | 38.85 ▼6.59 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.95 ▼0.03 | 41.16 ▲3.25 | 34.56 ▼5.33 |
Add New Post /wp-admin/post-new.php | 1,534 ▲9 | 23.39 ▼0.21 | 671.80 ▲55.38 | 60.31 ▲6.70 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▼0.00 | 116.61 ▲17.57 | 49.30 ▲5.81 |
WP Add Active Class To Menu Item /wp-admin/options-general.php?page=wp_add_active_class_to_menu_item_dashboard | 811 | 1.96 | 24.31 | 23.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- wp_add_active_class_to_menu_item_classes
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: add active to li tag wordpress menu, add active class to menu li tag, add active class to li tag, wordpress add active class to menu item, wp add active class to menu item
wp-add-active-class-to-menu-item/wp-add-active-class-to-menu-item.php Passed 13 tests
The primary PHP file in "WP Add Active Class To Menu Item" version 1.0 is used by WordPress to initiate all plugin functionality
128 characters long description:
This plugin is useful when you need to add active class to menu item li tag in place of current-menu-item or current_page_parent
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin68 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 14 | 18 | 68 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin