Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.32ms] Passed 4 tests
Analyzing server-side resources used by Woo Update Variations In Cart
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 48.13 ▼3.74 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.13 ▼1.29 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.33 ▼2.75 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.06 | 86.76 ▼9.04 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 40.64 ▼1.75 |
Cart Variation Update /wp-admin/options-general.php?page=woocommerce-edit-variation | 3.26 | 35.59 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
WOO_CK_WUVIC_status |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Update Variations In Cart
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 14.43 ▲0.13 | 1.85 ▲0.01 | 45.37 ▼1.62 |
Dashboard /wp-admin | 2,219 ▲31 | 5.88 ▲0.97 | 107.77 ▼2.64 | 42.46 ▲0.80 |
Posts /wp-admin/edit.php | 2,102 ▲34 | 2.03 ▲0.03 | 39.11 ▲2.41 | 34.37 ▼5.50 |
Add New Post /wp-admin/post-new.php | 1,364 ▼150 | 16.99 ▼0.69 | 567.41 ▼135.47 | 55.82 ▼9.54 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.25 ▲0.05 | 104.47 ▼19.65 | 44.28 ▼0.87 |
Cart Variation Update /wp-admin/options-general.php?page=woocommerce-edit-variation | 927 | 2.06 | 34.06 | 34.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- WOO_CK_WUVIC_status
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 26 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=woocommerce-edit-variation
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=woocommerce-edit-variation
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=woocommerce-edit-variation
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=woocommerce-edit-variation
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-update-variations-in-cart/admin/class-wc-update-variation-in-cart-admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-update-variations-in-cart/front/class-wc_update-variation_in-cart_ck.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce change variation, woocommerce update variation on cart, woocommerce cart, woocommerce, woocommerce variation
woo-update-variations-in-cart/woo-update-variations-in-cart-ck.php 77% from 13 tests
This is the main PHP file of "Woo Update Variations In Cart" version 0.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("woo-update-variations-in-cart.php" instead of "woo-update-variations-in-cart-ck.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected451 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 379 | 31 | 321 |
JavaScript | 2 | 131 | 4 | 129 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/edit.png | 1.39KB | 1.34KB | ▼ 3.45% |