Compare Products for WooCommerce 2.8.2

Does "Compare Products for WooCommerce" work with WordPress 6.0.3 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
1PHP fatal errors
3PHP warnings
3PHP notices
No JavaScript exceptions
1Page failed to load
  • 1 500 Internal Server Error
No resource errors
Performance

Memory usage: 739.17 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.024 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.0.3
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 40+
WordPress.org page https://wordpress.org/plugins/woocommerce-compare-products/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 10

WordPress › Error

Page screenshot: WordPress › Error
URL /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=
Requested URL /wp-admin/plugins.php?action=activate&plugin=woocommerce-compare-products%2Fcompare_products.php&plugin_status=all&paged=1&s&_wpnonce=eb7e08bef0
Aspect after-activation
HTTP status 500
Load time 0.521 s
Memory usage N/A
JS errors None
Resource errors None

WC Compare

Page screenshot: WC Compare
URL /wp-admin/admin.php?page=woo-compare-features
Aspect menu-item
HTTP status 200
Load time 0.891 s
Memory usage 4.76 MiB
JS errors None
Resource errors None

WC Compare → Product Manager

Page screenshot: WC Compare → Product Manager
URL /wp-admin/admin.php?page=woo-compare-products
Aspect menu-item
HTTP status 200
Load time 0.691 s
Memory usage 4.47 MiB
JS errors None
Resource errors None

WC Compare → Settings & Style

Page screenshot: WC Compare → Settings & Style
URL /wp-admin/admin.php?page=woo-compare-settings
Aspect menu-item
HTTP status 200
Load time 0.386 s
Memory usage 4.47 MiB
JS errors None
Resource errors None

WC Compare → Settings & Style → Product Page

Page screenshot: WC Compare → Settings & Style → Product Page
URL /wp-admin/admin.php?page=woo-compare-settings&tab=product-page
Aspect menu-item-tab
HTTP status 200
Load time 0.711 s
Memory usage 4.46 MiB
JS errors None
Resource errors None

WC Compare → Settings & Style → Compare Widget

Page screenshot: WC Compare → Settings & Style → Compare Widget
URL /wp-admin/admin.php?page=woo-compare-settings&tab=compare-widget
Aspect menu-item-tab
HTTP status 200
Load time 0.561 s
Memory usage 4.45 MiB
JS errors None
Resource errors None

WC Compare → Settings & Style → Product Cards

Page screenshot: WC Compare → Settings & Style → Product Cards
URL /wp-admin/admin.php?page=woo-compare-settings&tab=product-cards
Aspect menu-item-tab
HTTP status 200
Load time 0.365 s
Memory usage 4.45 MiB
JS errors None
Resource errors None

WC Compare → Settings & Style → Comparison Page

Page screenshot: WC Compare → Settings & Style → Comparison Page
URL /wp-admin/admin.php?page=woo-compare-settings&tab=comparison-page
Aspect menu-item-tab
HTTP status 200
Load time 0.485 s
Memory usage 4.46 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.335 s
Memory usage 4.28 MiB
JS errors None
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 1.729 s
Memory usage 6.2 MiB
JS errors
External errors: The following JavaScript errors were probably triggered by WordPress itself, or by compatibility issues in the test runner. They are not related to the plugin.
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetHeight')\n    at t (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10419)\n    at IntersectionObserver.n.threshold (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10591)",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetHeight')\n    at t (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10419)\n    at IntersectionObserver.n.threshold (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10591)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.382 s0.446 s+0.064 s3.73 MiB4.46 MiB+ 746.91 KiB
/wp-admin/edit.php0.224 s0.339 s+0.115 s3.76 MiB4.49 MiB+ 747.94 KiB
/wp-admin/post-new.php0.813 s1.151 s+0.338 s5.55 MiB6.29 MiB+ 753.19 KiB
/wp-admin/upload.php0.461 s0.539 s+0.078 s3.69 MiB4.42 MiB+ 746.49 KiB
/wp-admin/options-writing.php0.181 s0.197 s+0.016 s3.62 MiB4.33 MiB+ 726.4 KiB
/wp-admin/media-new.php0.615 s0.237 s-0.378 s3.67 MiB4.4 MiB+ 746.66 KiB
/wp-admin/edit-tags.php?taxonomy=category0.224 s0.223 s-0.001 s3.69 MiB4.42 MiB+ 747.57 KiB
/wp-admin/post-new.php?post_type=page0.689 s0.689 s+0.000 s5.55 MiB6.28 MiB+ 744.77 KiB
/wp-admin/options-discussion.php0.256 s0.365 s+0.109 s3.6 MiB4.33 MiB+ 747.29 KiB
/wp-admin/edit-comments.php0.258 s0.235 s-0.023 s3.7 MiB4.43 MiB+ 746.48 KiB
/0.319 s0.265 s-0.054 s3.62 MiB4.28 MiB+ 677.12 KiB
Average 0.402 s0.426 s+0.024 s4.02 MiB4.74 MiB+ 739.17 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

