Code Analysis: Paytium 4.4.13

Function Rating Maintainability Complexity Lines of code
pt_field()
D
0
142 435
pt_process_payment()
D
0
142 363
pt_cf_dropdown()
D
10
104 235
pt_cf_radio()
D
11
96 236
pt_cf_checkbox_new()
D
12
90 238
pt_cf_label()
D
22
60 136
pt_paytium_content()
D
25
61 119
paytium_user_data_processing()
D
21
54 179
pt_paytium_shortcode()
D
19
52 193
pt_payment_update_webhook()
D
18
42 249
pt_uea_amount()
D
24
48 135
pt_subscription()
D
27
37 122
pt_create_payment()
D
35 38 68
pt_guess_autocomplete()
D
36 33 75
pt_add_all_field_data_to_meta_array()
D
31 31 99
PT_Payment::get_field_data_raw()
C
28
28 129
PT_Payment::populate()
C
39 30 48
pt_paytium_progress()
C
30 24 122
paytium_content_payments_helper_function()
C
34 26 89
pt_paytium_show_shortcode()
C
32 22 101
Paytium::viewing_this_plugin()
B
46 23 34
PT_Post_Types::payments_overview_details_for_payments()
B
41 22 48
paytium_limit_data_processing()
B
39 20 60
Paytium::enqueue_admin_scripts()
B
39 18 55
PT_Payment::update_subscription_and_payments_to_new_format()
B
43 18 42
Paytium::enqueue_admin_styles()
B
44 17 36
pt_paytium_validate_form_values()
B
45 17 34
PT_Payment::get_item_field_data()
A
44 14 40
pt_cf_number()
A
41 13 51
pt_register_settings()
A
32 7 131
PT_Payment::get_custom_field_data()
A
51 14 23
pt_show_payment_details()
A
45 13 35
Paytium\WP_Updater\Clients\EDD::activate()
A
42 12 49
Paytium\WP_Updater\Clients\EDD::get_status()
A
47 12 34
PT_Payment::get_field_data_html()
A
47 11 33
pt_cancel_subscription()
A
42 9 49
Paytium::admin_notice_please_review()
A
45 9 42
pt_paytium_check_discount_code()
A
48 9 32
pt_multi_select_callback()
A
49 9 27
pt_ajax_check_item_limits()
A
51 9 25
pt_get_mollie_customer_data_from_meta()
A
52 9 25
PT_Post_Types::custom_column_contents()
A
48 8 34
pt_cf_checkbox()
A
47 8 31
paytium_content_user_role_helper_function()
A
50 8 30
pt_copy_field_data()
A
59 9 13
PT_Admin_AJAX::check_mollie_account_details()
A
51 8 26
PT_Post_Types::add_custom_meta_boxes()
A
46 7 40
paytium_logger()
A
53 8 20
PT_API::create_mollie_account()
A
56 8 17
Paytium::pt_save_extra_user_profile_fields()
A
56 8 16
Paytium::add_plugin_admin_menu()
A
45 6 46
pt_paytium_login_button()
S
44 6 44
pt_paytium_total()
S
49 7 28
pt_convert_to_mollie_metadata()
S
51 7 25
PT_Post_Types::register_post_type()
S
37 3 83
PT_Payment::get_items()
S
52 7 23
Paytium::admin_notice_extensions()
S
55 7 19
pt_text_callback()
S
54 7 18
pt_float_amount_to_currency()
S
55 7 18
Paytium::admin_notice_switch_to_live_mode()
S
57 7 17
Paytium\WP_Updater\WPUpdater::add_plugin_update_transient_data()
S
58 7 15
pt_date_callback()
S
58 7 14
Paytium::paytium_register_scripts()
S
52 6 25
PT_Post_Types::add_filters()
S
52 6 24
PT_Payment::get_item_data()
S
54 6 20
PT_Payment::copy_first_payment_items_to_renewal_payment()
S
55 6 20
PT_Post_Types::request_filter_actions()
S
55 6 20
pt_select_callback()
S
53 6 20
PT_Admin_AJAX::create_mollie_account()
S
47 5 33
PT_Post_Types::save_custom_meta_boxes()
S
55 6 18
Paytium_Shortcode_Tracker::shortcode_exists_current()
S
57 6 17
Paytium::enqueue_public_scripts()
S
54 6 17
PT_Admin_AJAX::create_mollie_profile()
S
48 5 32
Paytium\WP_Updater\WPUpdater::replace_plugin_thickbox()
S
49 5 31
paytium_notice_dismiss()
S
57 6 16
PT_Admin_AJAX::paytium_sw_save_api_keys()
S
58 6 15
pt_number_callback()
S
58 6 13
Paytium::paytium_subscriptions_admin_search()
S
51 5 27
pt_button()
S
51 5 25
Paytium\WP_Updater\Clients\EDD::get_plugin_update_info()
S
53 5 22
PT_Post_Types::pt_payment_postbox_contents()
S
50 4 35
Paytium::paytium_admin_search()
S
56 5 20
Paytium\WP_Updater\Clients\EDD::deactivate()
S
55 5 19
Paytium\WP_Updater\Plugin::check_and_update_license_status()
S
57 5 18
pt_get_payment_id_by_subscription_id()
S
57 5 17
pt_get_payment_by_subscription_id()
S
57 5 17
Paytium::admin_notice_setup_wizard()
S
59 5 15
PT_Payment::is_discount()
S
69 6 5
paytium_display_notifications()
S
58 5 15
pt_paytium_validate_form_amounts()
S
58 5 15
Paytium\WP_Updater\WPUpdater::update_license()
S
50 4 28
pt_cf_checkout_meta()
S
61 5 13
PT_Admin_AJAX::paytium_emails_attachments()
S
60 5 12
Paytium::load_scripts()
S
61 5 12
Paytium\WP_Updater\WPUpdater::deactivate_license()
S
51 4 26
pt_get_new_payment_status()
S
61 5 11
paytium_check_notifications()
S
62 5 11
PT_Admin_AJAX::check_for_verified_profiles()
S
52 4 24
Paytium::__construct()
S
46 3 37
PT_Payment::update_subscription_id_for_renewal_payments()
S
55 4 19
paytium_check_javascript_loaded()
S
55 4 19
pt_paytium_create_mollie_payment_and_redirect()
S
47 3 34
PT_Post_Types::custom_notice_messages()
S
47 3 33
Paytium::includes()
S
49 3 31
pt_get_subscription_id_by_mollie_subscription_id()
S
50 3 31
pt_paytium_links()
S
57 4 16
pt_paytium_no_payment()
S
57 4 16
PT_Admin_AJAX::update_profile_preference()
S
61 5 10
PT_Payment::get_field_data_customer_emails()
S
62 5 10
pt_set_paytium_key()
S
58 4 15
pt_update_payment_meta()
S
64 5 9
Paytium::admin_notice_newsletter()
S
59 4 14
PT_Payment::get_subscription_items()
S
59 4 14
pt_does_customer_have_valid_mandate()
S
59 4 14
pt_set_http_response_code_and_exit()
S
60 4 14
pt_get_payment_sources()
S
60 4 14
Paytium_Shortcode_Tracker::print_errors()
S
59 4 13
pt_checkbox_callback()
S
58 4 13
PT_Payment::get_payment_form_emails()
S
61 4 12
PT_API::verify_profile()
S
61 4 12
Paytium::admin_notice_has_live_payments()
S
62 4 12
pt_normalize_empty_atts()
S
63 4 11
pt_section_callback()
S
62 4 11
pt_toggle_control_callback()
S
55 3 18
PT_Payment::get_taxes_per_percentage()
S
63 4 10
PT_Payment::get_tax_total()
S
62 4 10
pt_get_args()
S
65 4 9
install_paytium()
S
58 3 15
pt_set_pt_payment_cookie()
S
63 4 9
PT_Payment::set_status()
S
59 3 14
PT_Payment::get_customer_details_field_data()
S
61 3 12
pt_get_all_payments_by_subscription_id()
S
63 3 11
pt_get_all_payments_by_customer_id()
S
63 3 11
pt_get_all_subscriptions_by_customer_id()
S
63 3 11
PT_API::profiles()
S
62 3 11
Paytium\WP_Updater\WPUpdater::license_field()
S
63 3 11
PT_API::create_mollie_profile()
S
62 3 11
Paytium::register_block_paytium_shortcode()
S
53 2 25
Paytium::paytium_load_scripts()
S
56 2 18
Paytium_Shortcode_Tracker::add_new_shortcode()
S
57 2 17
pt_paytium_user_data()
S
57 2 16
pt_get_settings_field_args()
S
57 2 16
PT_Payment::get_total()
S
64 3 10
pt_get_api_key()
S
66 3 8
switched_mode_log()
S
66 3 7
pt_prefill_warning()
S
66 3 7
pt_paytium_get_form_load_id()
S
65 3 10
pt_paytium_update_form_submission_and_redirect()
S
58 2 15
Paytium\WP_Updater\Clients\EDD::is_update_available()
S
66 3 9
Paytium::paytium_action_links()
S
62 3 10
Paytium::paytium_add_mce_button()
S
70 3 6
PT_Post_Types::pt_payment_hide_minor_publishing()
S
70 3 6
Paytium::enqueue_public_styles()
S
64 3 9
PT_Admin_AJAX::check_if_payment_exists()
S
59 2 14
get_paytium_currency_symbol()
S
61 2 12
pt_get_first_payment_id()
S
61 2 12
paytium_add_user_role()
S
62 2 12
Paytium::add_toolbar_link()
S
61 2 12
paytium_add_notification()
S
63 2 11
Paytium\WP_Updater\WPUpdater::admin_enqueue_scripts()
S
62 2 11
pt_get_payment_methods()
S
54 1 21
wpshout_action_example()
S
54 1 21
pt_has_live_payments()
S
56 1 19
Paytium\WP_Updater\WPUpdater::__construct()
S
57 1 16
Paytium\WP_Updater\Clients\EDD::get_version()
S
68 2 8
PT_API::post()
S
59 1 15
Paytium\WP_Updater\Plugin::get_license_key()
S
68 2 7
PT_Payment::get_order_status()
S
71 2 5
PT_Item::get_total_amount()
S
78 2 3
pt_radio_callback()
S
63 2 9
pt_get_payment()
S
68 2 7
pt_paytium_collect_amounts()
S
68 2 8
pt_get_payment_by_payment_id()
S
66 2 8
Paytium\WP_Updater\Plugin::get_license_status()
S
69 2 6
pt_prefill_name()
S
67 2 8
enabled_any_mode_log()
S
68 2 6
PT_Item::get_type()
S
69 2 7
pt_prefill_first_name()
S
68 2 8
PT_Payment::get_status()
S
71 2 5
PT_Item::get_amount()
S
69 2 7
Paytium_Shortcode_Tracker::get_base_attributes()
S
67 2 8
Paytium::get_instance()
S
72 2 6
Paytium::check_wp_version()
S
64 2 9
PT_Item::get_value()
S
69 2 7
PT_Payment::get_transaction_id()
S
75 2 4
PT_Item::get_tax_percentage()
S
69 2 7
Paytium\WP_Updater\Plugin::set_license_status()
S
65 2 9
PT_Payment::set_payment_method()
S
64 2 10
PT_Payment::__construct()
S
67 2 8
Paytium\WP_Updater\Plugin::__construct()
S
66 2 7
Paytium\WP_Updater\Clients\EDD::get_changelog()
S
65 2 9
PT_Payment::discount_tax_calculate()
S
68 2 6
Paytium_Shortcode_Tracker::get_instance()
S
72 2 6
PT_Payment::set_order_status()
S
64 2 10
Paytium::paytium_browser_language()
S
65 2 9
pt_prefill_email()
S
68 2 8
Paytium::paytium_toolbar_css()
S
73 2 5
PT_Item::get_tax_amount()
S
69 2 7
Paytium\WP_Updater\Plugin::set_license_key()
S
66 2 8
PT_Item::get_label()
S
69 2 7
pt_is_localhost()
S
70 2 6
pt_prefill_last_name()
S
68 2 8
Paytium\WP_Updater\WPUpdater::maybe_remove_update_row()
S
72 2 5
PT_Post_Types::custom_columns()
S
59 1 14
pt_paytium_store_form_elements()
S
61 1 13
PT_Post_Types::__construct()
S
59 1 13
pt_paytium_no_api_key_payment_and_redirect()
S
62 1 12
pt_get_payment_statuses()
S
61 1 12
pt_get_payments()
S
63 1 11
Paytium_Shortcode_Tracker::__construct()
S
98 1 1
PT_Payment::get_discount_amount()
S
78 1 3
PT_Payment::get_payment_date()
S
71 1 5
paytium_create_new_mollie_customer()
S
64 1 9
pt_ga_campaign_url()
S
67 1 8
PT_Item::get_meta_key()
S
79 1 3
pt_create_subscription()
S
67 1 8
Paytium()
S
71 1 6
pt_get_order_statuses()
S
66 1 8
pt_get_payment_by_payment_key()
S
71 1 5
PT_Item::get_payment()
S
82 1 3
PT_Payment::get_amount()
S
82 1 3
PT_Payment::get_zero_tax()
S
79 1 3
Paytium_Shortcode_Tracker::set_parent_id()
S
80 1 3
Paytium::pt_extra_user_profile_fields()
S
80 1 3
pt_paytium_collect_fields()
S
66 1 9
PT_Item::get_meta()
S
78 1 3
PT_Item::__construct()
S
77 1 4
PT_Post_Types::pt_payment_files_callback()
S
72 1 5
Paytium\WP_Updater\Clients\EDD::api_request()
S
63 1 10
PT_Admin_AJAX::convert_api_error_messages()
S
67 1 7
pt_get_marketing_subtabs()
S
76 1 4
PT_Payment::get_payment_method()
S
82 1 3
Paytium::paytium_statistics_page()
S
80 1 3
Paytium::display_user_profile()
S
80 1 3
Paytium_Shortcode_Tracker::add_error_message()
S
70 1 6
Paytium\WP_Updater\Plugin::get_name()
S
82 1 3
PT_Payment::update_status_from_admin()
S
76 1 4
PT_Post_Types::payments_overview_details_for_submissions()
S
67 1 7
Paytium_Shortcode_Tracker::update_error_count()
S
80 1 3
PT_Payment::get_description()
S
79 1 3
PT_Item::set_total_amount()
S
77 1 4
PT_API::__construct()
S
91 1 2
PT_Admin::init()
S
76 1 4
pt_calculate_tax_amount()
S
75 1 4
Paytium\WP_Updater\Plugin::get_slug()
S
74 1 5
Paytium\WP_Updater\Plugin::get_version()
S
82 1 3
PT_Post_Types::pt_payment_details_callback()
S
72 1 5
PT_Payment::get_discount_code()
S
79 1 3
PT_Post_Types::pt_payment_items_callback()
S
72 1 5
PT_Admin::__construct()
S
79 1 3
Paytium::setup_wizard_page()
S
80 1 3
PT_Item::set_value()
S
77 1 4
pt_get_admin_tabs()
S
70 1 6
pt_missing_callback()
S
78 1 3
Paytium::display_plugin_admin_page()
S
80 1 3
pt_shortcode_fix()
S
67 1 8
Paytium::paytium_add_buttons()
S
75 1 4
PT_Item::set_amount()
S
77 1 4
PT_Payment::get_subscription_first_payment()
S
82 1 3
pt_get_customer_by_email_in_paytium()
S
69 1 6
Paytium_Shortcode_Tracker::print_shortcodes()
S
78 1 3
Paytium_Shortcode_Tracker::get_error_count()
S
80 1 3
Paytium_Shortcode_Tracker::set_as_base()
S
72 1 5
Paytium::pt_edit_payment_back_button()
S
66 1 10
PT_Payment::get_subscription_recurring_payment()
S
82 1 3
PT_Item::set_type()
S
77 1 4
PT_Item::set_tax_amount()
S
77 1 4
pt_user_amount_to_float()
S
70 1 6
PT_Item::set_tax_percentage()
S
77 1 4
PT_Item::get_item_index()
S
82 1 3
Paytium\WP_Updater\Clients\EDD::__construct()
S
76 1 4
PT_Post_Types::bulk_actions()
S
76 1 4
PT_Item::get_quantity()
S
80 1 3
Paytium_Shortcode_Tracker::reset_error_count()
S
80 1 3
PT_Payment::get_discount_value()
S
79 1 3
PT_Item::set_label()
S
77 1 4
pt_calculate_amount_excluding_tax()
S
75 1 4
PT_Item::set_item_index()
S
80 1 3
PT_Post_Types::pt_customer_details_callback()
S
72 1 5
PT_Post_Types::pt_subscription_details_callback()
S
68 1 7
PT_Post_Types::pt_subscription_first_payment_callback()
S
72 1 5
switched_payment_status_log()
S
70 1 5
PT_Post_Types::pt_payment_failed_callback()
S
72 1 5
Paytium::paytium_register_buttons()
S
76 1 4
Paytium::paytium_extensions_page()
S
80 1 3
PT_Admin_AJAX::__construct()
S
63 1 10
PT_Item::set_payment()
S
81 1 3
Paytium::get_plugin_title()
S
79 1 3