Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.15MB] [CPU: ▼42.63ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Dropdown Menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.82 ▼0.64 | 14.38 ▼25.09 |
Dashboard /wp-admin | 2.86 ▼0.45 | 15.23 ▼34.06 |
Posts /wp-admin/edit.php | 2.86 ▼0.50 | 16.15 ▼33.62 |
Add New Post /wp-admin/post-new.php | 2.86 ▼3.03 | 16.58 ▼77.73 |
Media Library /wp-admin/upload.php | 2.86 ▼0.37 | 14.89 ▼23.23 |
Cart Dropdown /wp-admin/admin.php?page=woocommerce_cart_dropdown | 2.86 | 16.16 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 293 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
wcd_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Dropdown Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲189 | 13.65 ▼0.71 | 8.42 ▲6.57 | 38.28 ▼6.22 |
Dashboard /wp-admin | 2,218 ▲30 | 5.90 ▲1.04 | 107.16 ▼11.75 | 43.99 ▲0.39 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.02 ▼0.03 | 39.92 ▲4.11 | 36.86 ▲3.76 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 18.50 ▼4.66 | 602.90 ▼112.55 | 59.31 ▼2.68 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.25 ▲0.01 | 92.83 ▼9.08 | 41.01 ▼1.46 |
Cart Dropdown /wp-admin/admin.php?page=woocommerce_cart_dropdown | 989 | 2.05 | 25.51 | 41.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/woo-cart-dropdown/woocommerce-cart-dropdown.php+478
Undefined index: wcd_display_in_menus
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- wcd_settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=woocommerce_cart_dropdown
- > Notice in wp-content/plugins/woo-cart-dropdown/woocommerce-cart-dropdown.php+478
Undefined index: wcd_display_in_menus
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-cart-dropdown/woocommerce-cart-dropdown.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
5 plugin tags: cart dropdown, ecommerce, woocommerce, menu cart, woocommerce basket
woo-cart-dropdown/woocommerce-cart-dropdown.php 92% from 13 tests
The main PHP script in "WooCommerce Dropdown Menu" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-cart-dropdown.php" instead of "woocommerce-cart-dropdown.php")
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 plugin7,108 lines of code in 288 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 284 | 5 | 286 | 5,965 |
CSS | 2 | 5 | 6 | 711 |
PHP | 1 | 145 | 27 | 426 |
JavaScript | 1 | 2 | 1 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 22 | |
▷ Named functions | 22 | 100.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
No PNG files were detected