YITH_WooCommerce_Gift_Cards C

Total Complexity 114
Dependencies 12
Dependents 2
Total lines 1,061
Lines of code 574
Logical lines of code 221
Comment lines 348
Methods 35
Properties 4

Methods 35

Method Rating Maintainability Complexity Lines of code
check_gift_card()
C
36 25 71
preview_digital_gift_cards()
A
43 12 42
ywgc_display_product_addons()
A
50 9 26
get_header_image()
A
52 8 26
init_metabox()
S
37 1 94
get_product_instance()
S
57 6 16
create_gift_cards_category()
S
44 3 47
get_header_image_for_product()
S
59 5 14
generate_gift_card_code()
S
56 4 16
start()
S
60 4 14
register_custom_post_statuses()
S
48 1 46
on_plugin_init()
S
68 4 7
init_post_type()
S
46 1 38
add_type_option()
S
64 3 9
init_hooks()
S
58 2 14
yith_ywgc_date_format_callback()
S
56 1 18
change_status_on_cancelled()
S
79 2 3
change_status_on_refund()
S
79 2 3
get_default_header_image()
S
74 2 4
get_instance()
S
72 2 6
declare_wc_features_support()
S
72 2 5
includes()
S
73 2 5
ywgc_taxonomy_remove_view_row_actions()
S
76 1 4
__construct()
S
75 1 5
get_emails()
S
82 1 3
mandatory_recipient()
S
78 1 3
init_plugin_emails_array()
S
66 1 10
get_gift_card_by_code()
S
75 1 4
dismiss_on_refund()
S
80 1 3
disable_on_refund()
S
80 1 3
dismiss_on_cancelled()
S
80 1 3
disable_on_cancelled()
S
80 1 3
current_user_can_create()
S
79 1 3
modules()
S
81 1 3
append_css_files()
S
82 1 3