Code Analysis: AfterPay Nordics for WooCommerce 1.0.4

Function Rating Maintainability Complexity Lines of code
init_wc_gateway_afterpay_factory_class()
D
12
1 676
WC_Gateway_AfterPay_Factory::process_payment()
C
31 23 109
WC_Gateway_AfterPay_Factory::check_used_address()
B
39 21 56
WC_AfterPay_Process_Order_Lines::get_order_lines_from_order()
A
37 12 77
WC_Gateway_AfterPay_Factory::init_form_fields()
A
29 4 182
WC_Gateway_AfterPay_Factory::is_available()
A
50 14 27
WC_AfterPay_Request_Authorize_Payment::get_request_body()
A
39 11 63
WC_Gateway_AfterPay_Part_Payment::get_available_installment_plans()
A
39 10 62
WC_Gateway_AfterPay_Invoice::__construct()
A
34 7 107
WC_AfterPay_Pre_Check_Customer::customer_lookup_request()
A
40 10 60
WC_AfterPay_Process_Order_Lines::get_order_lines_from_cart()
A
41 10 59
WC_Gateway_AfterPay_Factory::process_subscription_payment()
A
40 9 67
WC_AfterPay_Invoice_Fee::calculate_totals()
A
50 11 27
WC_AfterPay_Pre_Check_Customer::check_against_fields()
A
54 11 23
WC_AfterPay_Request_Refund_Payment::get_items()
A
45 9 42
WC_AfterPay_Pre_Check_Customer::display_pre_check_form()
A
50 9 26
init_wc_gateway_afterpay_part_payment_class()
A
31 1 144
WC_AfterPay_Pre_Check_Customer::pre_check_customer_request()
A
42 7 54
init_wc_gateway_afterpay_invoice_class()
S
34 1 115
WC_AfterPay_Cancel_Reservation::cancel_reservation()
S
47 6 36
WC_AfterPay_Capture::capture_full()
S
48 6 34
WC_AfterPay_Pre_Check_Customer::customer_lookup()
S
48 6 34
WC_Gateway_AfterPay_Part_Payment::__construct()
S
40 3 70
WC_AfterPay_Pre_Check_Customer::enqueue_scripts()
S
51 6 25
WC_Gateway_AfterPay_Factory::payment_fields()
S
55 6 22
WC_Gateway_AfterPay_Factory::process_checkout_fields()
S
57 6 17
WC_Gateway_AfterPay_Account::__construct()
S
41 3 60
WC_AfterPay_Pre_Check_Customer::confirm_pre_check_customer()
S
64 7 8
WC_Gateway_AfterPay_Factory::get_afterpay_info()
S
50 5 29
WC_AfterPay_Pre_Check_Customer::__construct()
S
54 5 18
init_wc_gateway_afterpay_account_class()
S
40 1 68
WC_Gateway_AfterPay_Factory::get_afterpay_dob_field()
S
55 4 22
WC_AfterPay_Pre_Check_Customer::filter_pre_checked_value()
S
55 4 21
WC_AfterPay_Request_Refund_Payment::get_refunded_order_id()
S
55 4 19
WC_Gateway_AfterPay_Factory::get_default_description_sweden()
S
59 4 16
WC_Gateway_AfterPay_Factory::get_default_description_denmark()
S
59 4 16
WC_Gateway_AfterPay_Factory::get_formatted_payment_method_name()
S
59 4 16
WC_Gateway_AfterPay_Factory::scheduled_subscription_payment()
S
58 4 16
WC_Gateway_AfterPay_Factory::get_default_description_norway()
S
59 4 16
WC_AfterPay_Request_Authorize_Subscription_Payment::get_request_body()
S
47 2 36
WC_AfterPay_Request_Refund_Payment::response()
S
56 3 16
WC_AfterPay_Invoice_Fee::__construct()
S
63 4 9
WC_Gateway_AfterPay_Factory::process_refund()
S
57 3 15
WC_Gateway_AfterPay_Factory::get_invoice_fee_price()
S
61 3 14
WC_AfterPay_Request_Cancel_Payment::response()
S
60 3 12
krokedil_set_order_property()
S
63 3 11
WC_AfterPay_Request_Authorize_Payment::response()
S
61 3 11
WC_AfterPay_Request_Authorize_Subscription_Payment::response()
S
61 3 11
WC_AfterPay_Request_Capture_Payment::get_request_body()
S
53 2 21
WC_AfterPay_Refund::refund_invoice()
S
54 2 19
WC_AfterPay_Request_Refund_Payment::get_item()
S
56 2 17
WC_AfterPay_Request_Refund_Payment::get_fee()
S
57 2 17
WC_AfterPay_Capture::__construct()
S
66 3 7
WC_AfterPay_Request_Customer::response()
S
62 3 10
WC_AfterPay_User_Profile::save_wc_afterpay_person_id()
S
69 3 6
WC_AfterPay_Process_Order_Lines::get_item_reference()
S
65 3 10
krokedil_get_order_property()
S
64 3 9
krokedil_get_wc_version()
S
78 3 3
WC_AfterPay_Request::__construct()
S
68 3 6
WC_AfterPay_Request_CreateContract::response()
S
63 3 9
WC_Gateway_AfterPay_Factory::log()
S
65 3 9
WC_AfterPay_Request::request()
S
59 2 14
WC_AfterPay_Request_Customer_Lookup::get_request_body()
S
63 2 11
WC_AfterPay_Pre_Check_Customer::get_fields_se()
S
58 1 22
WC_AfterPay_Pre_Check_Customer::get_fields_no()
S
62 1 18
krokedil_wc_gte_3_0()
S
78 2 3
WC_AfterPay_Request_Refund_Payment::get_sku()
S
66 2 8
WC_AfterPay_Request_Refund_Payment::get_request_body()
S
63 2 10
WC_AfterPay_Cancel_Reservation::check_if_afterpay_order()
S
67 2 8
WC_AfterPay_Capture::check_if_afterpay_order()
S
67 2 8
WC_AfterPay_Process_Order_Lines::get_order_lines()
S
70 2 7
WC_AfterPay_Request_Refund_Payment::product_vat_rate()
S
66 2 8
WC_AfterPay_Request_Refund_Payment::get_shipping_vat_rate()
S
66 2 8
WC_AfterPay_Cancel_Reservation::__construct()
S
70 2 5
WC_AfterPay_Refund::__construct()
S
74 2 4
WC_AfterPay_Pre_Check_Customer::get_radiobutton_customer_type_both()
S
63 1 14
WC_AfterPay_User_Profile::wc_aferpay_user_id()
S
63 1 13
WC_AfterPay_Pre_Check_Customer::get_radiobutton_customer_type_private()
S
75 1 11
WC_AfterPay_Request_Refund_Payment::get_shipping()
S
62 1 11
WC_AfterPay_Request_CreateContract::get_request_args()
S
67 1 8
WC_Gateway_AfterPay_Part_Payment::payment_fields()
S
74 1 5
WC_Gateway_AfterPay_Factory::__construct()
S
79 1 3
WC_AfterPay_Request_Capture_Payment::get_request_args()
S
65 1 9
add_afterpay_invoice_method()
S
77 1 4
WC_AfterPay_Request_Authorize_Payment::get_request_args()
S
63 1 10
WC_AfterPay_Request_Refund_Payment::get_request_args()
S
64 1 9
WC_Gateway_AfterPay_Factory::get_icon()
S
72 1 5
WC_AfterPay_Request::request_header()
S
72 1 6
WC_AfterPay_User_Profile::__construct()
S
70 1 6
WC_Gateway_AfterPay_Account::payment_fields()
S
77 1 4
WC_AfterPay_Request_Authorize_Subscription_Payment::get_request_args()
S
63 1 10
WC_AfterPay_Request_Available_Installment_Plans::get_request_body()
S
67 1 8
WC_AfterPay_Request::request_body()
S
81 1 3
WC_AfterPay_Request_CreateContract::get_request_body()
S
69 1 7
WC_AfterPay_Request_Customer_Lookup::response()
S
68 1 6
WC_AfterPay_Pre_Check_Customer::get_radiobutton_customer_type_company()
S
72 1 9
WC_AfterPay_Request_Customer_Lookup::get_request_args()
S
64 1 9
WC_AfterPay_Request_Available_Installment_Plans::response()
S
67 1 7
WC_AfterPay_Request_Cancel_Payment::get_request_args()
S
69 1 7
WC_AfterPay_Request_Customer::get_request_args()
S
67 1 8
add_afterpay_account_method()
S
77 1 4
WC_AfterPay_Request_Capture_Payment::response()
S
64 1 9
add_afterpay_part_payment_method()
S
77 1 4
WC_Gateway_AfterPay_Part_Payment::sort_payment_plans()
S
81 1 3
WC_Gateway_AfterPay_Invoice::payment_fields()
S
77 1 4
WC_AfterPay_Request_Available_Installment_Plans::get_request_args()
S
64 1 9
WC_Gateway_AfterPay_Factory::clear_afterpay_sessions()
S
68 1 8
WC_AfterPay_Request_Customer::get_request_body()
S
69 1 7
WC_Gateway_AfterPay_Factory::afterpay_order_completed()
S
76 1 4