Code Analysis: WooCommerce Paymentsense Gateway 3.0.39

Function Rating Maintainability Complexity Lines of code
Paymentsense_Base::get_order_property()
C
34 31 81
WC_Paymentsense_Direct::process_payment()
C
24
20 196
WC_Paymentsense_Direct::process_3dsecure_response()
C
28
17 166
WC_Paymentsense_Hosted::get_connection_settings_message()
B
35 17 100
WC_Paymentsense_Hosted::process_post_response()
B
33 15 108
WC_Paymentsense_Hosted::process_server_notification()
B
34 15 101
WC_Paymentsense_Direct::get_connection_settings_message()
B
37 15 87
Paymentsense_Base::process_refund()
B
34 14 93
get_country_iso_code()
A
22
2 234
WC_Paymentsense_Hosted::init_form_fields()
A
27
1 227
get_currency_iso_code()
A
25
2 188
Paymentsense_Base::perform_test_transaction()
A
39 10 67
Paymentsense_Base::get_connection_status_message()
A
43 8 57
WC_Paymentsense_Hosted::process_gateway_response()
A
49 9 34
Paymentsense_Base::get_connection_status_code()
A
52 9 26
Paymentsense_Base::calculate_hash_digest()
A
51 8 28
WC_Paymentsense_Hosted::process_server_customer_redirect()
A
48 7 34
Paymentsense_Base::check_gateway_settings()
A
44 6 48
Paymentsense_Base::send_transaction()
S
46 5 40
Paymentsense_Base::get_http_var()
S
57 6 17
WC_Paymentsense_Direct::init_form_fields()
S
38 1 89
Paymentsense_Base::build_hpf_fields()
S
52 5 24
Paymentsense_Base::get_module_latest_version()
S
55 5 20
Paymentsense_Base::build_variables_string()
S
47 3 41
WC_Paymentsense_Direct::validate_fields()
S
53 4 22
Paymentsense_Base::output_info()
S
55 4 20
get_incompatible_plugins()
S
55 4 20
Paymentsense_Base::__construct()
S
53 4 20
Paymentsense_Base::get_file_checksums()
S
59 4 14
Paymentsense_Base::convert_array_to_string()
S
59 4 14
Paymentsense_Base::retrieve_plugin_data()
S
63 4 11
Paymentsense_Base::apply_length_restrictions()
S
53 3 23
Paymentsense_Base::process_info_request()
S
54 3 22
Paymentsense_Base::build_payment_fields()
S
46 2 36
WC_Paymentsense_Direct::payment_fields()
S
57 3 19
WC_Paymentsense_Hosted::process_before_thankyou()
S
56 3 19
woocommerce_paymentsense_init()
S
57 3 18
paymentsense_show_admin_notice()
S
58 3 17
WC_Paymentsense_Hosted::output_redirect_form()
S
51 2 32
Paymentsense_Base::get_gateway_connection_details()
S
59 3 15
Paymentsense_Base::within_payment_method_timeframe()
S
59 3 14
WC_Paymentsense_Direct::process_3dsecure_request()
S
51 2 27
Paymentsense_Base::get_system_time_status()
S
63 3 11
paymentsense_check_compatibility()
S
54 2 22
Paymentsense_Base::build_sample_payment_fields()
S
49 1 33
WC_Paymentsense_Direct::is_valid_for_use()
S
69 3 7
Paymentsense_Base::get_system_time_message()
S
67 3 8
WC_Paymentsense_Hosted::is_valid_for_use()
S
69 3 7
Paymentsense_Base::get_warning_message()
S
69 3 6
WC_Paymentsense_Hosted::process_order_received_text()
S
67 3 7
Paymentsense_Base::filter_unsupported_chars()
S
62 2 11
WC_Paymentsense_Hosted::__construct()
S
54 1 25
Paymentsense_Base::get_module_info_url()
S
70 2 6
Paymentsense_Base::get_hpf_error_message()
S
68 2 7
Paymentsense_Base::should_retry_txn()
S
75 2 4
Paymentsense_Base::get_system_time_diff()
S
66 2 9
Paymentsense_Base::calculate_date_diff()
S
66 2 8
WC_Paymentsense_Direct::__construct()
S
61 1 15
WC_Paymentsense_Hosted::receipt_page()
S
66 2 9
Paymentsense_Base::get_xml_cross_reference()
S
68 2 7
Paymentsense_Base::merchant_credentials_invalid()
S
75 2 4
Paymentsense_Base::get_hostname()
S
74 2 4
Paymentsense_Base::get_module_name()
S
73 2 5
Paymentsense_Base::get_xml_value()
S
67 2 7
Paymentsense_Base::retrieve_date()
S
66 2 8
Paymentsense_Base::get_module_installed_version()
S
73 2 5
Paymentsense_Base::is_hash_digest_valid()
S
63 2 10
Paymentsense_Base::build_error_system_time_message()
S
63 1 13
Paymentsense_Base::admin_options()
S
63 1 12
Paymentsense_Base::show_output()
S
74 1 4
Paymentsense_Base::build_error_connection_message()
S
79 1 3
Paymentsense_Base::add_datetime_pair()
S
75 1 4
Paymentsense_Base::get_connection_settings_message()
S
100 1 0
Paymentsense_Base::replace_ampersand()
S
79 1 3
Paymentsense_Base::get_wc_version()
S
81 1 3
WC_Paymentsense_Hosted::process_payment()
S
68 1 7
Paymentsense_Base::contains()
S
78 1 3
WC_Paymentsense_Hosted::output_response()
S
75 1 4
Paymentsense_Base::build_warning_connection_message()
S
79 1 3
Paymentsense_Base::process_checksums_request()
S
71 1 6
Paymentsense_Base::is_info_request()
S
78 1 3
woocommerce_add_paymentsense_gateways()
S
74 1 5
Paymentsense_Base::output_message()
S
69 1 8
Paymentsense_Base::build_message()
S
68 1 8
Paymentsense_Base::getSettingsTextMessage()
S
80 1 3
Paymentsense_Base::build_success_settings_message()
S
79 1 3
Paymentsense_Base::get_datetime_pairs()
S
82 1 3
Paymentsense_Base::get_wp_version()
S
80 1 3
Paymentsense_Base::is_checksums_request()
S
78 1 3
Paymentsense_Base::is_connection_secure()
S
81 1 3
Paymentsense_Base::build_datetime_pair()
S
76 1 4
Paymentsense_Base::merchant_id_format_valid()
S
79 1 3
Paymentsense_Base::get_gateway_entry_points()
S
82 1 3
Paymentsense_Base::get_system_time_threshold()
S
82 1 3
Paymentsense_Base::html_decode()
S
68 1 7
Paymentsense_Base::build_success_connection_message()
S
79 1 3
Paymentsense_Base::get_payment_form_url()
S
82 1 3
Paymentsense_Base::build_error_settings_message()
S
79 1 3
Paymentsense_Base::build_warning_settings_message()
S
79 1 3
WC_Paymentsense_Hosted::set_success()
S
80 1 3
WC_Paymentsense_Hosted::set_response()
S
76 1 4
Paymentsense_Base::get_php_version()
S
81 1 3
Paymentsense_Base::is_connection_info_request()
S
78 1 3
Paymentsense_Base::process_connection_info_request()
S
70 1 6
WC_Paymentsense_Hosted::set_error()
S
80 1 3