YITH_YWGC_Backend D

Total Complexity 191
Dependencies 6
Dependents 1
Total lines 1,348
Lines of code 720
Logical lines of code 429
Comment lines 321
Methods 38
Properties 2

Methods 38

Method Rating Maintainability Complexity Lines of code
create_gift_cards_for_order()
C
31 25 102
show_as_string_order_item_meta_key()
A
45 15 44
set_gift_card_category_to_media()
A
49 14 28
enqueue_backend_files()
A
38 9 71
redirect_gift_cards_link()
A
47 10 37
update_totals_on_save_order_items()
A
46 9 36
change_gift_cards_status_on_order()
A
54 8 21
order_status_changed()
A
53 8 21
save_gift_card_data()
A
57 8 16
update_gift_card_amount_on_order_status_change()
S
55 7 18
filter_gift_card_page_query()
S
52 6 26
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
56 4 17
add_gift_card_amount_callback()
S
57 4 16
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
69 4 6
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
remove_gift_card_amount_callback()
S
64 2 9
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_sold_individually_for_gift_cards()
S
78 1 8
show_advanced_product_settings()
S
91 1 2
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