Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/vihv-menu/TVihvEditMenuWalker.php+11
Declaration of TVihvEditMenuWalker::start_lvl(&$output) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)
Server metrics [RAM: ▼2.44MB] [CPU: ▼338.88ms] Passed 4 tests
This is a short check of server-side resources used by Vihv Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.93 ▼1.58 | 4.97 ▼45.11 |
Dashboard /wp-admin | 1.95 ▼1.46 | 4.39 ▼27.98 |
Posts /wp-admin/edit.php | 1.95 ▼1.69 | 4.58 ▼31.78 |
Add New Post /wp-admin/post-new.php | 1.95 ▼5.02 | 4.43 ▼1,250.63 |
Media Library /wp-admin/upload.php | 1.95 ▼1.35 | 3.45 ▼21.33 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Vihv Menu: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.80 ▲0.18 | 6.00 ▲0.17 | 2.43 ▼0.50 |
Dashboard /wp-admin | 2,895 ▲34 | 6.17 ▼0.00 | 117.30 ▼22.35 | 156.83 ▼8.08 |
Posts /wp-admin/edit.php | 2,690 ▼1 | 3.24 ▲0.01 | 63.56 ▼1.51 | 144.99 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,752 ▲41 | 21.09 ▲0.40 | 442.72 ▼5.20 | 163.74 ▲1.33 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▲0.00 | 146.04 ▲2.11 | 198.81 ▲6.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/vihv-menu/TVihvEditMenuWalker.php+11
Declaration of TVihvEditMenuWalker::start_lvl(&$output) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/vihv-menu/TVihvEditMenuWalker.php:4
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/vihv-menu/TVihvEditMenuWalker.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("")
- Screenshots: Add a description for screenshot #0 in vihv-menu/assets to your readme.txt
vihv-menu/vihv-menu.php Passed 13 tests
"Vihv Menu" version 2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
104 characters long description:
Menu icons, menu item css class, menu link XFN and open menu link in new window under Appearance->Menus.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin224 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 35 | 224 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 73.13KB | 28.27KB | ▼ 61.35% |