Code Analysis: Vindi WooCommerce 2 1.2.3

Function Rating Maintainability Complexity Lines of code
VindiPaymentGateways\PlansController::create()
D
26
38 155
VindiPaymentGateways\CustomerController::update()
C
34 26 79
VindiPaymentGateways\PlansController::update()
C
31 21 122
VindiPaymentGateways\CustomerController::create()
B
37 23 63
VindiPaymentGateways\VindiPaymentProcessor::process_order()
A
37 12 76
VindiPaymentGateways\ProductController::create()
A
45 12 37
VindiPaymentGateways\VindiPaymentProcessor::get_cycle_from_product_type()
A
54 10 19
VindiPaymentGateways\VindiHelpers::array_sort()
A
51 9 29
VindiPaymentGateways\VindiApi::test_api_key()
A
44 8 43
VindiPaymentGateways\VindiPaymentProcessor::create_subscription()
A
49 9 27
VindiPaymentGateways\VindiPaymentProcessor::build_product_items()
A
48 8 34
VindiPaymentGateways\VindiPaymentProcessor::get_plan_from_order_item()
A
57 9 15
VindiPaymentGateways\VindiPaymentProcessor::build_shipping_item()
A
50 8 27
VindiPaymentGateways\VindiPaymentProcessor::build_tax_item()
A
50 8 27
VindiPaymentGateways\VindiRoutes::getPaymentMethods()
A
50 8 27
VindiPaymentGateways\InterestPriceHandler::calculate_cost()
A
55 8 18
VindiPaymentGateways\VindiWebhooks::subscription_canceled()
A
57 8 17
VindiPaymentGateways\VindiSubscriptionStatusHandler::order_canceled()
S
54 7 21
VindiPaymentGateways\VindiCreditGateway::get_installments()
S
55 7 20
VindiPaymentGateways\VindiPaymentProcessor::get_product()
S
54 7 20
VindiPaymentGateways\VindiRoutes::isSubscriptionActive()
S
57 7 17
VindiPaymentGateways\VindiPaymentGateway::process_refund()
S
48 6 31
VindiPaymentGateways\ProductController::update()
S
49 6 30
VindiPaymentGateways\VindiPaymentProcessor::build_product_from_order_item()
S
51 6 26
VindiPaymentGateways\VindiPaymentProcessor::build_interest_rate_item()
S
51 6 25
VindiPaymentGateways\VindiPaymentGateway::get_level3_data_from_order()
S
46 5 39
VindiPaymentGateways\VindiCreditGateway::payment_fields()
S
53 6 23
VindiPaymentGateways\VindiSubscriptionStatusHandler::order_fully_refunded()
S
53 6 21
VindiPaymentGateways\VindiPaymentProcessor::build_product_items_for_bill()
S
55 6 20
VindiPaymentGateways\VindiPaymentProcessor::order_has_trial_and_simple_product()
S
56 6 20
VindiPaymentGateways\VindiPaymentProcessor::build_sign_up_fee_item()
S
54 6 20
VindiPaymentGateways\VindiApi::request()
S
47 5 34
VindiPaymentGateways\VindiHelpers::get_matching_subscription_item()
S
56 6 18
VindiPaymentGateways\VindiSubscriptionStatusHandler::filter_pre_status()
S
57 6 18
VindiPaymentGateways\VindiHelpers::get_matching_subscription()
S
56 6 17
VindiPaymentGateways\VindiApi::check_response()
S
58 6 14
VindiPaymentGateways\VindiWebhooks::bill_paid()
S
50 5 28
VindiPaymentGateways\VindiPaymentProcessor::finish_payment()
S
51 5 27
VindiPaymentGateways\PlansController::untrash()
S
53 5 24
VindiPaymentGateways\PlansController::trash()
S
53 5 24
VindiPaymentGateways\VindiPaymentProcessor::build_product_items_for_subscription()
S
53 5 22
VindiPaymentGateways\VindiPaymentProcessor::build_discount_item_for_bill()
S
54 5 21
VindiPaymentGateways\VindiDependencies::check_critical_dependencies()
S
49 4 35
VindiPaymentGateways\VindiPaymentProcessor::build_discount_item_for_subscription()
S
54 5 20
VindiPaymentGateways\VindiCreditGateway::build_user_payment_profile()
S
55 5 18
VindiPaymentGateways\VindiPaymentProcessor::cancel_if_denied_bill_status()
S
56 5 18
VindiPaymentGateways\VindiDependencies::check()
S
46 3 47
VindiPaymentGateways\VindiPaymentProcessor::coupon_supports_product()
S
59 5 16
VindiPaymentGateways\VindiWebhooks::update_next_payment()
S
58 5 15
VindiPaymentGateways\VindiCreditGateway::get_cart_total()
S
59 5 13
VindiPaymentGateways\ProductsMetabox::woocommerce_subscription_custom_fields()
S
61 5 12
VindiPaymentGateways\ProductsMetabox::woocommerce_variable_subscription_custom_fields()
S
62 5 12
VindiPaymentGateways\VindiWebhooks::charge_rejected()
S
53 4 24
VindiPaymentGateways\VindiDependencies::check_plugin_dependencies()
S
53 4 23
VindiPaymentGateways\VindiPaymentGateway::process_payment()
S
53 4 22
VindiPaymentGateways\VindiWebhooks::issue_created()
S
54 4 21
VindiPaymentGateways\VindiSettings::init_form_fields()
S
41 1 65
VindiPaymentGateways\VindiWebhooks::handle()
S
55 4 19
VindiPaymentGateways\VindiCreditGateway::init_form_fields()
S
41 1 64
VindiPaymentGateways\PostMeta::check_vindi_item_id()
S
56 4 19
VindiPaymentGateways\VindiDependencies::get_active_plugins()
S
56 4 18
VindiPaymentGateways\ProductController::trash()
S
57 4 17
VindiPaymentGateways\ProductController::untrash()
S
57 4 17
VindiPaymentGateways\VindiWebhooks::subscription_reactivated()
S
57 4 16
VindiPaymentGateways\VindiBankSlipGateway::payment_fields()
S
58 4 15
VindiPaymentGateways\ProductsMetabox::save_woocommerce_product_custom_fields()
S
65 5 9
VindiPaymentGateways\VindiRoutes::getMerchant()
S
62 5 10
VindiPaymentGateways\VindiBankSlipGateway::show_bank_slip_download()
S
60 4 13
VindiPaymentGateways\VindiPaymentProcessor::create_payment_profile()
S
60 4 13
VindiPaymentGateways\VindiPaymentProcessor::create_payment_profile_bank_slip()
S
61 4 12
VindiPaymentGateways\VindiRoutes::createCustomerPaymentProfile()
S
61 4 12
VindiPaymentGateways\VindiWebhooks::process_event()
S
61 4 11
VindiPaymentGateways\VindiPaymentProcessor::get_customer()
S
63 4 11
VindiPaymentGateways\VindiConversions::convert_interval()
S
54 3 23
VindiPaymentGateways\VindiWebhooks::bill_created()
S
54 3 21
VindiPaymentGateways\VindiPaymentProcessor::create_bill()
S
54 3 21
VindiPaymentGateways\VindiSettings::__construct()
S
57 3 16
VindiPaymentGateways\ProductsMetabox::get_post_vars()
S
65 4 9
VindiPaymentGateways\ProductsMetabox::handle_saving_simple_subscription()
S
65 4 9
VindiPaymentGateways\WcVindiPayment::cart_has_trial()
S
64 4 10
VindiPaymentGateways\VindiPaymentProcessor::process()
S
64 4 10
VindiPaymentGateways\VindiSettings::api_key_field()
S
58 3 15
VindiPaymentGateways\VindiRoutes::isMerchantStatusTrialOrSandbox()
S
66 4 8
VindiPaymentGateways\VindiApi::get_error_message()
S
64 4 8
VindiPaymentGateways\VindiSubscriptionStatusHandler::active_status()
S
64 4 10
VindiRedirectToMyAccount()
S
65 4 9
VindiPaymentGateways\CustomerController::delete()
S
61 3 14
VindiRedirectInfo()
S
61 3 13
VindiPaymentGateways\VindiRoutes::findProductByCode()
S
59 3 13
VindiPaymentGateways\VindiWebhooks::subscription_renew()
S
51 2 26
VindiPaymentGateways\VindiRoutes::deleteBill()
S
62 3 11
VindiPaymentGateways\CouponsMetaBox::output()
S
51 2 26
VindiPaymentGateways\VindiPaymentProcessor::cancel_subscriptions_and_order()
S
62 3 11
VindiPaymentGateways\VindiRoutes::getPaymentProfile()
S
61 3 11
VindiPaymentGateways\VindiPaymentProcessor::order_has_trial()
S
63 3 11
VindiPaymentGateways\InterestPriceHandler::add_installment_change_script()
S
61 2 22
VindiPaymentGateways\VindiRoutes::findOrCreateProduct()
S
58 2 17
VindiPaymentGateways\VindiCreditGateway::__construct()
S
50 1 31
VindiPaymentGateways\VindiPaymentProcessor::create_bill_meta_for_order()
S
66 3 8
VindiPaymentGateways\VindiPaymentProcessor::get_plan_length()
S
67 3 9
VindiPaymentGateways\VindiCreditGateway::build_cart_installments()
S
64 3 10
VindiPaymentGateways\ProductsMetabox::filter_woocommerce_product_custom_fields()
S
66 3 9
VindiPaymentGateways\VindiCreditGateway::get_order_max_installments()
S
66 3 8
VindiPaymentGateways\ProductsMetabox::check_credit_payment_active()
S
65 3 9
VindiPaymentGateways\VindiPaymentGateway::get_country_code()
S
66 3 8
VindiPaymentGateways\WcVindiPayment::get_instance()
S
64 3 10
VindiPaymentGateways\VindiPaymentProcessor::get_order_type()
S
70 3 6
VindiPaymentGateways\VindiRoutes::createSubscription()
S
64 3 9
VindiPaymentGateways\VindiPaymentProcessor::check_multiple_subscriptions_of_same_period()
S
66 3 8
VindiPaymentGateways\VindiPaymentProcessor::config_discount_cycles()
S
63 3 10
VindiPaymentGateways\WcVindiPayment::filter_woocommerce_cart_needs_payment()
S
70 3 6
VindiPaymentGateways\VindiPaymentProcessor::installments()
S
65 3 9
VindiPaymentGateways\VindiPaymentProcessor::subscription_has_trial()
S
77 3 3
VindiPaymentGateways\CouponsMetaBox::save()
S
64 3 9
VindiPaymentGateways\VindiDependencies::search_plugin_name()
S
67 3 8
VindiPaymentGateways\VindiPaymentGateway::get_refund_request()
S
58 2 14
VindiPaymentGateways\VindiPaymentProcessor::get_cc_payment_type()
S
59 2 14
VindiPaymentGateways\VindiBankSlipGateway::__construct()
S
50 1 29
VindiPaymentGateways\VindiConversions::convertTriggerToDay()
S
60 2 13
VindiPaymentGateways\InterestPriceHandler::add_order_fee()
S
58 2 13
VindiPaymentGateways\VindiPaymentGateway::refund_transaction()
S
59 2 13
VindiPaymentGateways\VindiWebhooks::find_order_by_bill_id()
S
60 2 12
VindiPaymentGateways\VindiWebhooks::find_order_by_subscription_and_cycle()
S
60 2 12
VindiPaymentGateways\VindiDependencies::ecfb_url()
S
63 2 12
VindiPaymentGateways\VindiBankSlipGateway::thank_you_page()
S
62 2 11
VindiPaymentGateways\VindiPaymentGateway::__construct()
S
62 2 11
VindiPaymentGateways\FrontendFilesLoader::frontendFiles()
S
54 1 23
VindiPaymentGateways\WcVindiPayment::init()
S
54 1 22
VindiPaymentGateways\ProductsMetabox::show_meta_custom_data()
S
54 1 22
VindiPaymentGateways\ProductsMetabox::__construct()
S
58 1 18
VindiPaymentGateways\WcVindiPayment::__construct()
S
56 1 17
VindiPaymentGateways\VindiSettings::call_actions()
S
57 1 16
VindiPaymentGateways\VindiSubscriptionStatusHandler::__construct()
S
59 1 16
VindiPaymentGateways\VindiBankSlipGateway::init_form_fields()
S
58 1 16
VindiPaymentGateways\VindiSubscriptionStatusHandler::get_vindi_subscription_id()
S
70 2 6
VindiPaymentGateways\VindiPaymentProcessor::__construct()
S
64 2 9
VindiPaymentGateways\VindiCreditGateway::get_cart_installments()
S
69 2 6
VindiPaymentGateways\AbstractInstance::instance()
S
72 2 6
VindiPaymentGateways\VindiRoutes::refundCharge()
S
67 2 7
VindiPaymentGateways\VindiPaymentProcessor::cancel_bills()
S
73 2 5
VindiPaymentGateways\VindiPaymentGateway::find_bill_last_charge()
S
64 2 9
VindiPaymentGateways\VindiRoutes::getPlan()
S
65 2 9
VindiPaymentGateways\VindiRoutes::findProductById()
S
66 2 8
VindiPaymentGateways\VindiPaymentProcessor::get_vindi_code()
S
67 2 8
VindiPaymentGateways\VindiWebhooks::find_subscription_by_id()
S
67 2 7
VindiPaymentGateways\VindiSubscriptionStatusHandler::cancelled_status()
S
71 2 6
VindiPaymentGateways\VindiHelpers::get_vindi_amount()
S
69 2 6
VindiPaymentGateways\VindiPaymentProcessor::payment_method_code()
S
79 2 3
VindiPaymentGateways\VindiRoutes::activateSubscription()
S
71 2 5
VindiPaymentGateways\VindiRoutes::findCustomerById()
S
66 2 8
VindiPaymentGateways\VindiRoutes::findBillById()
S
65 2 9
VindiPaymentGateways\VindiApi::base_path()
S
72 2 6
VindiPaymentGateways\VindiRoutes::getSubscription()
S
71 2 5
VindiPaymentGateways\VindiSettings::is_api_key_valid()
S
74 2 5
VindiPaymentGateways\VindiRoutes::acceptBankSlip()
S
72 2 6
VindiPaymentGateways\VindiRoutes::createBill()
S
70 2 6
VindiPaymentGateways\VindiWebhooks::bill_canceled()
S
63 2 10
VindiPaymentGateways\VindiDependencies::woocommerce_url()
S
66 2 9
VindiPaymentGateways\VindiPaymentProcessor::suspend_subscriptions()
S
73 2 5
VindiPaymentGateways\VindiWebhooks::find_bill_by_charge_id()
S
68 2 6
VindiPaymentGateways\VindiPaymentGateway::validate_settings()
S
71 2 5
VindiPaymentGateways\VindiApi::build_body()
S
69 2 7
VindiPaymentGateways\VindiApi::convert_body_to_json()
S
69 2 7
VindiPaymentGateways\VindiSettings::wcs_automatic_payment_settings()
S
66 2 9
VindiPaymentGateways\VindiDependencies::is_wc_memberships_active()
S
69 2 7
VindiPaymentGateways\VindiSettings::get_return_status()
S
69 2 7
VindiPaymentGateways\VindiRoutes::suspendSubscription()
S
66 2 8
VindiPaymentGateways\VindiPaymentProcessor::verify_payment_profile()
S
72 2 5
VindiPaymentGateways\VindiRoutes::getCharge()
S
69 2 6
VindiPaymentGateways\VindiSettings::check_ssl()
S
70 2 7
VindiPaymentGateways\VindiLogger::log()
S
69 2 7
VindiPaymentGateways\VindiPaymentProcessor::abort()
S
67 2 8
VindiPaymentGateways\VindiProductStatus::product_status_notifier()
S
73 2 5
VindiPaymentGateways\VindiSubscriptionStatusHandler::get_wc_subscription_id()
S
75 2 4
VindiPaymentGateways\VindiRoutes::hasPendingSubscriptionBills()
S
64 2 9
VindiPaymentGateways\VindiPaymentGateway::is_single_order()
S
68 2 7
VindiPaymentGateways\VindiPaymentProcessor::check_trial_and_single_product()
S
66 2 8
VindiPaymentGateways\VindiSubscriptionStatusHandler::suspend_status()
S
71 2 6
VindiPaymentGateways\VindiPaymentGateway::is_valid_br_zip_code()
S
78 2 3
VindiPaymentGateways\VindiRoutes::createCustomer()
S
68 2 7
VindiPaymentGateways\VindiWebhooks::find_order_by_id()
S
69 2 6
VindiPaymentGateways\VindiBankSlipGateway::bank_slip_quantity_to_render()
S
71 2 6
VindiPaymentGateways\VindiHelpers::wc_post_meta()
S
65 2 9
VindiPaymentGateways\VindiSettings::get_template()
S
64 1 12
VindiPaymentGateways\VindiDependencies::format_plugin_data()
S
62 1 11
VindiPaymentGateways\ProductsMetabox::handle_saving_variable_subscription()
S
63 1 11
VindiPaymentGateways\PlansController::__construct()
S
65 1 8
VindiPaymentGateways\WcVindiPayment::add_gateway()
S
72 1 5
VindiPaymentGateways\VindiWebhooks::validate_access_token()
S
80 1 3
VindiPaymentGateways\VindiPaymentProcessor::is_variable()
S
79 1 3
VindiPaymentGateways\VindiRoutes::updateCustomer()
S
68 1 7
VindiPaymentGateways\VindiRoutes::updatePlan()
S
68 1 7
VindiPaymentGateways\VindiCreditGateway::verify_user_payment_profile()
S
68 1 8
VindiPaymentGateways\VindiCreditGateway::get_interest_rate()
S
80 1 3
VindiPaymentGateways\VindiSettings::get_token()
S
82 1 3
VindiPaymentGateways\VindiHelpers::clean_statement_descriptor()
S
69 1 6
VindiPaymentGateways\VindiRoutes::__construct()
S
77 1 4
VindiPaymentGateways\VindiPaymentProcessor::get_trial_matching_subscription_item()
S
72 1 5
VindiPaymentGateways\VindiApi::__construct()
S
74 1 5
VindiPaymentGateways\ProductController::__construct()
S
65 1 8
VindiPaymentGateways\VindiSettings::send_nfe_information()
S
79 1 3
VindiPaymentGateways\VindiLanguages::__construct()
S
79 1 3
VindiPaymentGateways\VindiRoutes::createProduct()
S
74 1 4
VindiPaymentGateways\VindiBankSlipGateway::type()
S
82 1 3
VindiPaymentGateways\VindiSettings::settings_tab()
S
79 1 3
VindiPaymentGateways\VindiSettings::add_settings_tab()
S
74 1 4
VindiPaymentGateways\VindiWebhooks::format_date()
S
79 1 3
VindiPaymentGateways\VindiControllers::includes()
S
73 1 5
VindiPaymentGateways\VindiHelpers::__construct()
S
79 1 3
VindiPaymentGateways\VindiPaymentProcessor::is_cc()
S
80 1 3
VindiPaymentGateways\VindiDependencies::critical_dependency_missing_notice()
S
79 1 3
VindiPaymentGateways\VindiPaymentProcessor::is_one_time_shipping()
S
78 1 3
VindiPaymentGateways\VindiLogger::__construct()
S
73 1 5
VindiPaymentGateways\VindiDependencies::init()
S
80 1 3
VindiPaymentGateways\VindiProductStatus::__construct()
S
75 1 4
VindiPaymentGateways\CustomerController::__construct()
S
66 1 8
VindiPaymentGateways\InterestPriceHandler::__construct()
S
75 1 4
VindiPaymentGateways\VindiPaymentGateway::type()
S
100 1 0
VindiPaymentGateways\VindiHelpers::sanitize_xss()
S
79 1 3
VindiPaymentGateways\VindiWebhooks::__construct()
S
77 1 4
VindiPaymentGateways\VindiCreditGateway::is_interest_rate_enabled()
S
80 1 3
VindiPaymentGateways\VindiLanguages::load_plugin_textdomain()
S
78 1 3
VindiPaymentGateways\VindiWebhooks::subscription_has_order_in_cycle()
S
64 1 10
VindiPaymentGateways\VindiSettings::checkKey()
S
83 1 3
VindiPaymentGateways\VindiSettings::get_synchronism_status()
S
79 1 3
VindiPaymentGateways\VindiDependencies::missing_notice()
S
79 1 3
VindiPaymentGateways\CouponsMetaBox::remove_ws_recurring_discount()
S
64 1 10
VindiPaymentGateways\VindiRoutes::createPlan()
S
74 1 4
VindiPaymentGateways\VindiApi::get_auth_header()
S
78 1 3
VindiPaymentGateways\FrontendFilesLoader::__construct()
S
75 1 4
VindiPaymentGateways\VindiPaymentProcessor::get_bank_slip_payment_type()
S
72 1 6
VindiPaymentGateways\FrontendFilesLoader::adminFiles()
S
65 1 8
VindiPaymentGateways\VindiRoutes::deleteCustomer()
S
68 1 7
FieldValidator::customer()
S
91 1 2
VindiPaymentGateways\VindiPaymentProcessor::get_build_products()
S
71 1 6
VindiPaymentGateways\VindiPaymentProcessor::is_bank_slip()
S
80 1 3
VindiPaymentGateways\VindiPaymentGateway::admin_options()
S
79 1 3
VindiPaymentGateways\VindiSettings::get_shipping_and_tax_config()
S
79 1 3
VindiPaymentGateways\VindiHelpers::is_wc_lt()
S
78 1 3
VindiPaymentGateways\WcVindiPayment::getPath()
S
80 1 3
VindiPaymentGateways\VindiRoutes::updateProduct()
S
68 1 7
VindiPaymentGateways\VindiSettings::get_webhooks_url()
S
70 1 7
VindiPaymentGateways\VindiSettings::get_api_key()
S
80 1 3
VindiPaymentGateways\AbstractInstance::__clone()
S
98 1 1
VindiPaymentGateways\VindiPaymentProcessor::create_shipping_product()
S
71 1 6
VindiPaymentGateways\VindiWebhooks::query_order_by_metas()
S
67 1 8
VindiPaymentGateways\AbstractInstance::__construct()
S
98 1 1
VindiPaymentGateways\VindiCreditGateway::type()
S
82 1 3
VindiPaymentGateways\VindiWebhooks::test()
S
79 1 3
VindiPaymentGateways\VindiPaymentProcessor::is_subscription_type()
S
79 1 3
VindiPaymentGateways\VindiRoutes::verifyCustomerPaymentProfile()
S
70 1 6
VindiPaymentGateways\VindiSettings::get_is_active_sandbox()
S
80 1 3
VindiPaymentGateways\VindiCreditGateway::verify_method()
S
80 1 3
VindiPaymentGateways\VindiControllers::__construct()
S
71 1 6