Code Analysis: Flutterwave Payments 1.0.6

Function Rating Maintainability Complexity Lines of code
Flutterwave_Payments::get_payment_url()
B
32 16 107
FLW_Shortcode_Payment_Form::handle_special_fields()
B
45 19 38
FLW_Shortcode_Payment_Form::parse_attributes()
A
37 14 74
FLW_Webhook_Rest_Route::handle_hook()
A
35 8 109
FLW_Transaction_Rest_Route::verifyPayment()
A
36 7 105
FLW_Transaction_Rest_Route::update_transaction()
A
39 9 74
FLW_Webhook_Rest_Route::update_wordpress()
A
46 10 38
FLW_Transaction_Rest_Route::update_wordpress()
A
47 10 36
FLW_Shortcode_Payment_Form::prepare_custom_fields()
A
51 8 24
Flutterwave_Payments::process_payment()
A
44 6 47
FLW_Shortcode_Payment_Form::prepare_default_fields()
S
54 7 21
FLW_Shortcodes::pay_button_shortcode()
S
56 7 17
FLW_Shortcode_Payment_Form::handle_currency_field()
S
55 7 16
FLW_Shortcodes::donation_page_shortcode()
S
57 7 16
Abstract_FLW_Shortcode::get_field_data_type()
S
42 2 65
FLW_Shortcode_Payment_Form::render()
S
57 5 16
FLW_Admin_Settings::are_redirect_urls_present()
S
66 6 7
FLW_Shortcode_Payment_Form::handle_regular_fields()
S
58 5 13
FLW_Payment_List::column_default()
S
62 5 12
FLW_Thirdparty_Integrations::register()
S
53 4 22
Flutterwave_Payments::init()
S
54 4 21
FLW_VC_Simple_Form::flw_simple_form_mapping()
S
44 2 49
Flutterwave\WordPress\Integrations\AbstractService::request()
S
55 4 18
Flutterwave\WordPress\API\Client::request()
S
56 4 17
FLW_Shortcode_Payment_Form::build_custom_fields()
S
55 3 19
Flutterwave_Payments::generate_payment_hash()
S
56 3 18
FLW_Payment_List::get_payments()
S
58 3 14
FLW_Shortcode_Donation_Form::render()
S
62 3 11
Flutterwave_Payments::admin_notices()
S
61 3 11
FLW_Shortcode_Donation_Form::parse_attributes()
S
55 2 19
Flutterwave_Payments::include_files()
S
60 2 15
FLW_Shortcodes::render_payment_form()
S
62 3 10
FLW_Shortcodes::get_logo_url()
S
65 3 8
FLW_Tinymce_Plugin::flw_rave_shortcode_button_init()
S
69 3 6
Flutterwave\WordPress\API\Handler::handle_api_errors()
S
67 3 7
Abstract_FLW_Shortcode::get_logo_url()
S
65 3 8
FLW_Admin_Settings::is_public_key_present()
S
67 3 7
FLW_Shortcode_Payment_Form::set_button_text()
S
67 3 8
FLW_Transaction_Rest_Route::create_rest_routes()
S
53 1 29
Flutterwave_Payments::generate_payment_plan()
S
62 2 12
Abstract_FLW_Shortcode::get_allowed_html()
S
56 1 23
FLW_Shortcode_Payment_Form::load_scripts()
S
54 1 21
FLW_Shortcode_Donation_Form::load_scripts()
S
54 1 20
FLW_Admin_Settings::flw_rave_add_admin_menu()
S
57 1 19
FLW_Payment_List::add_payment_list_post_type()
S
58 1 16
FLW_Webhook_Rest_Route::has_order_property_matched()
S
67 2 7
Flutterwave_Payments::get_instance()
S
71 2 6
Abstract_FLW_Shortcode::use_current_user_email()
S
77 2 3
FLW_Admin_Settings::init_settings()
S
73 2 5
Abstract_FLW_Shortcode::get_supported_country()
S
59 1 15
Flutterwave_Payments::define()
S
75 2 5
FLW_Admin_Settings::get_option_value()
S
68 2 7
FLW_Transaction_Rest_Route::has_order_property_matched()
S
67 2 7
FLW_Admin_Settings::get_instance()
S
71 2 6
FLW_Shortcode_Payment_Form::convert_options_to_array()
S
66 2 8
FLW_Payment_List::get_instance()
S
71 2 6
FLW_Shortcodes::init()
S
64 2 10
FLW_Shortcodes::get_instance()
S
71 2 6
FLW_Shortcodes::load_css_files()
S
69 2 6
FLW_Thirdparty_Integrations::get_instance()
S
72 2 6
Flutterwave_Payments::gen_rand_string()
S
69 2 6
FLW_Thirdparty_Integrations::init_settings()
S
73 2 5
FLW_Thirdparty_Integrations::get()
S
71 2 6
FLW_Tinymce_Plugin::get_instance()
S
71 2 6
Flutterwave\WordPress\API\Client::get_instance()
S
72 2 6
FLW_Thirdparty_Integrations::get_option_value()
S
68 2 7
FLW_Transaction_Rest_Route::add_post_meta()
S
72 2 5
FLW_Webhook_Rest_Route::add_post_meta()
S
72 2 5
Flutterwave\WordPress\Helper\RequestHelper::generate_hash()
S
66 2 8
Flutterwave_Payments::add_post_meta()
S
72 2 5
FLW_Transaction_Rest_Route::get_transactions()
S
59 1 14
FLW_Payment_List::__construct()
S
60 1 13
FLW_Payment_List::get_columns()
S
60 1 13
FLW_Payment_List::prepare_items()
S
62 1 12
FLW_Webhook_Rest_Route::create_rest_routes()
S
64 1 11
FLW_Payment_List::column_tx_ref()
S
61 1 11
Flutterwave\WordPress\Integrations\AbstractService::get_name()
S
80 1 3
FLW_Shortcode_Donation_Form::get_attributes()
S
82 1 3
FLW_Shortcodes::__wakeup()
S
91 1 2
Flutterwave_Payments::is_successful()
S
80 1 3
Abstract_FLW_Shortcode::__construct()
S
70 1 6
Flutterwave\WordPress\Integrations\AbstractService::get_key()
S
82 1 3
FLW_Thirdparty_Integrations::flw_integration_page()
S
75 1 4
FLW_VC_Simple_Form::__construct()
S
79 1 3
Flutterwave\WordPress\Integrations\ApiLayer\ExchangeRateService::init()
S
81 1 3
FLW_Shortcode_Payment_Form::__construct()
S
75 1 4
FLW_Shortcodes::__clone()
S
91 1 2
FLW_Shortcodes::check_redirect_urls()
S
74 1 4
FLW_Transaction_Rest_Route::free_pass()
S
82 1 3
FLW_Transaction_Rest_Route::__construct()
S
75 1 4
Abstract_FLW_Shortcode::parse_attributes()
S
100 1 0
FLW_Shortcode_Donation_Form::parse_query_args()
S
82 1 3
Flutterwave\WordPress\Integrations\AbstractService::init()
S
100 1 0
Flutterwave_Payments::define_constants()
S
72 1 5
Flutterwave\WordPress\Helper\WebhookHelper::compare_secret_hash()
S
81 1 3
FLW_Shortcode_Payment_Form::parse_query_args()
S
82 1 3
FLW_Thirdparty_Integrations::add_admin_menu()
S
65 1 10
FLW_Thirdparty_Integrations::get_admin_script()
S
71 1 5
FLW_Payment_List::record_count()
S
76 1 4
FLW_Shortcode_Payment_Form::get_attributes()
S
82 1 3
Flutterwave\WordPress\Integrations\AbstractService::get_headers()
S
100 1 0
FLW_Shortcode_Donation_Form::__construct()
S
79 1 3
FLW_Payment_List::no_items()
S
80 1 3
Flutterwave\WordPress\Integrations\AbstractService::get_info()
S
100 1 0
FLW_Payment_List::column_currency()
S
79 1 3
Flutterwave\WordPress\Exception\ApiException::__construct()
S
76 1 4
FLW_Shortcode_Payment_Form::is_special_field()
S
73 1 4
FLW_Thirdparty_Integrations::__construct()
S
70 1 6
Flutterwave_Payments::__construct()
S
75 1 5
Flutterwave_Payments::get_option()
S
80 1 3
FLW_Payment_List::column_cb()
S
73 1 6
Flutterwave\WordPress\API\Client::__construct()
S
67 1 8
Flutterwave\WordPress\Exception\ApiException::getError()
S
82 1 3
FLW_Transaction_Rest_Route::get_transactions_permission()
S
80 1 3
FLW_Tinymce_Plugin::flw_rave_add_tinymce_button()
S
76 1 4
FLW_Tinymce_Plugin::__construct()
S
79 1 3
Abstract_FLW_Shortcode::render()
S
100 1 0
FLW_Webhook_Rest_Route::free_pass()
S
82 1 3
Flutterwave\WordPress\Integrations\AbstractService::get_assets()
S
100 1 0
FLW_Payment_List::payment_list_table()
S
80 1 3
FLW_Admin_Settings::__construct()
S
72 1 5
FLW_Admin_Settings::flw_rave_register_settings()
S
80 1 3
FLW_Tinymce_Plugin::flw_rave_register_tinymce_plugin()
S
75 1 4
Flutterwave\WordPress\Integrations\ApiLayer\ExchangeRateService::get_features()
S
76 1 5
FLW_Payment_List::delete_payment()
S
80 1 3
FLW_Payment_List::set_screen()
S
82 1 3
FLW_Shortcodes::__construct()
S
76 1 4
Flutterwave\WordPress\Integrations\ApiLayer\ExchangeRateService::__construct()
S
73 1 5
Abstract_FLW_Shortcode::get_payment_options()
S
68 1 8
FLW_Payment_List::add_to_menu()
S
65 1 10
Flutterwave\WordPress\Integrations\ApiLayer\ExchangeRateService::get_info()
S
72 1 6
Flutterwave_Payments::register_third_party_integrations()
S
66 1 9
Flutterwave\WordPress\Integrations\ApiLayer\ExchangeRateService::get_headers()
S
72 1 6
Flutterwave\WordPress\API\Handler::get_error_hash_table()
S
69 1 6
Flutterwave\WordPress\Integrations\AbstractService::__construct()
S
81 1 3
Flutterwave\WordPress\Helper\WebhookHelper::validate_hook_body()
S
81 1 3
FLW_Shortcode_Payment_Form::is_custom_field()
S
75 1 4
Flutterwave\WordPress\Integrations\AbstractService::get_features()
S
100 1 0
Flutterwave_Payments::fetch_transaction()
S
72 1 5
FLW_Thirdparty_Integrations::register_settings()
S
80 1 3
Abstract_FLW_Shortcode::load_scripts()
S
100 1 0
Flutterwave\WordPress\Integrations\AbstractService::set_key()
S
81 1 3
Flutterwave\WordPress\Integrations\ApiLayer\ExchangeRateService::get_assets()
S
74 1 5
FLW_Payment_List::column_amount()
S
74 1 4
Abstract_FLW_Shortcode::parse_query_args()
S
100 1 0
FLW_Admin_Settings::flw_rave_admin_setting_page()
S
79 1 3
Flutterwave\WordPress\Helper\RequestHelper::get_default_payment_options()
S
81 1 3
FLW_Shortcodes::check_settings_for_api_keys()
S
74 1 4
FLW_Webhook_Rest_Route::__construct()
S
75 1 4
Flutterwave\WordPress\API\Client::get_base_url()
S
80 1 3