Code Analysis: PayZen for WooCommerce 1.9.4

Function Rating Maintainability Complexity Lines of code
WC_Gateway_Payzen::payzen_manage_notify_response()
D
17
60 227
WC_Gateway_Payzen::init_form_fields()
C
18
10 370
WC_Gateway_PayzenStd::payzen_fill_request()
C
30 27 103
WC_Gateway_Payzen::generate_category_mapping_html()
C
32 28 88
PayzenRestTools::convertRestResult()
C
32 27 90
WC_Gateway_Payzen::generate_table_html()
C
34 24 77
WC_Gateway_PayzenStd::payment_fields()
C
25
14 224
WC_Gateway_PayzenChoozeo::generate_table_html()
B
37 20 69
WC_Gateway_PayzenStd::generate_placeholder_table_html()
B
36 17 74
WC_Gateway_Payzen::generate_multilangtext_html()
B
36 16 83
WC_Gateway_PayzenMulti::validate_payment_options_field()
B
52 20 18
WC_Gateway_PayzenStd::get_form_token()
B
33 14 90
WC_Gateway_PayzenRegroupedOther::validate_payment_means_field()
B
43 17 43
WC_Gateway_PayzenRegroupedOther::payzen_admin_head_script()
A
33 8 163
woocommerce_payzen_init()
A
45 16 39
WC_Gateway_PayzenStd::payzen_rest_head_script()
A
41 13 55
payzen_my_account_endpoint_content()
A
34 9 108
WC_Gateway_PayzenStd::payment_by_alias_view()
A
37 11 78
WC_Gateway_PayzenStd::payzen_manage_rest_notify_response()
A
41 12 54
WC_Gateway_PayzenFranfinance::validate_payment_options_field()
A
51 14 21
WC_Gateway_PayzenSubscription::payzen_fill_request()
A
44 12 40
woocommerce_payzen_order_payment_gateways()
A
46 12 38
WC_Gateway_PayzenSubscription::update_online_subscription()
A
41 11 50
woocommerce_payzen_add_method()
A
48 12 33
WC_Gateway_PayzenChoozeo::validate_payment_options_field()
A
53 13 18
PayzenRequest::set()
A
49 12 28
WC_Gateway_Payzen::payzen_save_identifier()
A
45 11 36
WC_Gateway_PayzenStd::init_form_fields()
A
30 3 151
PayzenRequest::setMultiPayment()
A
57 12 14
WC_Gateway_PayzenRegroupedOther::validate_extra_payment_means_field()
A
50 11 27
Payzen_WC_Subscriptions_Subscriptions_Handler::subscription_info()
A
45 10 42
WC_Gateway_Payzen::payzen_add_order_note()
A
45 10 42
WC_Gateway_PayzenStd::get_temporary_form_token()
A
44 10 39
PayzenRest::curlPost()
A
42 9 52
WC_Gateway_PayzenRegroupedOther::get_available_options()
A
56 11 16
WC_Gateway_Payzen::payzen_delete_saved_card()
A
44 9 42
WC_Gateway_PayzenStd::to_gateway_category()
A
51 10 25
payzen_send_support_email_on_order()
A
38 6 81
WC_Gateway_PayzenFranfinance::get_available_options()
A
54 10 18
WC_Gateway_PayzenStd::rest_payment_fields_view()
A
39 4 101
WC_Gateway_PayzenStd::is_available()
A
54 9 21
PayzenRequest::get()
A
54 9 19
WC_Gateway_Payzen::validate_multilangtext_field()
A
54 9 18
WC_Gateway_PayzenSubscription::is_available_for_subscriptions()
A
56 9 17
WC_Gateway_Payzen::get_success_order_statuses()
A
48 8 32
Payzen_WC_Subscriptions_Subscriptions_Handler::process_subscription_renewal()
A
43 7 46
WC_Gateway_PayzenMulti::get_available_options()
A
57 9 14
WC_Gateway_PayzenChoozeo::get_available_options()
A
58 9 14
WC_Gateway_PayzenSubscription::cancel_online_subscription()
A
44 7 41
PayzenRequest::__construct()
A
30 2 115
WC_Gateway_Payzen::check_identifier()
A
46 7 37
PayzenResponse::getOutputForGateway()
A
46 7 35
WC_Gateway_PayzenRegroupedOther::init_form_fields()
A
36 3 93
WC_Gateway_PayzenRegroupedOther::regroup_other_payment_means()
S
57 8 15
WC_Gateway_PayzenChoozeo::payment_fields()
S
46 6 40
WC_Gateway_Payzen::payzen_add_order_email_payment_result()
S
52 7 23
payzen_send_email()
S
53 7 21
WC_Gateway_PayzenFranfinance::payzen_admin_head_script()
S
42 3 78
WC_Gateway_PayzenRegroupedOther::payzen_fill_request()
S
56 7 17
PayzenTools::get_transaction_uuid()
S
57 7 16
WC_Gateway_Payzen::is_successful_action()
S
59 7 15
PayzenRest::fallbackPost()
S
49 6 29
PayzenRestTools::checkResult()
S
57 7 14
WC_Gateway_PayzenSubscription::can_use_alias()
S
61 7 11
WC_Gateway_PayzenMulti::init_form_fields()
S
39 3 71
WC_Gateway_PayzenStd::process_payment()
S
51 6 24
PayzenApi::sign()
S
53 6 21
PayzenRequest::getRequestFields()
S
55 6 21
PayzenRequest::getRequestFieldsArray()
S
55 6 19
WC_Gateway_Payzen::admin_options()
S
49 5 32
WC_Gateway_PayzenStd::payzen_admin_head_script()
S
41 1 91
WC_Gateway_PayzenSubscription::get_rrule()
S
57 6 15
WC_Gateway_Payzen::is_new_order()
S
59 6 14
WC_Gateway_PayzenStd::is_available_for_subscriptions()
S
59 6 13
WC_Gateway_PayzenFranfinance::payment_fields()
S
50 5 28
WC_Gateway_PayzenSubscription::cancel_transaction()
S
49 5 28
WC_Gateway_PayzenSubscription::get_order_details()
S
49 5 28
WC_Gateway_PayzenMulti::payment_fields()
S
50 5 28
PayzenResponse::translate()
S
59 6 13
Payzen_Subscriptio_Subscriptions_Handler::cart_contains_multiple_subscriptions()
S
61 6 12
WC_Gateway_PayzenSubscription::__construct()
S
46 4 37
PayzenApi::formatSupportEmails()
S
53 5 22
WC_Gateway_Payzen::payzen_save_recurrence()
S
53 5 20
WC_Gateway_Payzen::payzen_notices()
S
58 5 16
WC_Gateway_Payzen::payzen_notify_response()
S
48 4 31
WC_Gateway_PayzenStd::can_use_alias()
S
63 6 9
WC_Gateway_Payzen::validate_multiselect_field()
S
64 6 8
WC_Gateway_PayzenStd::validate_rest_attempts_field()
S
63 6 9
WC_Gateway_PayzenSubscription::payment_by_alias_view()
S
49 4 29
WC_Gateway_Payzen::get_threeds_status()
S
61 5 14
WC_Gateway_PayzenFranfinance::init_form_fields()
S
42 2 58
WC_Gateway_PayzenRegroupedOther::payment_fields()
S
50 4 28
WC_Gateway_Payzen::get_general_option()
S
62 5 12
WC_Gateway_PayzenStd::is_available_for_country()
S
60 5 12
Payzen_WC_Subscriptions_Subscriptions_Handler::cart_contains_multiple_subscriptions()
S
62 5 11
WC_Gateway_PayzenMulti::__construct()
S
51 4 24
Payzen_Subscriptio_Subscriptions_Handler::process_subscription_renewal()
S
53 4 23
WC_Gateway_PayzenChoozeo::init_form_fields()
S
44 2 49
WC_Gateway_PayzenStd::payzen_generate_iframe_form()
S
48 3 33
WC_Gateway_PayzenStd::get_product_top_level_category()
S
56 4 18
WC_Gateway_PayzenStd::get_rest_fields()
S
45 2 48
WC_Gateway_Payzen::validate_ctx_mode_field()
S
63 5 9
PayzenField::isValid()
S
65 5 9
WC_Gateway_Payzen::validate_category_mapping_field()
S
63 5 9
PayzenRequest::getRequestHtmlFields()
S
58 4 15
WC_Gateway_Payzen::init_general_settings()
S
63 5 9
Payzen_WC_Subscriptions_Subscriptions_Handler::get_effect_date()
S
60 4 14
Payzen_WC_Subscriptions_Subscriptions_Handler::create_renewal_order()
S
59 4 14
WC_Gateway_PayzenOther::payzen_fill_request()
S
59 4 14
WC_Gateway_PayzenStd::filter_allowed_countries()
S
60 4 14
WC_Gateway_PayzenFranfinance::is_available()
S
62 4 13
WC_Gateway_PayzenMulti::is_available()
S
62 4 13
WC_Gateway_PayzenChoozeo::is_available()
S
62 4 13
PayzenRest::__construct()
S
61 4 13
PayzenTools::get_used_discounts()
S
60 4 12
WC_Gateway_PayzenStd::validate_amount_max_field()
S
62 4 11
WC_Gateway_Payzen::generate_support_component_html()
S
45 1 56
WC_Gateway_Payzen::validate_3ds_min_amount_field()
S
62 4 11
PayzenResponse::isSuspectedFraud()
S
63 4 11
WC_Gateway_PayzenStd::validate_amount_min_field()
S
62 4 11
WC_Gateway_PayzenStd::__construct()
S
50 3 25
WC_Gateway_Payzen::__construct()
S
51 3 23
WC_Gateway_PayzenFranfinance::__construct()
S
53 3 20
WC_Gateway_PayzenKlarna::__construct()
S
53 3 20
WC_Gateway_PayzenMulti::process_payment()
S
53 3 20
WC_Gateway_PayzenRegroupedOther::__construct()
S
53 3 20
WC_Gateway_PayzenChoozeo::__construct()
S
53 3 20
WC_Gateway_PayzenStd::send_cart_data()
S
56 3 18
WC_Gateway_PayzenStd::payzen_refresh_form_token()
S
56 3 17
WC_Gateway_Payzen::get_gateway_categories()
S
49 2 31
Payzen_Subscriptio_Subscriptions_Handler::subscription_info()
S
57 3 16
WC_Gateway_PayzenSubscription::process_payment()
S
56 3 16
WC_Gateway_PayzenKlarna::validate_capture_delay_field()
S
67 4 7
WC_Gateway_PayzenSubscription::payzen_order_needs_payment()
S
67 4 7
PayzenApi::findCurrency()
S
65 4 9
WC_Gateway_PayzenMulti::payzen_fill_request()
S
62 4 9
WC_Gateway_Payzen::subscriptions_handler()
S
65 4 8
WC_Gateway_Payzen::get_description()
S
67 4 7
PayzenRequest::clearInvalidOptionnalFields()
S
66 4 8
PayzenRequest::isRequestReady()
S
64 4 9
WC_Gateway_PayzenStd::payzen_generate_form()
S
49 2 30
PayzenResponse::get()
S
68 4 6
WC_Gateway_PayzenStd::get_title()
S
65 4 8
Payzen_WC_Subscriptions_Subscriptions_Handler::update_subscription()
S
62 4 10
WC_Gateway_PayzenMulti::get_supported_card_types()
S
58 3 14
WC_Gateway_PayzenMulti::payzen_admin_head_script()
S
53 1 44
Payzen_Subscriptions_Loader::getInstance()
S
60 3 13
WC_Gateway_PayzenFranfinance::payzen_fill_request()
S
59 3 13
woocommerce_payzen_activation()
S
59 3 13
payzen_admin_url()
S
61 3 12
WC_Gateway_Payzen::add_notice()
S
62 3 12
WC_Gateway_PayzenStd::get_shipping_with_tax()
S
62 3 12
PayzenResponse::__construct()
S
60 3 12
PayzenRequest::getRequestUrl()
S
60 3 12
WC_Gateway_Payzen::payzen_reset_admin_options()
S
61 3 12
WC_Gateway_Payzen::generate_label_html()
S
54 2 25
WC_Gateway_Payzen::payzen_admin_head_style()
S
63 1 40
WC_Gateway_PayzenKlarna::init_form_fields()
S
53 2 22
WC_Gateway_Payzen::payzen_redirect()
S
58 2 19
PayzenApi::getSupportedCurrencies()
S
52 2 18
PayzenApi::getSupportedCardTypes()
S
44 1 33
WC_Gateway_PayzenChoozeo::process_payment()
S
55 2 18
WC_Gateway_PayzenFranfinance::process_payment()
S
55 2 17
WC_Gateway_PayzenOther::__construct()
S
55 2 17
WC_Gateway_Payzen::is_cust_identifier_active()
S
64 3 9
Payzen_Subscriptio_Subscriptions_Handler::get_effect_date()
S
63 3 10
PayzenResponse::getRiskAssessment()
S
68 3 7
WC_Gateway_PayzenSubscription::payment_fields()
S
64 3 9
WC_Gateway_Payzen::get_customer_property()
S
67 3 7
PayzenResponse::findInArray()
S
70 3 6
WC_Gateway_PayzenRegroupedOther::get_mean()
S
65 3 9
PayzenApi::findCurrencyByNumCode()
S
65 3 9
WC_Gateway_PayzenStd::validate_rest_placeholder_field()
S
71 3 5
WC_Gateway_Payzen::get_cust_identifier()
S
64 3 9
PayzenRequest::getCertificate()
S
65 3 10
Payzen_WC_Subscriptions_Subscriptions_Handler::get_renewal_order()
S
66 3 8
PayzenRestTools::checkResponse()
S
77 3 3
WC_Gateway_Payzen::payzen_is_section_loaded()
S
73 3 4
Payzen_Subscriptio_Subscriptions_Handler::get_end_date()
S
66 3 8
WC_Gateway_Payzen::get_order_property()
S
67 3 7
Payzen_WC_Subscriptions_Subscriptions_Handler::process_subscription()
S
58 2 15
WC_Gateway_PayzenSubscription::payzen_display_subscription_error_msg()
S
61 2 15
PayzenApi::isSupportedLanguage()
S
67 3 8
PayzenApi::findCurrencyByAlphaCode()
S
65 3 9
PayzenRequest::setRedirectEnabled()
S
73 3 4
PayzenRequest::setCertificate()
S
64 3 10
PayzenTools::get_coupon_codes()
S
66 3 9
PayzenResponse::getRiskControl()
S
63 3 10
WC_Gateway_PayzenStd::get_icon()
S
63 3 10
WC_Gateway_Payzen::payzen_complete_order_status()
S
65 3 8
PayzenResponse::getMessage()
S
65 3 8
WC_Gateway_PayzenStd::get_supported_card_types()
S
67 3 7
WC_Gateway_PayzenRegroupedOther::process_payment()
S
58 2 14
WC_Gateway_Payzen::get_order_notes()
S
60 2 13
PayzenRequest::addProduct()
S
58 2 12
WC_Gateway_Payzen::get_validation_modes()
S
61 2 12
PayzenTools::get_integration_mode()
S
63 2 11
WC_Gateway_Payzen::payzen_admin_head_script()
S
60 1 22
WC_Gateway_PayzenSubscription::init_form_fields()
S
55 1 20
PayzenApi::getSupportedLanguages()
S
57 1 17
PayzenApi::getCurrencyNumCode()
S
74 2 4
WC_Gateway_Payzen::update_custidentifier()
S
66 2 8
WC_Gateway_Payzen::is_supported_currency()
S
69 2 7
PayzenApi::generateTransId()
S
64 2 9
PayzenRequest::generateSignature()
S
67 2 7
PayzenField::setValue()
S
72 2 5
Payzen_WC_Subscriptions_Subscriptions_Handler::get_parent_order()
S
69 2 7
PayzenRest::post()
S
69 2 7
PayzenRequest::setPlatformUrl()
S
67 2 8
PayzenRequest::setSignAlgo()
S
69 2 7
woocommerce_payzen_add_link()
S
63 2 10
PayzenTools::get_active_plugins()
S
64 2 9
WC_Gateway_Payzen::clear_notices()
S
68 2 8
PayzenApi::shortPhpVersion()
S
66 2 8
PayzenRequest::setFromArray()
S
68 2 7
Payzen_WC_Subscriptions_Subscriptions_Handler::cancel_subscription()
S
68 2 7
Payzen_WC_Subscriptions_Subscriptions_Handler::get_subscription_statuses()
S
72 2 6
PayzenResponse::isAcceptedPayment()
S
78 2 3
WC_Gateway_PayzenRegroupedOther::is_available()
S
79 2 3
WC_Gateway_PayzenStd::get_escaped_var()
S
69 2 7
WC_Gateway_PayzenOther::get_title()
S
66 2 8
PayzenRestTools::checkHash()
S
64 2 9
PayzenRestTools::getProperty()
S
71 2 6
WC_Gateway_Payzen::log()
S
71 2 6
WC_Gateway_Payzen::payzen_init()
S
62 2 10
WC_Gateway_Payzen::display_amount()
S
68 2 7
PayzenResponse::appendResultCode()
S
71 2 6
PayzenRequest::addField()
S
67 2 7
Payzen_WC_Subscriptions_Subscriptions_Handler::get_end_date()
S
77 2 3
Payzen_WC_Subscriptions_Subscriptions_Handler::cart_contains_subscription()
S
70 2 7
PayzenResponse::getLogMessage()
S
63 2 10
WC_Gateway_PayzenStd::is_supported_currency()
S
70 2 6
WC_Gateway_Payzen::get_supported_languages()
S
68 2 7
WC_Gateway_PayzenStd::get_description()
S
68 2 8
PayzenRequest::getRequestHtmlForm()
S
62 1 10
PayzenResponse::getFloatAmount()
S
75 1 4
WC_Gateway_PayzenOther::get_description()
S
81 1 3
Payzen_Disabled_Subscriptions_Handler::cart_contains_multiple_subscriptions()
S
82 1 3
PayzenField::getLabel()
S
82 1 3
PayzenCurrency::convertAmountToInteger()
S
72 1 5
WC_Gateway_PayzenMulti::get_rest_fields()
S
91 1 2
PayzenCurrency::getNum()
S
82 1 3
PayzenApi::getPendingStatuses()
S
66 1 10
WC_Gateway_PayzenOther::get_rest_fields()
S
91 1 2
Payzen_WC_Subscriptions_Subscriptions_Handler::get_view_order_url()
S
76 1 4
ly_add_saved_cards_endpoint_query_vars()
S
77 1 4
PayzenResponse::getResult()
S
82 1 3
WC_Gateway_PayzenRegroupedOther::get_method_title_field_description()
S
79 1 3
PayzenResponse::isAuthentified()
S
80 1 3
PayzenApi::getToValidateStatuses()
S
79 1 3
WC_Gateway_PayzenStd::payzen_rest_notify_response()
S
81 1 3
Payzen_Subscriptio_Subscriptions_Handler::get_view_order_url()
S
82 1 3
PayzenField::getName()
S
82 1 3
Payzen_Disabled_Subscriptions_Handler::cancel_subscription()
S
91 1 2
Payzen_WC_Subscriptions_Subscriptions_Handler::get_frequency()
S
64 1 10
WC_Gateway_PayzenKlarna::get_rest_fields()
S
91 1 2
PayzenTools::get_contrib()
S
67 1 7
Payzen_Disabled_Subscriptions_Handler::cart_contains_subscription()
S
82 1 3
PayzenApi::getSuccessStatuses()
S
69 1 8
Payzen_Disabled_Subscriptions_Handler::subscription_info()
S
82 1 3
PayzenField::__construct()
S
69 1 7
Payzen_Subscriptio_Subscriptions_Handler::init_hooks()
S
91 1 2
WC_Gateway_PayzenOther::is_available()
S
81 1 3
PayzenResponse::getCompleteMessage()
S
70 1 6
WC_Gateway_Payzen::get_method_title_field_description()
S
79 1 3
PayzenResponse::getOutputForPlatform()
S
78 1 3
PayzenField::isRequired()
S
82 1 3
WC_Gateway_PayzenFranfinance::get_rest_fields()
S
91 1 2
PayzenRest::setTimeouts()
S
77 1 4
WC_Gateway_PayzenChoozeo::payzen_fill_request()
S
64 1 9
ly_change_saved_cards_title()
S
80 1 3
WC_Gateway_PayzenRegroupedOther::get_rest_fields()
S
91 1 2
Payzen_Subscriptio_Subscriptions_Handler::process_subscription()
S
91 1 2
PayzenResponse::getWarrantyResult()
S
82 1 3
WC_Gateway_PayzenSubscription::get_rest_fields()
S
91 1 2
PayzenCurrency::__construct()
S
74 1 5
PayzenResponse::getExtraResult()
S
82 1 3
WC_Gateway_Payzen::delete_identifier_attributes()
S
67 1 7
PayzenTools::get_support_component_language()
S
74 1 4
ly_add_saved_cards_endpoint()
S
79 1 3
WC_Gateway_PayzenChoozeo::get_rest_fields()
S
91 1 2
WC_Gateway_PayzenStd::payzen_rest_return_response()
S
81 1 3
WC_Gateway_PayzenKlarna::payzen_fill_request()
S
70 1 6
woocommerce_payzen_uninstallation()
S
66 1 10
Payzen_WC_Subscriptions_Subscriptions_Handler::is_subscription_update()
S
82 1 3
PayzenResponse::extraMessage()
S
74 1 4
PayzenCurrency::getAlpha3()
S
82 1 3
WC_Gateway_Payzen::get_method_description_field_description()
S
79 1 3
Payzen_Subscriptio_Subscriptions_Handler::get_frequency()
S
65 1 9
PayzenRest::setProxy()
S
77 1 4
Payzen_Disabled_Subscriptions_Handler::process_subscription()
S
91 1 2
PayzenResponse::getSignature()
S
79 1 3
WC_Gateway_PayzenRegroupedOther::get_method_description_field_description()
S
79 1 3
WC_Gateway_PayzenRegroupedOther::is_available_ignoring_regroup()
S
80 1 3
Payzen_Disabled_Subscriptions_Handler::update_subscription()
S
91 1 2
PayzenResponse::isCancelledPayment()
S
79 1 3
Payzen_Subscriptio_Subscriptions_Handler::update_subscription()
S
91 1 2
Payzen_Subscriptio_Subscriptions_Handler::cancel_subscription()
S
91 1 2
Payzen_Subscriptio_Subscriptions_Handler::is_subscription_update()
S
82 1 3
PayzenApi::getCancelledStatuses()
S
80 1 3
Payzen_WC_Subscriptions_Subscriptions_Handler::init_hooks()
S
75 1 4
ly_saved_cards_link()
S
69 1 6
PayzenResponse::getComputedSignature()
S
78 1 3
PayzenField::getValue()
S
82 1 3
PayzenResponse::getAuthResult()
S
82 1 3
PayzenCurrency::convertAmountToFloat()
S
74 1 4
PayzenResponse::isPendingPayment()
S
79 1 3
PayzenResponse::isToValidatePayment()
S
79 1 3
WC_Gateway_PayzenStd::load_by_ajax_call()
S
79 1 3
PayzenCurrency::getDecimals()
S
82 1 3
PayzenResponse::getExtInfo()
S
79 1 3
Payzen_Subscriptio_Subscriptions_Handler::get_parent_order()
S
82 1 3
PayzenRequest::addExtInfo()
S
77 1 3
PayzenField::getLength()
S
82 1 3
Payzen_Subscriptio_Subscriptions_Handler::get_subscription_statuses()
S
82 1 3
Payzen_Subscriptio_Subscriptions_Handler::cart_contains_subscription()
S
81 1 3
PayzenRest::getVersion()
S
81 1 3
PayzenResponse::getTransStatus()
S
82 1 3
PayzenResponse::getAllResults()
S
67 1 8
PayzenRestException::__construct()
S
75 1 4
WC_Gateway_PayzenStd::save_selected_card()
S
74 1 4
PayzenField::isFilled()
S
80 1 3