Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.23MB] [CPU: ▼38.17ms] Passed 4 tests
Analyzing server-side resources used by Voce Submenu Items
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 14.91 ▼23.80 |
Dashboard /wp-admin | 2.78 ▼0.53 | 14.26 ▼30.51 |
Posts /wp-admin/edit.php | 2.78 ▼0.58 | 15.91 ▼30.32 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 15.00 ▼68.05 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 15.03 ▼17.70 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
esselink_nu_settings_wp_collector_ps_desktop |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Voce Submenu Items
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.32 ▼1.08 | 4.49 ▲2.64 | 42.41 ▼6.84 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.05 | 106.41 ▼0.04 | 40.51 ▼3.12 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.06 | 38.65 ▼4.82 | 34.88 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,542 ▲4 | 18.58 ▼4.82 | 598.88 ▼19.27 | 51.19 ▼10.54 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▲0.00 | 98.06 ▼5.10 | 41.48 ▼2.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Voce_Submenu_Nav_Menu_Items::init() should not be called statically
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- esselink_nu_settings_wp_collector_ps_desktop
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/voce-submenu-items/voce-submenu-items.php:121
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: nested, menus, navigation
voce-submenu-items/voce-submenu-items.php Passed 13 tests
"Voce Submenu Items" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Avoid giant Nav Menus by aggregating multiple "submenus" into a single Menu.
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
There were no executable files found in this plugin57 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 37 | 57 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.63MB with 0.37MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 120.55KB | 49.91KB | ▼ 58.60% |
assets/screenshot-3.png | 406.47KB | 164.10KB | ▼ 59.63% |
assets/screenshot-2.png | 114.82KB | 47.58KB | ▼ 58.56% |