Merchant_Product_Labels D

Total Complexity 216
Dependencies 7
Dependents 3
Total lines 1,268
Lines of code 741
Logical lines of code 419
Comment lines 326
Methods 33
Properties 2

Methods 33

Method Rating Maintainability Complexity Lines of code
get_labels()
D
27
43 118
is_product_excluded()
B
46 18 35
legacy_product_label()
B
41 17 49
get_product_sale_data()
A
44 15 40
__construct()
A
39 13 64
show_label()
A
52 13 23
migrate_exclusion_fields()
A
46 10 39
frontend_custom_css()
A
43 8 68
migrate_exclusion_list()
A
51 10 24
is_pre_order()
A
53 9 22
get_shape_based_styles()
S
48 7 29
shortcode_handler()
S
48 5 36
is_in_category()
S
59 6 14
init_translations()
S
60 5 13
label()
S
52 4 21
admin_enqueue_css()
S
63 5 8
admin_enqueue_js()
S
64 5 8
single_product_output()
S
54 2 24
add_pre_order_option()
S
69 3 6
render_admin_preview()
S
62 2 11
loop_product_output()
S
56 1 21
products_block()
S
58 1 17
admin_preview_content()
S
62 1 15
is_on_sale()
S
79 2 3
is_out_of_stock()
S
78 2 3
is_featured()
S
79 2 3
remove_on_sale()
S
82 1 3
enqueue_css()
S
77 1 3
enqueue_js()
S
77 1 3
get_module_custom_css()
S
77 1 4
admin_custom_css()
S
77 1 4
single_product_image_gallery_classes()
S
77 1 4
is_new()
S
69 1 6