Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/includes/rtwvsmlw-class-woocommerce-variation-swatches-master-activator.php+83
Uncaught Error: Call to undefined function wc_get_attribute_taxonomies() in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/includes/rtwvsmlw-class-woocommerce-variation-swatches-master-activator.php:83
Stack trace:
#0 wp-content/plugins/variation-swatches-master-lite-for-woocommerce/rtwvsmlw-variation-swatches-master-lite-for-woocommerce.php(46): Rtwvsmlw_Variation_Swatches_Master_For_Woocommerce_Activator::rtwvsmlw_activate()
#1 wp-includes/class-wp-hook.php(310): rtwvsmlw_activate_variation_swatches_master_for_woocommerce()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.09ms] Passed 4 tests
Server-side resources used by Variation Swatches Master Lite for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.82 ▼6.75 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.19 ▼6.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.89 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.62 ▼4.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.41 ▼2.51 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
rtwwvsm_advanced_variation_data |
rtwwvsm_shop_page_variation_data |
can_compress_scripts |
rtwwvsm_simple_variation_data |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Variation Swatches Master Lite for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.72 ▼1.06 | 1.75 ▼0.15 | 39.79 ▼6.03 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.01 | 110.72 ▼7.73 | 42.04 ▼7.75 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 39.55 ▲3.82 | 35.08 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.12 ▼0.33 | 666.57 ▼21.12 | 70.69 ▲13.62 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.03 | 106.30 ▲2.40 | 45.17 ▼1.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- rtwwvsm_advanced_variation_data
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- rtwwvsm_shop_page_variation_data
- rtwwvsm_simple_variation_data
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/admin/partials/rtwvsmlw_admin_tabs/rtwvsmlw-admin-simple-variation.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/admin/partials/rtwvsmlw_admin_tabs/rtwvsmlw-admin-advanced-variation.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/admin/partials/rtwvsmlw_admin_tabs/rtwvsmlw-admin-attribute-settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/public/partials/rtwvsmlw-attribute-display-on-single-product.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/admin/partials/rtwvsmlw_admin_tabs/rtwvsmlw-admin-shop-page-variation.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/admin/partials/rtwvsmlw_admin_tabs/rtwvsmlw-admin-global-variation.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/admin/partials/rtwvsmlw-variation-swatches-lite-for-woocommerce-admin-display.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/admin/partials/rtwvsmlw_admin_tabs/rtwvsmlw-admin-custom-variation.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/variation-swatches-master-lite-for-woocommerce/admin/partials/rtwvsmlw_admin_tabs/rtwvsmlw-compare-pro.php:15
- > 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 errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
variation-swatches-master-lite-for-woocommerce/rtwvsmlw-variation-swatches-master-lite-for-woocommerce.php 77% from 13 tests
The main file in "Variation Swatches Master Lite for WooCommerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("variation-swatches-master-lite-for-woocommerce.php" instead of "rtwvsmlw-variation-swatches-master-lite-for-woocommerce.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin16,845 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 646 | 1,942 | 13,181 |
PHP | 17 | 313 | 670 | 2,549 |
JavaScript | 6 | 170 | 118 | 1,115 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 4.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 1 | 2.33% |
▷ Public methods | 38 | 88.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.63% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/swatches-logo.png | 1.97KB | 1.41KB | ▼ 28.49% |
assets/variation-attribute-setting.png | 71.99KB | 25.77KB | ▼ 64.20% |