Code Analysis: HeadlessWC: Ultimate eCommerce Decoupler 1.1.2

Function Rating Maintainability Complexity Lines of code
headlesswc_handle_cart_request()
C
31 21 109
headlesswc_handle_cart_request()
B
31 21 104
headlesswc_handle_order_request()
A
41 13 50
headlesswc_handle_order_request()
A
41 13 50
headlesswc_handle_products_request()
A
36 11 77
headlesswc_get_attributes_data()
A
39 11 70
headlesswc_handle_products_request()
A
40 11 59
headlesswc_apply_cart_products()
A
56 9 17
headlesswc_apply_cart_products()
A
56 9 17
HWC_Product::__construct()
A
45 7 39
headlesswc_generate_lqip()
S
47 6 35
headlesswc_redirect_after_order()
S
55 7 20
headlesswc_generate_lqip()
S
47 6 35
HWC_Variable_Product::get_attributes_data()
S
44 5 49
headlesswc_handle_product_request()
S
40 4 63
HWC_Simple_Product::get_base_data()
S
47 6 33
headlesswc_handle_product_request()
S
45 4 47
headlesswc_apply_shipping_method()
S
54 5 20
headlesswc_apply_shipping_method()
S
54 5 20
headlesswc_check_plugin_requirements()
S
55 4 19
headlesswc_get_gallery_images()
S
59 4 15
HWC_Product::get_data()
S
60 4 14
HWC_Simple_Product::get_gallery_images()
S
60 4 13
HWC_Product_Detailed::__construct()
S
52 3 23
headlesswc_apply_cupon()
S
67 4 8
headlesswc_apply_cupon()
S
66 4 9
headlesswc_get_all_image_sizes()
S
62 3 12
headlesswc_get_image_sizes()
S
62 3 12
headlesswc_get_all_image_sizes()
S
62 3 12
headlesswc_get_sale_price()
S
63 3 11
HWC_Simple_Product::get_sale_price()
S
63 3 11
HWC_Simple_Product::get_detailed_data()
S
53 2 22
headlesswc_map_customer_data()
S
57 2 16
headlesswc_map_customer_data()
S
57 2 16
HWC_Variable_Product::get_variations()
S
61 2 13
HWC_Product_Detailed::get_product_variations()
S
62 2 12
HWC_Simple_Product::get_meta_data()
S
69 2 7
HWC_Product_Detailed::get_data()
S
65 2 9
headlesswc_get_attributes()
S
69 2 7
HWC_Simple_Product::get_regular_price()
S
69 2 7
headlesswc_get_regular_price()
S
69 2 7
HWC_Variable_Product::get_attributes()
S
69 2 7
nvl()
S
79 2 3
headlesswc_get_meta_data()
S
69 2 7
HWC_Variable_Product::get_base_data()
S
65 1 9
HWC_Variable_Product::get_detailed_data()
S
64 1 10
HWC_Simple_Product::__construct()
S
81 1 3