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

Function Rating Maintainability Complexity Lines of code
wpgv_giftitems_shortcode()
D
7
58 537
wpgv_voucher_shortcode()
D
10
47 485
wpgv__doajax_item_pdf_save_func()
D
18
42 239
wpgv__doajax_voucher_pdf_save_func()
D
18
41 233
wpgv__doajax_gift_card_pdf_save_func()
D
18
39 235
wpgv_voucher_successful_shortcode()
D
27
34 129
FPDF::_parsepngstream()
C
30 29 112
GetInfoFromType1()
C
33 29 87
FPDF::MultiCell()
C
32 27 108
FPDF::_putfonts()
C
31 27 106
FPDF::Cell()
C
35 28 75
WPGV_Voucher_List::process_bulk_action()
B
36 21 80
WPGV_PDF_HTML_ROTATE::OpenTag()
B
42 22 46
WPGV_PDF_HTML_ROTATE::OpenTag()
B
42 22 46
WPGV_PDF::Code128()
B
37 20 67
FPDF::Image()
B
40 20 54
TTFParser::ParseCmap()
B
39 18 64
wpgv_stripe_success_page_shortcode()
B
31 15 108
Template_Voucher::generate_fields()
B
34 15 96
wpgv_voucher_template_shortcode()
B
30 10 147
FPDF::__construct()
A
35 13 81
wpgv_plugin_activation()
A
28
6 185
TTFParser::BuildCmap()
A
38 13 76
FPDF::SetFont()
A
44 15 43
show_payment_option_voucher()
A
49 16 25
WPGV_PDF::__construct()
A
33 8 142
FPDF::Write()
A
39 12 75
WPGV_Voucher_List::get_vouchers()
A
46 14 33
WPGiftVoucherAdminPages::export_orders()
A
39 11 64
FPDF::_beginpage()
A
44 12 44
wpgv_display_testmode_notice()
A
49 13 27
WPGV_PDF_HTML_ROTATE::ParseTable()
A
45 12 41
WPGV_PDF_HTML_ROTATE::ParseTable()
A
45 12 41
FPDF::AddPage()
A
42 11 55
FPDF::Output()
A
45 11 44
FPDF::_putpage()
A
43 11 44
GetInfoFromTrueType()
A
40 10 59
getSelectTemplateVoucher()
A
43 11 42
FPDF::_putimage()
A
44 11 41
WPGV_PDF_HTML_ROTATE::NbLines()
A
44 10 48
WPGV_PDF_HTML_ROTATE::NbLines()
A
44 10 48
wpgv_upgrade_completed()
A
40 9 59
Template_Voucher::save_post()
A
49 11 28
WPGV_Voucher_List::record_count()
A
45 10 40
wpgv_check_voucher_balance_shortcode()
A
40 7 75
TTFParser::BuildFont()
A
43 9 44
WPGV_Voucher_List::column_buyer_info()
A
40 7 72
MakeUnicodeArray()
A
46 9 41
MakeFont()
A
46 9 38
WPGV_Redeem_Voucher::woocommerce_after_calculate_totals()
A
47 9 38
TTFParser::ParseGlyf()
A
47 9 36
WPGV_PDF_HTML_ROTATE::CloseTag()
A
55 10 19
WPGV_PDF_HTML_ROTATE::CloseTag()
A
55 10 19
PayPalAuth::environment()
A
55 10 17
WPGV_Voucher_List::send_mail()
A
47 9 30
wpgv_voucher_amount()
A
39 6 74
TTFParser::ParsePost()
A
46 8 39
wpgv_create_plugin_pages()
A
36 4 96
FPDF::SetDisplayMode()
A
62 10 10
wpt_save_voucher_meta()
A
50 8 25
MakeWidthArray()
A
53 8 21
FPDF::_putcatalog()
A
54 8 19
get_data_template_voucher()
A
38 4 77
WPGV_PDF_HTML_ROTATE::WriteHTML2()
A
49 7 31
WPGV_PDF_HTML_ROTATE::WriteHTML2()
A
49 7 31
WPGV_Redeem_Voucher::add_gift_voucher_to_session()
S
50 7 28
FPDF::_putpages()
S
47 6 35
FPDF::_tounicodecmap()
S
44 5 49
WPGV_Voucher_List::column_default()
S
58 7 16
FPDF::_parsejpg()
S
55 7 16
format_categories_function()
S
45 5 45
WPGV_Voucher_Template::column_default()
S
60 7 13
MakeFontDescriptor()
S
50 6 27
WPGV_Redeem_Voucher::woocommerce_update_order()
S
53 6 22
FPDF::AddFont()
S
53 6 21
WPGIFT_Nag::catch_hide_notice()
S
53 6 20
MakeDefinitionFile()
S
49 5 31
WPGV_Gift_Voucher_Activity::record()
S
49 5 30
show_order_detail_voucher()
S
45 4 45
FPDF::_loadfont()
S
60 6 12
WPGV_Redeem_Voucher::woocommerce_get_order_item_totals()
S
50 5 26
WPGV_PDF_HTML_ROTATE::WriteHTML()
S
51 5 24
WPGV_PDF_HTML_ROTATE::WriteHTML()
S
51 5 24
wpgv_front_enqueue()
S
41 3 54
FPDF::_parsegif()
S
53 5 22
WPGV_PageTemplater::view_project_template()
S
55 5 20
TTFParser::ParseLoca()
S
56 5 19
do_wpgv_check_voucher_status()
S
55 5 19
WPGV_PDF_HTML_ROTATE::Rotate()
S
56 5 18
WPGV_PDF_HTML_ROTATE::Rotate()
S
56 5 18
TTFParser::BuildPost()
S
50 4 31
FPDF::_checkoutput()
S
59 5 16
WPGV_Redeem_Voucher::debit_gift_voucher()
S
57 5 15
WPGV_Voucher_Taxonomy_Image::add_script()
S
50 3 45
FPDF::SetFillColor()
S
63 6 9
FPDF::SetDrawColor()
S
65 6 8
FPDF::_readstream()
S
59 5 14
FPDF::_UTF8toUTF16()
S
51 4 27
show_shipping_method_voucher()
S
46 3 42
TTFParser::ParseName()
S
51 4 26
WPGV_Voucher_List::column_action()
S
46 3 39
wpgv_mailvarstr()
S
51 4 24
WPGV_PDF_HTML_ROTATE::WriteTable()
S
52 4 23
WPGV_PDF_HTML_ROTATE::WriteTable()
S
52 4 23
WPGV_Voucher_List::column_voucher_info()
S
48 3 35
TTFParser::BuildGlyf()
S
54 4 20
wpgv_hex2rgb()
S
56 4 18
wpgv__doajax_front_template()
S
55 4 18
TTFParser::ParseOffsetTable()
S
55 4 18
TTFParser::BuildLoca()
S
57 4 17
WPGV_Redeem_Voucher::woocommerce_checkout_create_order()
S
57 4 17
FPDF::_getpagesize()
S
57 4 17
MakeFontEncoding()
S
57 4 16
wpgv_get_image_url()
S
58 4 16
WPGV_Gift_Voucher::update_property()
S
57 4 16
FPDF::SetTextColor()
S
66 5 7
FPDF::Text()
S
61 5 10
FPDF::_escape()
S
68 5 6
FPDF::_out()
S
63 5 10
Message()
S
61 4 14
getTemplateVoucherSlider()
S
58 4 14
WPGV_Gift_Voucher::create_card()
S
58 4 14
TTFParser::AddGlyph()
S
62 4 12
WPGV_Redeem_Voucher::credit_gift_voucher()
S
61 4 12
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
TTFParser::ParseOS2()
S
55 3 20
WPGV_Gift_Voucher::__construct()
S
55 3 19
wpgv__doajax_get_item_data()
S
55 3 17
LoadMap()
S
56 3 16
WPGV_Redeem_Voucher::__construct()
S
49 2 30
TTFParser::ParseHmtx()
S
59 3 15
WPGV_PDF_HTML_ROTATE::SetStyle()
S
63 4 10
WPGV_PDF_HTML_ROTATE::SetStyle()
S
63 4 10
FPDF::Rect()
S
63 4 9
FPDF::_httpencode()
S
62 4 10
WPGV_Gift_Voucher::add_card()
S
58 3 15
WPGV_Voucher_Template::column_image()
S
63 4 10
FPDF::_enddoc()
S
51 2 29
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
TTFParser::Subset()
S
63 3 12
WPGV_Redeem_Voucher::filter_woocommerce_payment_complete_order_status_gift_voucher()
S
64 3 11
FPDF::Close()
S
63 3 11
WPGV_Gift_Voucher::get_by_id()
S
62 3 11
WPGV_PageTemplater::__construct()
S
53 2 25
codemenschen_voucher_template_category()
S
47 1 35
wpgv_voucher_category_function()
S
47 1 35
WPGV_Voucher_Taxonomy_Image::update_category_image()
S
57 2 20
TTFParser::ParseHead()
S
58 2 16
wpgv_catch_plugin_template()
S
67 3 8
WPGV_Voucher_Taxonomy_Image::load_media()
S
70 3 6
WPGV_Voucher_Taxonomy_Image::save_category_image()
S
71 3 5
WPGV_Voucher_Taxonomy_Image::updated_category_image()
S
68 3 7
FPDF::SetLeftMargin()
S
73 3 5
FPDF::SetFontSize()
S
66 3 8
FPDF::SetLink()
S
68 3 7
WPGV_Redeem_Voucher::woocommerce_paypal_args()
S
62 3 10
FPDF::_isascii()
S
65 3 9
FPDF::SetY()
S
67 3 8
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
FPDF::_putstreamobject()
S
60 2 14
WPGV_Voucher_List::paid_voucher()
S
60 2 13
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
TTFParser::CheckSum()
S
61 2 11
WPGV_Voucher_List::column_id()
S
52 1 24
WPGV_Gift_Voucher::get_activity()
S
57 1 22
FPDF::_putimages()
S
67 2 8
FPDF::Ln()
S
69 2 7
TTFParser::__destruct()
S
77 2 4
FPDF::SetCreator()
S
78 2 3
WPGV_PDF_HTML_ROTATE::CheckPageBreak()
S
76 2 4
FPDF::_putxobjectdict()
S
74 2 4
WPGV_Voucher_List::column_couponcode()
S
63 2 9
WPGIFT_Nag::get_install_date()
S
68 2 7
WPGV_Redeem_Voucher::wpgv_ajax_redeem()
S
63 2 10
TTFParser::LoadTable()
S
66 2 8
wpgv_display_install_notice()
S
66 2 8
FPDF::_parsepng()
S
66 2 8
FPDF::_putresourcedict()
S
63 2 10
FPDF::SetX()
S
71 2 6
FPDF::SetLineWidth()
S
72 2 5
FPDF::SetAuthor()
S
78 2 3
FPDF::SetCompression()
S
71 2 6
TTFParser::ReadShort()
S
67 2 7
wpgv_files_loaded()
S
63 2 10
WPGV_Redeem_Voucher::remove_gift_voucher_from_session()
S
68 2 7
wpgv_display_update_notice()
S
65 2 8
WPGV_Voucher_List::column_receipt()
S
63 2 9
WPGV_PageTemplater::get_instance()
S
71 2 6
wpgv_new_blog()
S
70 2 7
wpgv__doajax_get_itemcat_image()
S
65 2 8
FPDF::SetKeywords()
S
78 2 3
TTFParser::BuildHmtx()
S
65 2 9
wpgv_woocommerce_get_order_item_classname()
S
72 2 6
TTFParser::SetTable()
S
64 2 9
TTFParser::Seek()
S
71 2 5
TTFParser::Read()
S
78 2 3
WPGV_Gift_Voucher::check_balance_url()
S
64 2 10
WPGV_PDF_HTML_ROTATE::_endpage()
S
68 2 8
SaveToFile()
S
68 2 7
WPGV_Gift_Voucher::deactivate()
S
72 2 5
WPGiftVoucherAdminPages::get_instance()
S
71 2 6
wpgv_order_item_woocommerce_data_stores()
S
71 2 6
FPDF::_textstring()
S
72 2 5
wpgv_price_format()
S
61 2 10
WPGIFT_Nag::get_admin_querystring_array()
S
64 2 9
WC_Order_Item_WPGV_Gift_Voucher_Data_Store::save_item_data()
S
64 2 10
WPGV_PDF_HTML_ROTATE::CheckPageBreak()
S
76 2 4
FPDF::SetMargins()
S
69 2 7
get_position_currency_giftcard()
S
65 2 10
FPDF::SetTitle()
S
78 2 3
get_value_mode_gift_card_function()
S
75 2 4
FPDF::SetSubject()
S
78 2 3
WPGV_PDF_HTML_ROTATE::_endpage()
S
68 2 8
wpgv_order_item_woocommerce_get_items_key()
S
71 2 6
FPDF::GetStringWidth()
S
64 2 9
TTFParser::__construct()
S
72 2 5
FPDF::_dochecks()
S
75 2 4
WPGV_Gift_Voucher::get_balance()
S
66 2 8
WPGV_Gift_Voucher::debit()
S
68 2 7
WPGV_Gift_Voucher::credit()
S
68 2 7
FPDF::_newobj()
S
70 2 6
WPGV_Gift_Voucher::reactivate()
S
72 2 5
FPDF::_putinfo()
S
68 2 6
WPGV_Voucher_List::get_columns()
S
60 1 13
TTFParser::Parse()
S
63 1 13
WPGV_Voucher_Template::prepare_items()
S
62 1 12
WPGiftVoucherAdminPages::plugin_menu()
S
58 1 12
WPGV_PDF_HTML_ROTATE::ReplaceHTML()
S
61 1 12
WPGV_PDF_HTML_ROTATE::ReplaceHTML()
S
61 1 12
WPGV_Voucher_List::prepare_items()
S
62 1 12
WPGV_Voucher_Taxonomy_Image::add_category_image()
S
65 1 11
WPGV_Voucher_Template::get_columns()
S
62 1 11
WPGV_Gift_Voucher_Activity::get_activity_date()
S
92 1 1
TTFParser::ReadUShort()
S
74 1 4
WPGV_Gift_Voucher_Activity::get_note()
S
92 1 1
TTFParser::BuildHhea()
S
68 1 6
WPGIFT_Nag::insert_install_date()
S
70 1 6
WPGV_Voucher_List::no_items()
S
80 1 3
Warning()
S
80 1 3
WPGV_Voucher_Template::column_cb()
S
73 1 5
WPGV_Voucher_Template::no_items()
S
80 1 3
WC_Order_Item_WPGV_Gift_Voucher::set_amount()
S
79 1 3
FPDF::GetY()
S
83 1 3
WPGV_Voucher_List::column_voucheradd_time()
S
72 1 5
WPGV_Gift_Voucher::get_expiration_date()
S
92 1 1
Template_Voucher::__construct()
S
73 1 5
WPGV_Voucher_Taxonomy_Image::init()
S
65 1 8
FPDF::Error()
S
80 1 3
WPGV_Voucher_List::delete_voucher()
S
67 1 8
TTFParser::ParseHhea()
S
72 1 5
WPGV_PDF_HTML_ROTATE::PutLink()
S
68 1 7
WPGV_Voucher_Template::column_templateadd_time()
S
72 1 5
WPGiftVoucherAdminPages::wpgv_license_page()
S
80 1 3
FPDF::_putheader()
S
80 1 3
WPGV_PDF_HTML_ROTATE::PutLink()
S
68 1 7
TTFParser::Skip()
S
80 1 3
FPDF::GetX()
S
83 1 3
WPGiftVoucherAdminPages::screen_option_voucher()
S
64 1 10
WPGV_PDF::RotatedText()
S
73 1 5
WPGiftVoucherAdminPages::voucher_settings()
S
80 1 3
WPGV_Redeem_Voucher::woocommerce_order_status_completed()
S
78 1 3
WPGiftVoucherAdminPages::admin_register_assets()
S
69 1 6
FPDF::_readint()
S
74 1 4
TTFParser::Build()
S
66 1 10
FPDF::Link()
S
76 1 3
WPGV_Redeem_Voucher::wpgv_ajax_remove()
S
70 1 6
WPGiftVoucherAdminPages::view_voucher_details()
S
80 1 3
WPGV_Voucher_Template::get_bulk_actions()
S
71 1 6
FPDF::_getoffset()
S
80 1 3
FPDF::Header()
S
100 1 2
WPGV_Voucher_List::used_voucher()
S
63 1 10
WC_Order_Item_WPGV_Gift_Voucher::get_card_number()
S
79 1 3
FPDF::PageNo()
S
83 1 3
PayPalAuth::client()
S
80 1 3
WPGV_Voucher_Template::delete_template()
S
67 1 8
FPDF::AliasNbPages()
S
82 1 3
WPGV_Voucher_Taxonomy_Image::__construct()
S
91 1 2
WC_Order_Item_WPGV_Gift_Voucher::get_name()
S
80 1 3
FPDF::_putresources()
S
67 1 9
PDF::pixelsToMM()
S
80 1 3
WPGV_Voucher_List::get_bulk_actions()
S
67 1 8
WPGV_Voucher_List::column_cb()
S
71 1 6
WPGiftVoucherAdminPages::check_voucher_balance()
S
74 1 4
WPGV_Gift_Voucher_Activity::get_amount()
S
92 1 1
FPDF::AcceptPageBreak()
S
83 1 3
WPGiftVoucherAdminPages::set_screen()
S
81 1 3
wpgv_voucher_imagesize_setup()
S
76 1 4
WPGV_Gift_Voucher_Activity::get_gift_card_id()
S
92 1 1
FPDF::SetAutoPageBreak()
S
73 1 5
WPGV_PDF_HTML_ROTATE::__construct()
S
63 1 10
custom_mtypes()
S
69 1 7
WPGV_PDF_HTML_ROTATE::__construct()
S
63 1 10
WPGIFT_Nag::display_admin_notice()
S
73 1 4
WPGiftVoucherAdminPages::voucher_template()
S
80 1 3
WPGV_Redeem_Voucher::woocommerce_query_vars()
S
77 1 4
WPGV_Gift_Voucher::get_id()
S
92 1 1
WPGV_Gift_Voucher_Activity::set_note()
S
92 1 1
FPDF::_endpage()
S
81 1 3
WC_Order_Item_WPGV_Gift_Voucher::set_name()
S
80 1 3
FPDF::_puttrailer()
S
72 1 5
WPGV_Redeem_Voucher::woocommerce_init()
S
79 1 3
wpgv_woocommerce_order_type_to_group()
S
77 1 4
WPGV_PageTemplater::add_new_template()
S
76 1 4
wpgv_add_edit_form_multipart_encoding()
S
83 1 3
Error()
S
77 1 4
wpgv_px2mm()
S
80 1 3
FPDF::Line()
S
76 1 3
wpgv_do_output_buffer()
S
83 1 3
WPGiftVoucherAdminPages::new_voucher_template()
S
80 1 3
WPGV_Redeem_Voucher::woocommerce_account_menu_items()
S
75 1 4
FPDF::GetPageHeight()
S
83 1 3
WPGV_Gift_Voucher::get_payment_status()
S
92 1 1
TTFParser::Error()
S
81 1 3
WPGV_Redeem_Voucher::woocommerce_cart_totals_before_order_total()
S
78 1 3
WC_Order_Item_WPGV_Gift_Voucher::get_type()
S
82 1 3
FPDF::_putstream()
S
74 1 5
WPGV_Voucher_Template::get_templates()
S
65 1 8
TTFParser::BuildMaxp()
S
69 1 6
wpgv_redeem_voucher()
S
62 1 10
FPDF::_dounderline()
S
67 1 6
WPGV_Voucher_Template::__construct()
S
68 1 7
WPGV_Gift_Voucher_Activity::set_id()
S
92 1 1
WPGiftVoucherAdminPages::screen_option_template()
S
64 1 10
FPDF::SetRightMargin()
S
82 1 3
WPGV_Redeem_Voucher::woocommerce_after_cart_contents()
S
75 1 4
WC_Order_Item_WPGV_Gift_Voucher::get_amount()
S
79 1 3
PDF::centreImage()
S
66 1 9
WPGV_Gift_Voucher::get_number()
S
92 1 1
WC_Order_Item_WPGV_Gift_Voucher_Data_Store::read()
S
65 1 9
wpgv_txtentities()
S
73 1 5
wpgv_em()
S
72 1 5
WPGV_Gift_Voucher::set_expiration_date()
S
90 1 1
Template_Voucher::row_format()
S
71 1 7
Template_Voucher::add_meta_box_callback()
S
72 1 5
wpgv_settings_page_link()
S
71 1 5
WPGV_Redeem_Voucher::woocommerce_before_checkout_form()
S
75 1 4
FPDF::_put()
S
80 1 3
WPGV_Voucher_Template::record_count()
S
72 1 5
TTFParser::ParseMaxp()
S
74 1 5
FPDF::SetXY()
S
76 1 4
WPGV_Gift_Voucher_Activity::set_amount()
S
92 1 1
WPGiftVoucherAdminPages::__construct()
S
71 1 5
WPGV_Gift_Voucher_Activity::set_action()
S
92 1 1
WPGiftVoucherAdminPages::voucher_list()
S
80 1 3
WPGIFT_Nag::setup()
S
78 1 4
WPGV_Redeem_Voucher::woocommerce_order_status_processing()
S
78 1 3
FPDF::AddLink()
S
72 1 5
WPGV_Voucher_List::__construct()
S
68 1 7
WPGV_Gift_Voucher_Activity::set_gift_card_id()
S
92 1 1
FPDF::Footer()
S
100 1 2
WC_Order_Item_WPGV_Gift_Voucher::set_card_number()
S
79 1 3
TTFParser::ReadULong()
S
74 1 4
wpgv_add_voucher_metaboxes()
S
78 1 3
wpgv_plugin_deactivation()
S
82 1 3
WPGV_Gift_Voucher_Activity::set_activity_date()
S
92 1 1
FPDF::GetPageWidth()
S
83 1 3
WPGV_Voucher_Template::column_title()
S
65 1 8
Notice()
S
80 1 3
wpgiftv_plugin_init()
S
77 1 3
WPGV_Gift_Voucher_Activity::get_id()
S
92 1 1
WPGiftVoucherAdminPages::redeem_voucher()
S
80 1 3
WPGV_Gift_Voucher::log_activity()
S
78 1 3
WPGV_Redeem_Voucher::woocommerce_order_status_cancelled()
S
78 1 3
FPDF::SetTopMargin()
S
82 1 3
WPGV_Gift_Voucher::get_error_message()
S
92 1 1
WPGV_Redeem_Voucher::woocommerce_order_status_refunded()
S
78 1 3
PDF::resizeToFit()
S
63 1 10
WPGV_Redeem_Voucher::woocommerce_review_order_before_order_total()
S
78 1 3
get_data_settings_voucher()
S
69 1 6
WPGV_Gift_Voucher_Activity::get_action()
S
92 1 1
WPGV_Gift_Voucher::get_create_date()
S
92 1 1
WPGV_Redeem_Voucher::check_voucher_balance_endpoint()
S
75 1 4
WPGV_Gift_Voucher::get_active()
S
92 1 1