YITH_YWGC_Backend D

Total Complexity 198
Dependencies 10
Dependents 1
Total lines 1,386
Lines of code 741
Logical lines of code 432
Comment lines 425
Methods 38
Properties 2

Methods 38

Method Rating Maintainability Complexity Lines of code
create_gift_cards_for_order()
C
31 25 105
set_gift_card_category_to_media()
A
48 16 30
show_as_string_order_item_meta_key()
A
48 15 32
enqueue_backend_files()
A
36 9 89
redirect_gift_cards_link()
A
45 11 41
update_totals_on_save_order_items()
A
46 9 38
order_status_changed()
A
52 8 23
change_gift_cards_status_on_order()
A
54 8 21
save_gift_card_data()
A
56 8 16
update_gift_card_amount_on_order_status_change()
S
55 7 18
filter_gift_card_page_query()
S
53 6 23
add_gift_card_amount_callback()
S
55 6 18
save_gift_card()
S
59 6 14
set_gift_card_category_to_product()
S
61 6 11
show_gift_card_amount_list()
S
55 4 22
show_gift_cards_total_before_order_totals()
S
55 4 19
ywgc_remove_product_meta_boxes()
S
64 5 9
__construct()
S
47 2 34
show_gift_card_code_on_order_item()
S
57 3 17
ywgc_custom_condition_to_create_gift_card_call_back()
S
67 4 7
remove_gift_card_amount_callback()
S
63 4 9
save_gift_card_product()
S
63 4 9
add_cpt_table_class()
S
62 3 11
show_gift_card_product_settings()
S
56 2 22
generate_gift_card_for_order()
S
67 3 8
ywgc_edit_design_category_form()
S
62 2 13
show_formatted_date()
S
67 2 7
get_instance()
S
72 2 6
update_taxonomy_count()
S
64 2 8
show_inventory_tab()
S
70 2 6
add_gift_card_product_type()
S
70 2 6
get_category_select()
S
64 2 9
add_gift_cards_filters()
S
58 1 14
show_advanced_product_settings()
S
91 1 2
show_sold_individually_for_gift_cards()
S
78 1 8
hide_item_meta()
S
77 1 4
gift_card_amount_list_html()
S
69 1 7
show_tax_class_for_gift_cards()
S
77 1 5