Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.34ms] Passed 4 tests
A check of server-side resources used by Product Variation Table for WooCommerce - PVT
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.51 ▼4.15 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.25 ▼3.54 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.69 ▲1.87 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.43 ▲0.89 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.91 ▲1.44 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Product Variation Table for WooCommerce - PVT
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲36 | 14.26 ▼0.10 | 1.70 ▲0.03 | 35.95 ▼7.99 |
Dashboard /wp-admin | 2,206 ▲25 | 5.62 ▲0.05 | 93.19 ▼11.73 | 43.26 ▲1.53 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.96 ▼0.05 | 40.91 ▲0.77 | 38.57 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.80 ▲0.59 | 619.97 ▼55.72 | 47.46 ▼7.36 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.18 ▼0.01 | 96.33 ▼3.42 | 44.51 ▲1.45 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/product-variant-table-for-woocommerce/inc/frontend/class_pvtfw_allocation.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-variant-table-for-woocommerce/inc/style.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-variant-table-for-woocommerce/inc/admin/class_pvtfw_form.php:440
- > PHP Fatal error
Uncaught Error: Class 'PVTFW_COMMON' not found in wp-content/plugins/product-variant-table-for-woocommerce/inc/frontend/class_pvtfw_available_btn.php:80
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-variant-table-for-woocommerce/inc/admin/class_pvtfw_settings.php:171
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-variant-table-for-woocommerce/inc/table-parts/content-tbody.php:395
- > PHP Fatal error
Uncaught Error: Class 'PVTFW_COMMON' not found in wp-content/plugins/product-variant-table-for-woocommerce/inc/frontend/class_pvtfw_print_table.php:221
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-variant-table-for-woocommerce/inc/table-parts/content-thead.php:113
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-variant-table-for-woocommerce/inc/frontend/class_pvtfw_cart.php:253
- > PHP Fatal error
Uncaught Error: Class 'PVTFW_TABLE' not found in wp-content/plugins/product-variant-table-for-woocommerce/inc/admin/class_pvtfw_advance.php:103
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woocommerce, woocommerce variable, variable product, table, variations table...
product-variant-table-for-woocommerce/product-variant-table-for-woocommerce.php Passed 13 tests
The entry point to "Product Variation Table for WooCommerce - PVT" version 1.4.17 is a PHP file that has certain tags in its header comment area
111 characters long description:
Display WooCommerce product variations in a nicely formatted and customizable table on the single product page.
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
No dangerous file extensions were detected3,759 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 746 | 595 | 2,163 |
CSS | 10 | 121 | 57 | 785 |
HTML | 1 | 32 | 4 | 403 |
JavaScript | 4 | 107 | 35 | 313 |
SVG | 2 | 5 | 3 | 58 |
Sass | 1 | 5 | 0 | 37 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 88 | |
▷ Static methods | 32 | 36.36% |
▷ Public methods | 87 | 98.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.14% |
Functions | 13 | |
▷ Named functions | 13 | 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
No PNG images were found in this plugin