JavaScript
PHP
JSON
Language % Lines of code Comment lines Files
JavaScript29.3%14,0841,46019
PHP28.7%13,8372,79753
JSON27.4%13,20301
CSS7.9%3,79211716
PO File3.9%1,8591,6252
SVG1.5%70204
LESS1.3%642265
HTML0.1%2901
Total 48,148 6,025 101

PHP Code Analysis | More results »

Lines of code 12,572
Total complexity 2,927
Median class complexity 13.5
Median method complexity 2.0
Most complex class A3Rev\WCCompare\FrameWork\Admin_Interface
Most complex function A3Rev\WCCompare\FrameWork\Admin_Interface::admin_forms()
Classes 42
Methods 509
Functions 19

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Database Tables 3

Options wp_options 12

User Metadata wp_usermeta 1

Sidebar Widgets 1

ID Name
woo_compare_widgetWOO Compare Products

Meta Boxes

{
    "product": {
        "woo_compare_feature_box": {
            "title": "Compare Feature Fields",
            "context": "side"
        }
    }
}

PHP Error Log 15 lines

[22-Oct-2022 14:35:21 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/woocommerce-compare-products/includes/class-wc-compare-install.php on line 29
[22-Oct-2022 14:35:21 UTC] PHP Notice:  Trying to get property 'name' of non-object in /wp-content/plugins/woocommerce-compare-products/includes/class-wc-compare-install.php on line 31
[22-Oct-2022 14:35:21 UTC] PHP Notice:  Trying to get property 'name' of non-object in /wp-content/plugins/woocommerce-compare-products/includes/class-wc-compare-install.php on line 33
[22-Oct-2022 14:35:21 UTC] PHP Notice:  Trying to get property 'name' of non-object in /wp-content/plugins/woocommerce-compare-products/includes/class-wc-compare-install.php on line 31
[22-Oct-2022 14:35:21 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function A3Rev\WCCompare\wc_get_attribute_taxonomies() in /wp-content/plugins/woocommerce-compare-products/includes/class-wc-compare-install.php:49
Stack trace:
#0 /wp-includes/class-wp-hook.php(307): A3Rev\WCCompare\Install->automatic_add_features()
#1 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(476): WP_Hook->do_action()
#3 /wp-admin/admin.php(175): do_action()
#4 /wp-admin/plugins.php(10): require_once('/opt/bitnami/ap...')
#5 {main}
  thrown in /wp-content/plugins/woocommerce-compare-products/includes/class-wc-compare-install.php on line 49
[22-Oct-2022 14:35:35 UTC] PHP Warning:  Use of undefined constant WC_VERSION - assumed 'WC_VERSION' (this will throw an Error in a future version of PHP) in /wp-content/plugins/woocommerce-compare-products/classes/class-wc-compare-metabox.php on line 397
[22-Oct-2022 14:35:39 UTC] PHP Warning:  Use of undefined constant WC_VERSION - assumed 'WC_VERSION' (this will throw an Error in a future version of PHP) in /wp-content/plugins/woocommerce-compare-products/classes/class-wc-compare-metabox.php on line 397
See also: All tests for this plugin