Code Analysis: Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported) 4.1.3

Function Rating Maintainability Complexity Lines of code
wpgv_giftitems_shortcode()
D
7
58 537
wpgv_voucher_shortcode()
D
10
47 485
wpgv__doajax_gift_card_pdf_save_func()
D
16
42 272
wpgv__doajax_item_pdf_save_func()
D
19
39 227
wpgv__doajax_voucher_pdf_save_func()
D
19
38 221
wpgv_voucher_successful_shortcode()
D
26
32 140
WPGV_Voucher_List::process_bulk_action()
B
36 21 79
WPGV_PDF_HTML_ROTATE::OpenTag()
B
42 22 46
wpgv_stripe_success_page_shortcode()
B
31 18 99
WPGV_PDF::Code128()
B
37 20 67
Template_Voucher::generate_fields()
B
37 17 75
wpgv_voucher_template_shortcode()
B
30 10 147
wpgv_plugin_activation()
A
28
6 183
show_payment_option_voucher()
A
49 16 25
WPGV_PDF::__construct()
A
33 8 142
WPGV_Voucher_List::get_vouchers()
A
46 14 33
WPGV_Voucher_List::record_count()
A
48 14 30
WPGiftVoucherAdminPages::export_orders()
A
39 11 64
wpgv_display_testmode_notice()
A
49 13 27
WPGV_PDF_HTML_ROTATE::ParseTable()
A
45 12 41
getSelectTemplateVoucher()
A
43 11 42
WPGV_PDF_HTML_ROTATE::NbLines()
A
44 10 48
wpgv_upgrade_completed()
A
40 9 59
Template_Voucher::save_post()
A
50 11 26
wpgv_check_voucher_balance_shortcode()
A
40 7 73
WPGV_Voucher_List::column_buyer_info()
A
40 7 72
WPGV_Redeem_Voucher::woocommerce_after_calculate_totals()
A
47 9 38
WPGV_PDF_HTML_ROTATE::CloseTag()
A
55 10 19
WPGV_Voucher_List::send_mail()
A
47 9 30
wpgv_voucher_amount()
A
39 6 74
wpt_save_voucher_meta()
A
51 8 24
wpgv_create_plugin_pages()
A
37 3 94
get_data_template_voucher()
A
38 4 77
WPGV_PDF_HTML_ROTATE::WriteHTML2()
A
49 7 31
WPGV_Redeem_Voucher::add_gift_voucher_to_session()
S
50 7 28
WPGV_Voucher_List::column_default()
S
58 7 16
format_categories_function()
S
45 5 45
WPGV_Voucher_Template::column_default()
S
60 7 13
WPGV_Redeem_Voucher::woocommerce_update_order()
S
53 6 22
WPGIFT_Nag::catch_hide_notice()
S
54 6 19
show_order_detail_voucher()
S
45 4 45
WPGV_Gift_Voucher_Activity::record()
S
49 5 30
WPGV_Redeem_Voucher::woocommerce_get_order_item_totals()
S
50 5 26
wpgv_front_enqueue()
S
41 3 54
WPGV_PDF_HTML_ROTATE::WriteHTML()
S
51 5 24
WPGV_PageTemplater::view_project_template()
S
54 5 23
do_wpgv_check_voucher_status()
S
55 5 19
WPGV_PDF_HTML_ROTATE::Rotate()
S
56 5 18
WPGV_Redeem_Voucher::debit_gift_voucher()
S
57 5 15
WPGV_Voucher_Taxonomy_Image::add_script()
S
50 3 45
show_shipping_method_voucher()
S
46 3 42
wpgv_mailvarstr()
S
51 4 24
WPGV_PDF_HTML_ROTATE::WriteTable()
S
52 4 23
WPGV_Voucher_List::column_voucher_info()
S
49 3 35
WPGV_Redeem_Voucher::woocommerce_checkout_create_order()
S
57 4 17
WPGV_Gift_Voucher::update_property()
S
57 4 16
wpgv_get_image_url()
S
59 4 16
WPGV_Gift_Voucher::create_card()
S
58 4 14
getTemplateVoucherSlider()
S
58 4 14
wpgv__doajax_front_template()
S
57 4 14
wpgv_hex2rgb()
S
58 4 14
WPGV_Redeem_Voucher::credit_gift_voucher()
S
61 4 12
WPGV_Voucher_List::column_action()
S
51 3 26
WPGIFT_Nag::bind()
S
61 4 11
wpgv_voucher_product_function()
S
42 1 53
WPGV_Gift_Voucher_Activity::get_card_activity()
S
53 3 21
codemenschen_voucher_template()
S
43 1 51
WPGV_Gift_Voucher::__construct()
S
55 3 19
WPGV_PDF_HTML_ROTATE::SetStyle()
S
63 4 10
WPGV_Gift_Voucher::add_card()
S
58 3 15
WPGV_Voucher_Template::column_image()
S
63 4 10
WPGV_Redeem_Voucher::__construct()
S
49 2 30
WPGV_Gift_Voucher::has_expired()
S
60 3 14
show_overview_voucher_template()
S
46 1 43
wpgv_voucher_cancel_shortcode()
S
60 3 12
wpgv__doajax_get_item_data()
S
60 3 11
WPGV_Redeem_Voucher::filter_woocommerce_payment_complete_order_status_gift_voucher()
S
64 3 11
WPGV_Gift_Voucher::get_by_id()
S
62 3 11
WPGV_PageTemplater::__construct()
S
53 2 25
wpgv_getApiContext()
S
53 2 24
wpgv_voucher_category_function()
S
47 1 35
codemenschen_voucher_template_category()
S
47 1 35
WPGV_Voucher_Taxonomy_Image::update_category_image()
S
57 2 20
wpgv_catch_plugin_template()
S
67 3 8
WPGV_Voucher_Taxonomy_Image::load_media()
S
70 3 6
WPGV_Redeem_Voucher::woocommerce_paypal_args()
S
62 3 10
WPGV_Voucher_Taxonomy_Image::save_category_image()
S
71 3 5
WPGV_Voucher_Taxonomy_Image::updated_category_image()
S
68 3 7
WPGV_Gift_Voucher::adjust_balance()
S
63 3 10
WPGV_Voucher_Template::process_bulk_action()
S
65 3 9
Template_Voucher::admin_footer()
S
66 1 29
set_up_gift_voucher()
S
53 1 27
Template_Voucher::add_meta_boxes()
S
63 2 12
WPGV_PageTemplater::register_project_templates()
S
62 2 11
WPGV_Gift_Voucher::get_activity()
S
57 1 22
WPGV_Gift_Voucher::credit()
S
68 2 7
WPGV_Gift_Voucher::reactivate()
S
72 2 5
WPGV_Gift_Voucher::check_balance_url()
S
64 2 10
WPGV_PageTemplater::get_instance()
S
71 2 6
WPGiftVoucherAdminPages::get_instance()
S
71 2 6
WPGV_Voucher_List::column_couponcode()
S
63 2 9
WPGV_Redeem_Voucher::wpgv_ajax_redeem()
S
63 2 10
WPGV_Voucher_List::column_receipt()
S
64 2 9
WPGV_Redeem_Voucher::remove_gift_voucher_from_session()
S
68 2 7
WPGIFT_Nag::get_install_date()
S
68 2 7
wpgv_order_item_woocommerce_get_items_key()
S
71 2 6
WPGV_Gift_Voucher::debit()
S
68 2 7
wpgv_woocommerce_get_order_item_classname()
S
72 2 6
wpgv_new_blog()
S
70 2 7
wpgv_files_loaded()
S
63 2 10
WPGV_Gift_Voucher::get_balance()
S
66 2 8
get_value_mode_gift_card_function()
S
75 2 4
wpgv_display_install_notice()
S
66 2 8
get_position_currency_giftcard()
S
65 2 10
WPGV_PDF_HTML_ROTATE::_endpage()
S
68 2 8
wpgv_order_item_woocommerce_data_stores()
S
71 2 6
wpgv_display_update_notice()
S
65 2 8
wpgv_price_format()
S
61 2 10
wpgv__doajax_get_itemcat_image()
S
65 2 8
WPGV_PDF_HTML_ROTATE::CheckPageBreak()
S
76 2 4
Template_Voucher::add_meta_box_callback()
S
70 2 6
WC_Order_Item_WPGV_Gift_Voucher_Data_Store::save_item_data()
S
64 2 10
WPGV_Gift_Voucher::deactivate()
S
72 2 5
WPGV_Voucher_List::get_columns()
S
60 1 13
WPGV_Voucher_Template::prepare_items()
S
62 1 12
WPGiftVoucherAdminPages::plugin_menu()
S
58 1 12
WPGV_Voucher_List::prepare_items()
S
62 1 12
WPGV_PDF_HTML_ROTATE::ReplaceHTML()
S
61 1 12
WPGV_Voucher_List::column_id()
S
60 1 11
WPGV_Voucher_Template::get_columns()
S
62 1 11
WPGV_Voucher_Taxonomy_Image::add_category_image()
S
66 1 11
wpgiftv_plugin_init()
S
77 1 3
WPGiftVoucherAdminPages::wpgv_license_page()
S
80 1 3
wpgv_redeem_voucher()
S
62 1 10
WPGV_Gift_Voucher_Activity::get_activity_date()
S
92 1 1
WPGV_PDF::RotatedText()
S
73 1 5
WC_Order_Item_WPGV_Gift_Voucher::set_name()
S
80 1 3
WPGIFT_Nag::setup()
S
78 1 4
WPGV_Gift_Voucher::get_expiration_date()
S
92 1 1
WPGV_Redeem_Voucher::woocommerce_before_checkout_form()
S
75 1 4
WPGiftVoucherAdminPages::screen_option_voucher()
S
64 1 10
WPGiftVoucherAdminPages::admin_register_assets()
S
69 1 6
WPGIFT_Nag::display_admin_notice()
S
74 1 4
wpgv_do_output_buffer()
S
83 1 3
WPGV_Gift_Voucher_Activity::set_activity_date()
S
92 1 1
WPGiftVoucherAdminPages::voucher_settings()
S
80 1 3
WPGV_Gift_Voucher::get_id()
S
92 1 1
WPGiftVoucherAdminPages::voucher_list()
S
80 1 3
WPGV_Voucher_List::delete_voucher()
S
67 1 8
WPGV_Gift_Voucher_Activity::get_id()
S
92 1 1
WPGV_Voucher_Taxonomy_Image::__construct()
S
91 1 2
WPGV_Voucher_Template::column_title()
S
63 1 9
wpgv_add_edit_form_multipart_encoding()
S
83 1 3
WPGV_Redeem_Voucher::woocommerce_order_status_cancelled()
S
78 1 3
WPGiftVoucherAdminPages::__construct()
S
71 1 5
PDF::centreImage()
S
66 1 9
WPGV_Voucher_List::column_cb()
S
74 1 5
PDF::resizeToFit()
S
63 1 10
WPGV_PageTemplater::add_new_template()
S
76 1 4
wpgv_txtentities()
S
73 1 5
WPGiftVoucherAdminPages::new_voucher_template()
S
80 1 3
wpgv_px2mm()
S
80 1 3
WPGiftVoucherAdminPages::voucher_template()
S
80 1 3
get_data_settings_voucher()
S
69 1 6
WPGV_Voucher_Template::get_templates()
S
65 1 8
WPGV_Gift_Voucher::get_number()
S
92 1 1
WPGV_Redeem_Voucher::woocommerce_review_order_before_order_total()
S
78 1 3
WPGIFT_Nag::insert_install_date()
S
70 1 6
WPGV_Voucher_Template::delete_template()
S
67 1 8
WPGV_Redeem_Voucher::woocommerce_order_status_completed()
S
78 1 3
WPGV_Gift_Voucher::set_expiration_date()
S
90 1 1
WPGV_Voucher_Template::__construct()
S
68 1 7
wpgv_em()
S
72 1 5
WPGV_Gift_Voucher::log_activity()
S
78 1 3
WPGV_Gift_Voucher::get_error_message()
S
92 1 1
WPGV_Voucher_List::column_voucheradd_time()
S
72 1 5
WPGV_PDF_HTML_ROTATE::__construct()
S
63 1 10
WC_Order_Item_WPGV_Gift_Voucher::get_name()
S
80 1 3
WPGV_Voucher_Template::no_items()
S
80 1 3
WPGV_Gift_Voucher_Activity::get_note()
S
92 1 1
WPGV_Redeem_Voucher::woocommerce_order_status_processing()
S
78 1 3
WPGV_Voucher_Taxonomy_Image::init()
S
65 1 8
WPGV_Gift_Voucher_Activity::get_amount()
S
92 1 1
WPGV_Redeem_Voucher::woocommerce_after_cart_contents()
S
75 1 4
WPGiftVoucherAdminPages::view_voucher_details()
S
80 1 3
WPGV_Gift_Voucher_Activity::get_action()
S
92 1 1
WPGV_Gift_Voucher::get_create_date()
S
92 1 1
WPGiftVoucherAdminPages::check_voucher_balance()
S
74 1 4
WPGV_Redeem_Voucher::woocommerce_account_menu_items()
S
75 1 4
WC_Order_Item_WPGV_Gift_Voucher_Data_Store::read()
S
65 1 9
WPGiftVoucherAdminPages::set_screen()
S
81 1 3
WPGV_PDF_HTML_ROTATE::PutLink()
S
68 1 7
Template_Voucher::row_format()
S
71 1 7
WPGV_Voucher_List::__construct()
S
68 1 7
WPGV_Redeem_Voucher::woocommerce_cart_totals_before_order_total()
S
78 1 3
WPGiftVoucherAdminPages::redeem_voucher()
S
80 1 3
WPGV_Redeem_Voucher::woocommerce_init()
S
79 1 3
WPGV_Voucher_List::get_bulk_actions()
S
67 1 8
WPGV_Redeem_Voucher::woocommerce_order_status_refunded()
S
78 1 3
WC_Order_Item_WPGV_Gift_Voucher::get_type()
S
82 1 3
WPGV_Gift_Voucher_Activity::get_gift_card_id()
S
92 1 1
WPGV_Voucher_List::no_items()
S
80 1 3
wpgv_plugin_deactivation()
S
82 1 3
WPGV_Voucher_Template::column_templateadd_time()
S
72 1 5
WPGV_Gift_Voucher_Activity::set_action()
S
92 1 1
WC_Order_Item_WPGV_Gift_Voucher::set_card_number()
S
79 1 3
WPGV_Gift_Voucher::get_payment_status()
S
92 1 1
wpgv_add_voucher_metaboxes()
S
78 1 3
wpgv_settings_page_link()
S
71 1 5
Template_Voucher::__construct()
S
73 1 5
WPGV_Gift_Voucher_Activity::set_amount()
S
92 1 1
WPGV_Gift_Voucher_Activity::set_gift_card_id()
S
92 1 1
PDF::pixelsToMM()
S
80 1 3
WPGV_Gift_Voucher_Activity::set_note()
S
92 1 1
WPGV_Redeem_Voucher::check_voucher_balance_endpoint()
S
75 1 4
WPGV_Gift_Voucher_Activity::set_id()
S
92 1 1
WPGV_Voucher_List::used_voucher()
S
63 1 10
WPGV_Voucher_Template::record_count()
S
72 1 5
WC_Order_Item_WPGV_Gift_Voucher::get_card_number()
S
79 1 3
wpgv_voucher_imagesize_setup()
S
76 1 4
WC_Order_Item_WPGV_Gift_Voucher::set_amount()
S
79 1 3
WPGiftVoucherAdminPages::screen_option_template()
S
64 1 10
WC_Order_Item_WPGV_Gift_Voucher::get_amount()
S
79 1 3
WPGV_Voucher_List::paid_voucher()
S
63 1 10
WPGIFT_Nag::get_admin_querystring_array()
S
75 1 4
WPGV_Voucher_Template::get_bulk_actions()
S
71 1 6
custom_mtypes()
S
69 1 7
WPGV_Gift_Voucher::get_active()
S
92 1 1
WPGV_Redeem_Voucher::woocommerce_query_vars()
S
77 1 4
wpgv_woocommerce_order_type_to_group()
S
77 1 4
WPGV_Redeem_Voucher::wpgv_ajax_remove()
S
70 1 6
WPGV_Voucher_Template::column_cb()
S
73 1 5