Code Analysis: Billmate Payment Gateway for WooCommerce 3.12.2

Function Rating Maintainability Complexity Lines of code
WC_Gateway_Billmate::common_check_ipn_response()
D
0
186 606
WC_Gateway_Billmate_Invoice::process_payment()
D
17
54 240
WC_Gateway_Billmate_Invoice::getAddress()
D
21
59 150
credit_billmate_order()
D
19
51 223
WC_Gateway_Billmate_Checkout::billmate_update_address()
D
23
55 156
WC_Gateway_Billmate_Checkout::check_if_order_should_be_updated_or_created()
D
20
49 196
WC_Gateway_Billmate_Invoice::getAddressPayment()
D
20
48 198
WC_Gateway_Billmate_Partpayment::getAddressPayment()
D
20
48 198
WC_Gateway_Billmate_Partpayment::process_payment()
D
20
48 188
WC_Gateway_Billmate_Partpayment::getAddress()
D
23
50 144
WC_Gateway_Billmate_Partpayment::print_product_monthly_cost()
D
25
47 135
WC_Gateway_Billmate_Partpayment::is_available()
D
25
43 139
init_billmate_gateway()
D
11
2 698
WC_Gateway_Billmate_Partpayment::payment_fields_options()
D
24
36 184
WC_Gateway_Billmate_Partpayment::payment_fields()
D
20
29 283
BillmateOrder::getArticlesData()
D
23
33 203
WC_Gateway_Billmate_Cardpay::process_payment()
D
24
33 165
WC_Gateway_Billmate_Invoice_Extra::billmate_invoice_checkout_field_process()
D
39 38 44
WC_Gateway_Billmate_Partpayment::billmate_partpayment_checkout_field_process()
D
40 37 42
WC_Gateway_Billmate_Invoice::payment_fields()
C
25
20 225
cancel_billmate_order()
C
33 27 97
WC_Gateway_Billmate_Partpayment::__construct()
C
37 29 55
WC_Gateway_Billmate_Invoice::__construct()
C
31 25 98
BillmateStringEncoding::toUTF8()
C
38 26 66
WC_Gateway_Billmate_Cardpay::__construct()
B
34 23 75
WC_Gateway_Billmate_Checkout::billmate_complete_order()
B
34 22 86
WC_Gateway_Billmate_Invoice::is_available()
B
42 23 44
utf8_to_unicode()
B
37 21 72
BillmateOrder::getCartShipping()
B
39 21 60
WC_Gateway_Billmate_Bankpay::is_available()
B
42 22 43
WC_Gateway_Billmate_Bankpay::__construct()
B
38 21 56
WC_Gateway_Billmate_Invoice::maybe_add_handling_to_order()
B
31 16 126
BillmateCalc::calc_apr()
B
41 21 50
utf8_substr()
B
39 19 65
billmate_gateway_admin_invoice_settings_update()
B
47 21 34
WC_Gateway_Billmate_Cardpay::is_available()
B
44 20 40
get_billmate_cart()
B
31 14 129
BillmateCountry::getCountryData()
B
42 19 53
BillmateCommon::activate_invoice()
B
40 18 54
utf8_strtolower()
B
22
5 231
utf8_strtoupper()
B
22
5 231
billmate_checkout_settings_nag()
A
45 16 36
return_billmate_price()
A
39 14 62
get_billmate_checkout()
A
42 15 44
WC_Gateway_Billmate_Cardpay::process_scheduled_payment()
A
34 12 88
WC_Gateway_Billmate_Invoice::process_scheduled_payment()
A
34 11 91
WC_Gateway_Billmate_Checkout::getCheckoutDataFromOrderId()
A
36 11 75
WC_Gateway_Billmate_Partpayment::update_billmatepclasses_from_billmate()
A
39 12 59
BillmateCalc::getCheapestPClass()
A
49 14 27
WC_Gateway_Billmate_Checkout::init_form_fields()
A
33 8 114
BillmateAdminNotice::show_notices()
A
48 13 30
BillmateCountry::fromCode()
A
53 13 24
WC_Gateway_Billmate_Partpayment::get_title()
A
38 10 69
billmate_gateway_admin_cardpay_settings_update()
A
53 13 23
billmate_gateway_admin_bankpay_settings_update()
A
53 13 23
billmate_gateway_admin_partpayment_settings_update()
A
53 13 23
WC_Gateway_Billmate_Bankpay::process_payment()
A
38 10 66
WC_Gateway_Billmate_Invoice::init_form_fields()
A
35 8 94
WC_Gateway_Billmate_Checkout::get_url()
A
48 12 33
BillmateCountry::getCode()
A
55 13 18
billmate_settings_nag()
A
55 13 17
WC_Gateway_Billmate_Partpayment::update_billmatepclasses_from_frontend()
A
39 10 60
WC_Gateway_Billmate::billmate_load_scripts_styles()
A
48 11 29
update_billmate_gateway()
A
52 11 23
WC_Gateway_Billmate_Checkout::updateCheckout()
A
39 8 66
WC_Gateway_Billmate_Partpayment::init_form_fields()
A
35 6 95
WC_Gateway_Billmate_Partpayment::get_country_data()
A
41 8 63
utf8_from_unicode()
A
48 10 30
WC_Gateway_Billmate_Checkout::__construct()
A
40 8 59
WC_Gateway_Billmate_Cardpay::init_form_fields()
A
37 6 86
WC_Gateway_Billmate_Partpayment::get_terms_country()
A
54 10 20
BillmateCalc::total_credit_purchase_cost()
A
53 10 20
activate_billmate_gateway()
A
49 9 30
BillmateOrder::getCustomerShippingData()
A
41 7 60
WC_Gateway_Billmate_Bankpay::init_form_fields()
A
38 6 75
BillmateEncoding::getRegexp()
A
51 9 28
WC_Gateway_Billmate_Checkout::billmate_update_order()
A
45 7 43
WC_Gateway_Billmate_Checkout::is_available()
A
53 8 23
BillmateLanguage::fromCode()
A
56 8 20
BillmateLanguage::getCode()
A
56 8 20
BillmateOrder::getCustomerNrData()
A
57 8 16
BillmateOrder::getCustomerBillingData()
A
44 6 46
BillmateOrder::getOrderFeesAsOrderArticles()
S
49 7 28
WC_Gateway_Billmate_Bankpay::get_invoice_terms_link_text()
S
53 7 26
WC_Gateway_Billmate_Partpayment::get_account_terms_link_text()
S
53 7 26
WC_Gateway_Billmate_Cardpay::get_invoice_terms_link_text()
S
53 7 26
WC_Gateway_Billmate_Invoice::get_invoice_terms_link_text()
S
53 7 26
BillmateCalc::get_lowest_payment_for_account()
S
53 7 23
WC_Gateway_Billmate_Checkout::change_to_bco()
S
55 7 20
BillmateCommon::page_init()
S
38 1 107
BillmateCalc::irr()
S
50 6 31
BillmateCommon::create_admin_page()
S
42 1 106
BillMate::verify_hash()
S
56 7 16
wc_bm_errors()
S
52 6 26
WC_Gateway_Billmate_Checkout::create_order()
S
56 6 21
BillmateProduct::getTitle()
S
54 6 21
BillmateCalc::fulpacc()
S
54 6 20
WC_Gateway_Billmate_Checkout::initCheckout()
S
56 6 15
BillmateCurrency::fromCode()
S
60 6 15
utf8_strrpos()
S
54 5 21
utf8_strpos()
S
55 5 19
isEqual()
S
56 5 19
BillmateCalc::fixed()
S
56 5 19
BillmateCommon::verify_credentials()
S
55 5 18
BillmateProduct::getTaxRate()
S
57 5 17
BillmateCalc::get_payarr()
S
56 5 16
WC_Gateway_Billmate_Checkout::is_cart_items_in_stock()
S
63 6 10
BillmateCurrency::getCode()
S
61 5 14
WC_Gateway_Billmate_Checkout::billmate_checkout_cart_callback_update()
S
50 4 28
BillmateOrder::getFormattedInvoiceFee()
S
51 4 27
splitAddress()
S
56 4 18
WC_Gateway_Billmate_Checkout::updateCheckoutFromOrderId()
S
56 4 17
BillmateStringEncoding::fixUTF8()
S
58 4 15
BillmateCommon::get_address_fields()
S
52 3 30
WC_Gateway_Billmate_Checkout::get_title()
S
59 4 15
BillmateCalc::calc_monthly_cost()
S
63 5 9
WC_Gateway_Billmate_Invoice_Extra::add_invoice_fee_process()
S
58 4 14
BillmateStringEncoding::toWin1252()
S
61 4 12
BillMate::__construct()
S
62 4 11
BillmateCalc::pRound()
S
62 4 11
BillMate::call()
S
52 3 25
WC_Gateway_Billmate_Invoice::admin_options()
S
57 3 21
BillMate::curl()
S
54 3 21
BillmateCalc::apr_payin_X_months()
S
55 3 19
BillmateCommon::getaddress()
S
56 3 17
BillMate::trim_array()
S
65 4 9
BillMate::out()
S
67 4 7
WC_Gateway_Billmate::__construct()
S
58 3 14
BillmateAdminNotice::_add_notice()
S
61 3 13
WC_Gateway_Billmate_Invoice::billmate_invoice_terms_js()
S
64 3 12
WC_Gateway_Billmate_Cardpay::billmate_invoice_terms_js()
S
64 3 12
BillmateOrder::getPaymentInfoData()
S
61 3 12
BillmateProduct::getSku()
S
62 3 12
WC_Gateway_Billmate_Bankpay::billmate_invoice_terms_js()
S
64 3 12
WC_Gateway_Billmate_Partpayment::billmate_partpayment_terms_js()
S
64 3 12
BillmateOrder::getCustomerPnoData()
S
63 3 11
WC_Gateway_Billmate_Checkout::woocommerce_cart_updated()
S
62 3 11
billmate_get_available_payment_methods()
S
62 3 11
BillmateStringEncoding::normalizeEncoding()
S
56 2 19
return_billmate_partpayment_info_link()
S
57 2 16
BillmateEncoding::checkPNO()
S
65 3 9
WC_Gateway_Billmate_Cardpay::payment_fields()
S
69 3 6
BillmateStringEncoding::encode()
S
71 3 5
BillmateCalc::annuity()
S
63 3 10
BillmateCommon::cancelonstatus_callback()
S
63 3 9
BillmateCommon::getaddress_callback()
S
63 3 9
BillmateCommon::activateonstatus_callback()
S
63 3 9
WC_Gateway_Billmate_Checkout::add_billmate_incomplete_order_statuses()
S
59 2 15
WC_Gateway_Billmate_Checkout::get_fee_id()
S
67 3 8
WC_Gateway_Billmate_Invoice_Extra::__construct()
S
65 3 8
billmate_set_query_arg()
S
64 3 9
BillmateOrder::maybeConvertCurrency()
S
70 3 6
convertToUTF8()
S
67 3 8
WC_Gateway_Billmate_Bankpay::payment_fields()
S
69 3 6
WC_Gateway_Billmate_Checkout::create_wc_order()
S
60 2 13
billmate_add_query_arg()
S
61 2 12
BillmateOrder::getCartShippingData()
S
63 2 11
WC_Gateway_Billmate_Cardpay::admin_options()
S
62 1 17
WC_Gateway_Billmate_Checkout::add_invoice_fee_process()
S
57 1 17
WC_Gateway_Billmate_Bankpay::admin_options()
S
62 1 17
WC_Gateway_Billmate_Partpayment::woocommerce_clean()
S
70 2 6
WC_Gateway_Billmate_Bankpay::injectscripts()
S
68 2 7
BillmateAdminNotice::get_instance()
S
71 2 6
maby_update_billmate_gateway()
S
73 2 5
WC_Gateway_Billmate_Partpayment::injectscripts()
S
68 2 7
BillmateOrder::getCustomerData()
S
63 2 10
BillmateOrder::utf8Encode()
S
71 2 6
BillMate::__call()
S
74 2 4
BillmateStringEncoding::removeBOM()
S
69 2 6
WC_Gateway_Billmate_Invoice::woocommerce_clean()
S
70 2 6
WC_Gateway_Billmate_Cardpay::injectscripts()
S
68 2 7
WC_Gateway_Billmate::add_data_attribute_filter()
S
69 2 7
WC_Gateway_Billmate::woocommerce_clean()
S
70 2 6
BillmateCommon::clear_pno()
S
73 2 5
add_billmate_popup()
S
68 2 7
BillmateCalc::apr_fixed()
S
62 2 10
WC_Gateway_Billmate_Invoice::injectscripts()
S
68 2 7
WC_Gateway_Billmate_Checkout::woocommerce_clean()
S
70 2 6
WC_Gateway_Billmate::billmate_load_custom_css()
S
69 2 6
BillmateCalc::apr_annuity()
S
64 2 9
WC_Gateway_Billmate_Checkout::add_billmate_incomplete_to_order_statuses()
S
71 2 6
WC_Gateway_Billmate_Checkout::billmate_update_order_comments()
S
68 2 7
billmate_gateway_admin_error_message()
S
70 2 6
BillmateOrder::fetch_shop_country()
S
68 2 7
BillmateCalc::npv()
S
67 2 7
WC_Gateway_Billmate_Partpayment::admin_options()
S
63 1 15
billmate_gateway_admin_info_message()
S
70 2 6
WC_Gateway_Billmate_Cardpay::check_ipn_response()
S
60 1 14
WC_Gateway_Billmate_Bankpay::check_ipn_response()
S
60 1 14
WC_Gateway_Billmate_Checkout::check_ipn_response()
S
60 1 14
WC_Gateway_Billmate_Partpayment::correct_lang_billmate()
S
69 1 7
BillmateCommon::__construct()
S
63 1 10
BillmateOrder::setAllowedCountries()
S
81 1 3
WC_Gateway_Billmate_Partpayment::validate_fields()
S
91 1 2
BillmateOrder::__construct()
S
66 1 9
BillmateCurrency::__construct()
S
91 1 2
BillmateOrder::getArticlesTotal()
S
82 1 3
BillmateProduct::__construct()
S
77 1 4
wordfence_notice()
S
72 1 5
BillmateStringEncoding::UTF8FixWin1252Chars()
S
78 1 3
WC_Gateway_Billmate_Partpayment::receipt_page()
S
78 1 3
WC_Gateway_Billmate_Checkout_Extra::__construct()
S
79 1 3
BillmateAdminNotice::_get_notices()
S
82 1 3
BillmateAdminNotice::add_error()
S
74 1 4
BillmateAdminNotice::add_success()
S
74 1 4
billmate_gateway_admin_message_checkout_available()
S
71 1 5
return_billmate_basic_img()
S
77 1 4
utf8_strlen()
S
80 1 3
add_billmate_gateway()
S
68 1 8
WC_Gateway_Billmate_Partpayment::get_monthly_cost_shop_prio()
S
83 1 3
BillmateOrder::getArticlesTotalTax()
S
82 1 3
BillmateEncoding::__construct()
S
91 1 2
BillmateOrder::is_wc3()
S
79 1 3
WC_Gateway_Billmate_Bankpay::receipt_page()
S
78 1 3
BillmateLanguage::__construct()
S
91 1 2
WC_Gateway_Billmate_Cardpay::get_billmate_invoice_fee_product()
S
83 1 3
BillmateFlags::__construct()
S
91 1 2
BillmateCalc::irr2apr()
S
76 1 3
WC_Gateway_Billmate_Cardpay::receipt_page()
S
78 1 3
BillmateOrder::getTaxRateFromClass()
S
68 1 7
BillmateOrder::setPaymentterms()
S
81 1 3
WC_Gateway_Billmate_Invoice::receipt_page()
S
78 1 3
WC_Gateway_Billmate_Cardpay::get_billmate_shop_country()
S
83 1 3
BillmateCountry::getSwedenData()
S
67 1 7
billmate_admin_notice()
S
72 1 7
return_billmate_currency()
S
79 1 4
BillmateCalc::midpoint()
S
78 1 3
WC_Gateway_Billmate_Invoice::get_billmate_invoice_fee_product()
S
83 1 3
WC_Gateway_Billmate_Checkout::get_error()
S
72 1 6
BillmateCommon::add_plugin_page()
S
67 1 9
BillmateCommon::sanitize()
S
82 1 3
BillmateStringEncoding::toISO8859()
S
80 1 3
BillmateAdminNotice::add_warning()
S
74 1 4
WC_Gateway_Billmate_Invoice::get_billmate_shop_country()
S
83 1 3
WC_Gateway_Billmate_Checkout::getBillmateConnection()
S
77 1 3
WC_Gateway_Billmate_Partpayment::get_monthly_cost_prio()
S
83 1 3
BillmateAdminNotice::add_info()
S
74 1 4
BillmateOrder::setCustomerPno()
S
81 1 3
BillmateCommon::secret_callback()
S
74 1 4
WC_Gateway_Billmate_Checkout::get_order()
S
80 1 3
WC_Gateway_Billmate::get_plugin_action_links()
S
67 1 7
WC_Gateway_Billmate_Bankpay::get_billmate_invoice_fee_product()
S
83 1 3
BillmateCommon::print_section_info()
S
79 1 3
BillmateCountry::__construct()
S
91 1 2
WC_Gateway_Billmate_Partpayment_Extra::__construct()
S
73 1 5
WC_Gateway_Billmate_Checkout_Extra::start()
S
80 1 3
BillmateStringEncoding::toLatin1()
S
80 1 3
match_usernamevp()
S
69 1 6
WC_Gateway_Billmate_Bankpay::get_billmate_shop_country()
S
83 1 3
BillmateCommon::logo_callback()
S
74 1 4
BillMate::hash()
S
75 1 4
BillmateCommon::eid_callback()
S
74 1 4
BillmateOrder::formatPrice()
S
79 1 3
WC_Gateway_Billmate::getRequestMeta()
S
66 1 9
WC_Gateway_Billmate_Invoice::validate_fields()
S
91 1 2