Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▲0.87ms] Passed 4 tests
An overview of server-side resources used by WP Nav Menu Cache
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.29 ▲2.70 |
Dashboard /wp-admin | 3.50 ▲0.20 | 52.92 ▲2.54 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 49.87 ▲6.45 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 93.38 ▼5.26 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.20 ▲3.48 |
WP Nav Menu Cache /wp-admin/options-general.php?page=wp_nav_menu_cache | 3.34 | 37.13 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
wp_nav_menu_cache |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Nav Menu Cache: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲248 | 14.85 ▲0.46 | 2.00 ▲0.14 | 44.01 ▼0.63 |
Dashboard /wp-admin | 2,364 ▲173 | 6.62 ▲1.75 | 118.07 ▲9.43 | 35.96 ▼10.10 |
Posts /wp-admin/edit.php | 2,270 ▲178 | 3.51 ▲1.54 | 49.75 ▲10.94 | 32.18 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,529 ▲10 | 17.72 ▼5.62 | 589.39 ▼98.62 | 36.42 ▼21.79 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.41 ▲0.19 | 82.49 ▼17.48 | 42.06 ▼2.37 |
WP Nav Menu Cache /wp-admin/options-general.php?page=wp_nav_menu_cache | 1,065 | 3.56 | 50.16 | 25.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- wp_nav_menu_cache
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-nav-menu-cache/class.settings-api.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-nav-menu-cache/class.settings-api.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-nav-menu-cache/menu-cache.php 85% from 13 tests
The principal PHP file in "WP Nav Menu Cache" v. 2.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 153 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-nav-menu-cache.php" instead of "menu-cache.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected496 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 168 | 247 | 496 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 97.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin