Code Analysis: Payday 3.1.7

Function Rating Maintainability Complexity Lines of code
Payday_Invoice_Factory::create_data_array_from_request()
D
32 41 86
Payday_Invoice_Model::create_invoice_in_payday_from_wc_order()
C
29
28 118
Payday_Customer_Model::create_or_get_payday_customer_from_wc_order()
B
37 22 72
Payday_Customer_Factory::create_data_array_from_request()
B
40 21 64
Payday_Order_Model::handle_wc_order_status_changed()
B
46 17 35
Payday_Claim_Service_Payment_Gateway::process_payment()
A
37 13 71
Payday_Settings::register_payment_methods_mapping()
A
38 12 74
Payday_Invoice_Line_Factory::create_data_array_from_request()
A
46 13 40
Payday_Order_Model::create_invoice_with_status()
A
43 11 47
Payday_Login_Page::display_field()
A
46 11 43
Payday_Product_Factory::create_data_array_from_request()
A
51 12 27
Payday_Invoice_Model::create_invoice_line_request_from_op_line_item()
A
41 10 53
Payday_Settings_Page::custom_do_settings_sections()
A
48 11 32
Payday_Request_Manager::handle_response()
A
46 10 37
Payday_Invoice_Model::create_invoice_line_request_from_shipping_line_item()
A
45 9 41
Payday_Uninstaller::delete_tables()
A
48 9 38
Payday_Invoice_Model::create_invoice_lines_from_order()
A
47 9 36
Payday_Login_Page::handle_login()
A
47 9 34
Payday_Settings::register_payment_methods_create_invoice_on_order_status_mapping()
A
40 6 70
Payday_Claim_Service_Payment_Gateway::action_save_post_shop_order()
A
54 9 20
Payday_Cron_Manager::add_cron_job()
A
50 8 27
Payday_Auth_Model::is_connected()
A
54 8 22
Payday_Settings_Model::retrieve_and_update_payday_payment_types()
A
47 7 34
Payday_Activator::activate()
A
50 7 32
Payday_Log_Viewer_Page::display_page_content()
S
46 6 41
Payday_Invoice_Factory::create_response_from_data()
S
42 5 56
Payday_Webhooks::action_woocommerce_new_order()
S
56 7 16
Payday_Logger::log()
S
57 7 14
Payday_Claim_Service_Payment_Gateway::add_ssn_field_to_admin_billing_fields()
S
51 6 26
Payday_Utils::round_to_closest_vat_percentage()
S
53 6 23
Payday_Invoice_Model::create_invoice_line_request_from_refund()
S
49 5 28
Payday_Authenticate_Gateway::create_token()
S
51 5 27
Payday_Claim_Service_Payment_Gateway::get_form_fields()
S
38 1 87
Payday_Login_Page::validate_clientSecret_field()
S
53 5 24
Payday_Login_Page::validate_clientId_field()
S
53 5 24
Payday_Deactivator::deactivate()
S
53 5 24
Payday_Auth_Model::verify_credentials()
S
54 5 22
Payday_Settings_Page::custom_do_settings_fields()
S
53 5 22
Payday_Invoice_Model::create_invoice_line_request_from_product_line_item()
S
47 4 35
Payday_Settings_Model::delete_all_payment_types()
S
56 5 17
Payday_Logger::create_empty_log_file()
S
64 6 9
Payday_Auth_Model::get_auth_token()
S
62 5 11
Payday_Order_Job_Status_Provider::update_order_job_status()
S
52 4 25
Payday_Invoice_Meta_Provider::create_invoice_meta_table()
S
54 4 24
Payday_Order_Job_Status_Provider::create_order_job_status_table()
S
54 4 24
Payday_Customer_Gateway::get_all_customers()
S
53 4 22
Payday_Customer_Gateway::get_customer_invoices()
S
53 4 22
Payday_Auth_Tokens_Provider::create_auth_tokens_table()
S
55 4 22
Payday_Log_Viewer_Page::handle_download()
S
55 4 21
Payday_Settings_Model::get_api_endpoint_title()
S
54 4 21
Payday_Payment_Types_Provider::get_all_payment_types()
S
55 4 20
Payday_Settings::display_select_field()
S
57 4 17
activate_payday()
S
56 4 16
Payday_Login_Page::display_select_field()
S
62 5 9
Payday_Request_Manager::generate_error_message()
S
63 5 9
Payday_Settings_Model::_set_option()
S
59 4 15
Payday_Customer_Factory::create_responses_from_data()
S
60 4 14
Payday_Login_Page::validate_api_endpoint_field()
S
56 3 20
Payday_Customer_Gateway::get_customer_by_number()
S
54 3 20
Payday_Payment_Types_Provider::create_payment_types_table()
S
56 3 20
Payday_Invoice_Gateway::get_invoice()
S
55 3 19
payday_pre_update_check()
S
58 3 17
Payday_Auth_Model::get_new_token()
S
57 3 16
Payday_Payment_Types_Provider::get_payment_type_by_id()
S
57 3 16
Payday_Activator::check_if_tables_exists()
S
58 3 16
Payday_Claim_Service_Payment_Gateway::checkout_fields()
S
58 3 15
Payday_Settings::register_additional_invoice_settings_section()
S
47 1 45
Payday_Claim_Service_Payment_Gateway::checkout_process()
S
66 4 7
Payday_Settings_Model::empty_all_settings()
S
63 4 10
Payday_Settings_Model::delete_all_settings()
S
63 4 10
Payday_Settings_Model::convert_to_dict()
S
64 4 10
is_woocommerce_active()
S
67 4 7
Payday_Auth_Tokens_Provider::delete_all_entries_in_auth_tokens_table()
S
61 3 13
Payday_Base_Provider::delete_all_entries()
S
61 3 13
Payday_Base_Provider::delete_table()
S
60 3 13
Payday_Payment_Types_Provider::delete_all_entries_in_payment_types_table()
S
61 3 13
Payday_Payment_Types_Provider::delete_payment_type()
S
60 3 13
Payday_Invoice_Meta_Provider::delete_all_entries_in_invoice_meta_table()
S
61 3 13
Payday_Login_Page::display_invalid_credentials_notice()
S
62 3 12
Payday_Invoice_Response::__construct()
S
45 1 42
Payday_Order_Job_Status_Provider::create_order_job_status()
S
52 2 25
Payday_Invoice_Request::__construct()
S
45 1 40
Payday_Invoice_Line_Factory::create_response_from_data()
S
54 2 22
Payday_Settings_Page::display_page_content()
S
50 1 35
Payday_Product_Factory::create_response_from_data()
S
56 2 20
Payday_Payment_Type_Gateway::get_sales_payment_types()
S
55 2 19
Payday_Customer_Gateway::create_customer()
S
56 2 18
Payday_Invoice_Gateway::create_invoice()
S
56 2 18
Payday_Product_Gateway::create_product()
S
56 2 18
Payday_Order_Job_Status_Provider::get_order_job_status()
S
56 2 18
Payday_Customer_Gateway::get_customer_by_id()
S
57 2 17
Payday_Customer_Gateway::get_customers_by_query()
S
57 2 17
Payday_Invoice_Gateway::download_invoice_pdf()
S
56 2 17
deactivate_payday()
S
64 3 9
Payday_Claim_Service_Payment_Gateway::email_order_meta_keys()
S
70 3 6
Payday_Payment_Type_Mapper::toEntityArray()
S
64 3 10
Payday_Cron_Manager::remove_all_cron_jobs()
S
63 3 10
Payday_Deactivator::unregister_payday_claim_service_payment_gateway()
S
67 3 8
Payday_Base_Controller::validate_request()
S
64 3 9
Payday_Claim_Service_Payment_Gateway::checkout_update_user_meta()
S
74 3 4
Payday_Payment_Types_Provider::create_payment_type()
S
60 2 14
Payday_Payment_Type_Mapper::toEntity()
S
62 2 12
Payday_Auth_Model::delete_all_transients()
S
60 2 12
Payday_Request_Manager::get_raw()
S
61 2 12
Payday_Request_Manager::get_headers()
S
62 2 12
Payday_Payment_Type_Factory::create_response_from_data()
S
62 2 12
Payday_Token_Factory::create_response_from_data()
S
62 2 12
Payday_Order_Job_Status_Provider::delete_order_job_status()
S
62 2 11
Payday_Login_Page::display_page_content()
S
54 1 24
Payday_Customer_Response::__construct()
S
53 1 22
Payday_Customer_Request::__construct()
S
53 1 21
Payday::define_hooks()
S
56 1 17
Payday_Login_Page::add_api_endpoint_field()
S
57 1 16
Payday_Invoice_Line_Response::__construct()
S
58 1 16
Payday_Customer_Model::create_customer_array()
S
58 1 15
Payday::initialize_plugin_info()
S
75 2 4
Payday_Settings_Model::delete_payment_types()
S
71 2 6
Payday_Admin_Menu::display_payday_page_content()
S
68 2 8
Payday_Settings_Page::admin_post_payday_settings_refresh()
S
68 2 7
Payday_Cron_Manager::remove_cron_job()
S
65 2 9
Payday_Customer_Model::get_customer_by_ssn()
S
66 2 9
Payday_Customer_Model::get_customer_by_email()
S
67 2 8
Payday_Customer_Model::get_country()
S
77 2 3
Payday_Customer_Factory::create_response_from_data()
S
69 2 7
Payday_Cron_Manager::log()
S
68 2 7
Payday_Customer_Model::get_address()
S
74 2 4
Payday_Settings_Model::set_create_invoice_on_action_option()
S
68 2 6
payday_claim_service_payment_gateway_init()
S
73 2 5
payday_php_version_error_notice()
S
63 1 15
Payday_Utils::generate_order_note()
S
69 2 6
Payday_Customer_Model::is_valid_order()
S
78 2 3
Payday_Admin_Menu::display_claim_service_settings_page_content()
S
66 2 9
Payday_Admin::plugin_action_links()
S
63 2 9
Payday_Customer_Model::get_language()
S
78 2 3
Payday_Admin_Menu::display_settings_page_content()
S
68 2 8
Payday_Customer_Model::get_name()
S
74 2 4
Payday_Settings::display_field()
S
70 2 5
Payday_Invoice_Model::get_tax_rate()
S
68 2 7
Payday_Admin::admin_footer_text()
S
67 2 7
Payday_Invoice_Model::calculate_discount_percentage()
S
69 2 6
uninstall_payday()
S
68 2 7
Payday_Customer_Model::get_contact()
S
74 2 4
Payday_Settings_Model::_get_option()
S
67 2 8
Payday_Claim_Service_Payment_Gateway::checkout_update_order_meta()
S
67 2 8
Payday_Utils::is_null_or_empty_string()
S
77 2 3
Payday_Utils::endsWith()
S
68 2 7
Payday_Settings_Page::admin_post_payday_settings_disconnect()
S
68 2 7
Payday_Admin::plugin_row_meta()
S
62 2 10
Payday_Settings_Model::delete_all_invoice_meta()
S
67 2 8
Payday_Settings_Model::create_payment_types()
S
66 2 9
Payday_Webhooks::action_woocommerce_order_status_changed()
S
66 2 8
Payday_Settings_Model::get_create_invoice_on_action_option()
S
68 2 7
Payday_Product_Response::__construct()
S
59 1 14
Payday_Login_Page::add_client_id_field()
S
59 1 14
Payday_Claim_Service_Payment_Gateway::__construct()
S
59 1 14
Payday_Invoice_Line_Request::__construct()
S
59 1 14
Payday_Login_Page::add_client_secret_field()
S
59 1 14
Payday::define_claim_service_payment_gateway_hooks()
S
59 1 13
Payday_Invoice_Model::create_invoice_line_request_from_fee_line_item()
S
61 1 13
Payday_Admin_Menu::add_top_level_menu()
S
63 1 12
Payday_Product_Request::__construct()
S
62 1 12
Payday_Invoice_Gateway::get_invoice_attachments()
S
62 1 11
Payday_Login_Page::add_settings_sections()
S
65 1 11
Payday_Login_Page::add_settings_field()
S
64 1 11
Payday_Products_Controller::get_products()
S
72 1 5
Payday_Utils::is_valid_guid()
S
79 1 3
Payday_Database_Utils::table_exists()
S
74 1 4
Payday_Admin::__construct()
S
91 1 2
Payday_Request_Manager::initialize()
S
74 1 5
Payday_Uninstaller::delete_cron_jobs()
S
73 1 5
Payday_Product_Model::get_products()
S
68 1 7
Payday_Settings_Model::set_api_endpoint()
S
79 1 3
Payday_i18n::__construct()
S
91 1 2
Payday_Claim_Service_Payment_Gateway::get_field_id()
S
80 1 3
Payday_Payment_Type_Response::__construct()
S
71 1 6
Payday_Admin_Menu::__construct()
S
91 1 2
Payday_Settings_Model::get_client_secret()
S
79 1 3
Payday_Customer_Model::get_ssn()
S
80 1 3
Payday_Claim_Service_Payment_Gateway::init_form_fields()
S
80 1 3
Payday_Request_Manager::get()
S
67 1 7
Payday_Customer_Model::create_customer()
S
71 1 6
Payday_Order_Model::__construct()
S
91 1 2
Payday_Settings_Model::get_client_id()
S
79 1 3
Payday_Webhooks::__construct()
S
91 1 2
Payday_Auth_Token_Entity::__construct()
S
74 1 5
Payday_Claim_Service_Payment_Gateway::get_id()
S
82 1 3
Payday_Cron_Manager::is_valid_schedule()
S
75 1 4
Payday_Base_Controller::register_routes()
S
100 1 0
Payday_Utils::__construct()
S
91 1 2
Payday_Admin_Menu::add_log_viewer_submenu()
S
65 1 10
Payday_Admin_Menu::admin_menu()
S
70 1 7
Payday_Base_Provider::get_table_name()
S
76 1 4
Payday_Invoice_Model::generate_invoice_line_description()
S
77 1 4
Payday_Payment_Type_Factory::create_data_array_from_request()
S
80 1 3
Payday_Settings_Model::set_client_id()
S
79 1 3
Payday_Payment_Types_Entity::__construct()
S
71 1 6
Payday_Uninstaller::uninstall()
S
68 1 8
Payday_Settings_Page::refresh_settings_button_on_submit_handler()
S
77 1 4
run_payday()
S
81 1 3
Payday_Activator::__construct()
S
91 1 2
Payday_Request_Manager::post()
S
66 1 8
Payday_Uninstaller::delete_options()
S
73 1 5
Payday_Orders_Controller::register_routes()
S
68 1 7
Payday_Gateway_Error::getTimestamp()
S
82 1 3
Payday_Uninstaller::__construct()
S
91 1 2
Payday_Product_Model::update_inventory()
S
73 1 5
Payday_Auth_Model::delete_auth_token()
S
81 1 3
Payday_Customer_Model::get_billing_data()
S
76 1 4
Payday_i18n::load_plugin_textdomain()
S
73 1 4
Payday_Gateway_Error::getErrorCode()
S
82 1 3
Payday_Settings_Model::get_api_endpoint()
S
79 1 3
Payday_Gateway_Error::__construct()
S
70 1 6
Payday_Order_Model::get_orders()
S
68 1 7
Payday_Admin_Menu::remove_auto_created_submenu()
S
80 1 3
Payday_Order_Model::create_order_job_status()
S
75 1 4
Payday_Admin_Menu::add_settings_submenu()
S
65 1 10
Payday_Gateway_Error::getData()
S
82 1 3
Payday_Utils::array_keys_exists()
S
78 1 3
Payday_Order_Model::get_order_job_status()
S
76 1 4
Payday_Admin_Menu::add_claim_service_settings_submenu()
S
66 1 10
Payday_Admin_Menu::display_log_viewer_page_content()
S
82 1 3
Payday_Cron_Manager::__construct()
S
91 1 2
Payday::plugins_loaded()
S
82 1 3
Payday_Login_Page::display_section_content()
S
78 1 3
Payday_Login_Page::__construct()
S
91 1 2
Payday::__construct()
S
78 1 4
Payday_Invoice_Meta_Entity::__construct()
S
69 1 7
Payday_Products_Controller::register_routes()
S
68 1 7
Payday_Settings_Page::disconnect_button_on_submit_handler()
S
68 1 8
Payday_API_Permissions::validate_api_key()
S
69 1 6
Payday_Claim_Service_Payment_Gateway::add_gateway_class()
S
76 1 4
Payday_Order_Model::update_order_job_status()
S
75 1 4
Payday_Settings_Model::set_client_secret()
S
79 1 3
Payday_Settings_Model::get_all_payment_types()
S
73 1 5
Payday_Deactivator::__construct()
S
91 1 2
Payday_Token_Response::__construct()
S
71 1 6
Payday_Route_Registration::register_all_routes()
S
77 1 4
Payday_API_Permissions::generate_api_key()
S
70 1 6
Payday_Utils::calculate_grand_total()
S
76 1 3
Payday_Utils::calculate_amount_incl_tax()
S
76 1 3
Payday_Claim_Service_Payment_Gateway::process_admin_options()
S
81 1 3
Payday_Order_Job_Status_Entity::__construct()
S
69 1 7
Payday_Cron_Manager::get_job_identifier()
S
75 1 4
Payday_Uninstaller::delete_transients()
S
73 1 5
Payday_Logger::log_to_error_log()
S
71 1 5
Payday_Request_Manager::__construct()
S
91 1 2
Payday_Settings::register_settings()
S
75 1 5
Payday_Orders_Controller::get_orders()
S
72 1 5