Code Analysis: 123TCS Gift Card Payments for WooCommerce 1.4.3

Function Rating Maintainability Complexity Lines of code
TCS_GCP\CardbasePosWebservice::soapRequest()
D
15
57 276
TCS_GCP\Settings::validate()
B
35 21 84
TCS_GCP\Checkout::add_gift_card_to_session()
A
38 14 71
TCS_GCP\Checkout::remove_gift_card_from_session()
A
45 9 44
TCS_GCP\Checkout::show_available_gift_cards_on_order_pay_endpoint()
A
42 7 60
TCS_GCP\Checkout::init()
A
45 8 39
TCS_GCP\Checkout::rollback()
A
46 7 39
TCS_GCP\AdminOrderPage::admin_order_totals_after_tax()
S
49 6 33
TCS_GCP\Admin::__construct()
S
51 6 28
TCS_GCP\Checkout::filter_calculated_total()
S
46 5 40
TCS_GCP\Checkout::before_pay_action()
S
49 5 32
TCS_GCP\Setup::boot()
S
53 5 26
TCS_GCP\Checkout::withdraw_gift_cards()
S
46 4 38
TCS_GCP\AdminMenu::init()
S
40 1 80
TCS_GCP\Checkout::thank_you_page_show_gift_card_details_after_order_table()
S
50 4 32
TCS_GCP\WithdrawRequest::get_xml()
S
48 1 55
TCS_GCP\Checkout::added_gift_cards_html()
S
55 3 20
TCS_GCP\Checkout::rollback_for_order()
S
56 3 19
TCS_GCP\Checkout::conditionally_enqueue_scripts_and_styles()
S
57 3 18
TCS_GCP\Checkout::checkout_order_process_gift_cards()
S
57 3 18
TCS_GCP\Admin::conditionally_enqueue_script()
S
58 3 17
TCS_GCP\CardbasePosWebservice::__construct()
S
65 4 8
TCS_GCP\Checkout::handle_on_order_pay_page()
S
60 3 14
TCS_GCP\Settings::media_selector_settings_page_callback()
S
57 2 20
TCS_GCP\RollbackRequest::get_xml()
S
54 1 33
TCS_GCP\CardbasePosWebservice::rollback_request()
S
58 2 15
TCS_GCP\CardInfoRequest::get_xml()
S
55 1 30
TCS_GCP\Logger::debug()
S
65 3 10
TCS_GCP\CardbasePosWebservice::withdraw_request()
S
57 2 15
TCS_GCP\CardbasePosWebservice::cardInfo_request()
S
59 2 14
TCS_GCP\Setup::__construct()
S
61 2 13
TCS_GCP\CardInfoResponse::is_active()
S
64 2 11
TCS_GCP\WithdrawRequest::__construct()
S
58 1 15
TCS_GCP\Logger::getInstance()
S
69 2 7
TCS_GCP\Logger::info()
S
69 2 7
TCS_GCP\Checkout::order_needs_payment()
S
71 2 5
TCS_GCP\CardbasePosWebservice::force_set_credentials()
S
72 2 5
TCS_GCP\Logger::warning()
S
69 2 7
TCS_GCP\Checkout::get_max_amount_to_withdraw_from_card()
S
64 2 10
TCS_GCP\Logger::error()
S
69 2 7
TCS_GCP\Admin::notices()
S
73 2 6
TCS_GCP\Checkout::register_scripts_and_styles()
S
61 1 14
TCS_GCP\AdminMenu::options_page()
S
62 1 14
TCS_GCP\Settings::create_settings()
S
62 1 12
TCS_GCP\RollbackRequest::__construct()
S
62 1 11
TCS_GCP\CardbasePosWebservice::get_status()
S
82 1 3
TCS_GCP\Settings::get_live_secret_key()
S
75 1 4
TCS_GCP_bootstrap()
S
69 1 6
TCS_GCP\Admin::menu()
S
76 1 4
TCS_GCP\Logger::set_log_level_production()
S
81 1 3
TCS_GCP\CardInfoResponse::balance_as_float()
S
74 1 4
TCS_GCP\CardbasePosWebservice::get_last_request_id()
S
82 1 3
TCS_GCP\AdminOrderPage::__construct()
S
79 1 3
TCS_GCP\Admin::init()
S
64 1 9
TCS_GCP\Settings::is_open_loop_giftcard()
S
75 1 4
TCS_GCP\Settings::get_test_secret_key_field()
S
75 1 4
TCS_GCP\Logger::write_to_log()
S
80 1 3
TCS_GCP\Settings::__construct()
S
79 1 3
TCS_GCP\Settings::init()
S
67 1 8
TCS_GCP\Admin::register_script()
S
68 1 8
TCS_GCP\Settings::delete_settings()
S
81 1 3
TCS_GCP\Logger::use_WooCommerce_logger()
S
76 1 4
TCS_GCP\Settings::notices()
S
81 1 3
TCS_GCP\AdminMenu::TCS_GCP_Plugin_Keys_Section_text()
S
75 1 4
TCS_GCP\Settings::get_gift_card_name_field()
S
75 1 4
TCS_GCP\Settings::get_live_merchant_id()
S
75 1 4
TCS_GCP\CardInfoRequest::__construct()
S
66 1 8
TCS_GCP\Settings::get_open_loop_giftcard_field()
S
69 1 6
TCS_GCP\Settings::get_gift_card_logo()
S
75 1 4
TCS_GCP\Checkout::payment_complete()
S
79 1 3
TCS_GCP\AdminMenu::__construct()
S
79 1 3
TCS_GCP\Settings::is_testmode_active()
S
75 1 4
TCS_GCP\Checkout::order_status_failed()
S
68 1 7
TCS_GCP\Checkout::admin_init()
S
75 1 4
TCS_GCP\Settings::get_test_merchant_id_field()
S
75 1 4
TCS_GCP\Settings::get_gift_card_name()
S
75 1 4
TCS_GCP\WithdrawRequest::get_request_id()
S
82 1 3
TCS_GCP\WithdrawResponse::get_request_id()
S
82 1 3
TCS_GCP\AdminMenu::TCS_GCP_Plugin_Gift_Card_Section_text()
S
75 1 4
TCS_GCP\Settings::get_live_merchant_id_field()
S
75 1 4
TCS_GCP\Settings::get_activate_test_mode_field()
S
69 1 6
TCS_GCP\Checkout::__construct()
S
79 1 3
TCS_GCP\Settings::get_test_merchant_id()
S
75 1 4
TCS_GCP\WithdrawResponse::__construct()
S
72 1 5
TCS_GCP\Checkout::order_status_changed()
S
78 1 3
TCS_GCP\RollbackRequest::get_action()
S
82 1 3
TCS_GCP\AdminOrderPage::init()
S
78 1 3
TCS_GCP_activate()
S
76 1 4
TCS_GCP\RollbackRequest::get_request_id()
S
82 1 3
TCS_GCP\Logger::set_log_level_debug()
S
81 1 3
TCS_GCP\CardInfoResponse::get_status()
S
82 1 3
TCS_GCP_deactivate()
S
100 1 2
TCS_GCP\Checkout::clear_session()
S
74 1 5
TCS_GCP\Checkout::order_status_completed()
S
79 1 3
TCS_GCP\CardInfoResponse::__construct()
S
68 1 7
TCS_GCP\CardInfoRequest::get_action()
S
82 1 3
TCS_GCP\Checkout::order_status_cancelled()
S
68 1 7
TCS_GCP\Settings::get_live_secret_key_field()
S
75 1 4
TCS_GCP\CardInfoResponse::balance_as_euro_cent_string()
S
82 1 3
TCS_GCP\Admin::add_admin_notice_WooCommerce_not_found()
S
72 1 5
TCS_GCP\CardbasePosWebservice::get_result()
S
82 1 3
TCS_GCP\Logger::__construct()
S
74 1 5
TCS_GCP\WithdrawRequest::get_action()
S
82 1 3
TCS_GCP\Settings::get_test_secret_key()
S
75 1 4
TCS_GCP\Checkout::get_html_for_giftcard_entry()
S
79 1 3
TCS_GCP\RollbackResponse::__construct()
S
79 1 3
TCS_GCP\CardInfoRequest::get_request_id()
S
82 1 3