Compare Products for WooCommerce 2.8.0

Does "Compare Products for WooCommerce" work with WordPress 5.9.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: 743.24 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version5.9.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=fc19b17c9f
Aspect after-activation
HTTP status 500
Load time 0.452 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.760 s
Memory usage 4.33 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.634 s
Memory usage 4.04 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.356 s
Memory usage 4.04 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.507 s
Memory usage 4.03 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.517 s
Memory usage 4.02 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.433 s
Memory usage 4.02 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.395 s
Memory usage 4.03 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.562 s
Memory usage 4.07 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.862 s
Memory usage 5.9 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.359 s0.285 s-0.074 s3.37 MiB4.1 MiB+ 747.23 KiB
/wp-admin/edit.php0.182 s0.210 s+0.028 s3.4 MiB4.13 MiB+ 747.31 KiB
/wp-admin/post-new.php1.032 s1.279 s+0.247 s5.69 MiB6.42 MiB+ 749.19 KiB
/wp-admin/upload.php0.400 s0.514 s+0.114 s3.25 MiB3.98 MiB+ 754.18 KiB
/wp-admin/options-writing.php0.307 s0.164 s-0.143 s3.24 MiB3.96 MiB+ 738.03 KiB
/wp-admin/media-new.php0.233 s0.211 s-0.022 s3.23 MiB3.96 MiB+ 754.35 KiB
/wp-admin/edit-tags.php?taxonomy=category0.179 s0.185 s+0.006 s3.27 MiB4 MiB+ 747.26 KiB
/wp-admin/post-new.php?post_type=page0.945 s0.950 s+0.005 s5.68 MiB6.41 MiB+ 744.77 KiB
/wp-admin/options-discussion.php0.224 s0.263 s+0.039 s3.22 MiB3.96 MiB+ 754.98 KiB
/wp-admin/edit-comments.php0.216 s0.195 s-0.021 s3.27 MiB4 MiB+ 746.17 KiB
/0.282 s0.292 s+0.010 s3.4 MiB4.07 MiB+ 692.22 KiB
Average 0.396 s0.413 s+0.017 s3.73 MiB4.45 MiB+ 743.24 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.6%13,7632,78553
JSON27.5%13,20301
CSS7.9%3,79211716
PO File3.9%1,8591,6252
SVG1.5%70204
LESS1.3%642265
HTML0.1%2901
Total 48,074 6,013 101

PHP Code Analysis | More results »

Lines of code 12,498
Total complexity 2,906
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 504
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

[10-Apr-2022 06:26:01 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
[10-Apr-2022 06:26:01 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
[10-Apr-2022 06:26:01 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
[10-Apr-2022 06:26:01 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
[10-Apr-2022 06:26:01 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(474): 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
[10-Apr-2022 06:26:10 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
[10-Apr-2022 06:26:14 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