Code Analysis: Payment Gateway bKash for WC 2.0.0

Function Rating Maintainability Complexity Lines of code
DCoders\Bkash\Gateway\Manager::after_execute_payment()
A
42 13 51
DCoders\Bkash\Admin\Settings::get_settings_fields()
A
30 1 191
dc_bkash_get_template_part()
A
51 10 25
DCoders\Bkash\Gateway\Processor::get_token()
A
47 9 36
Ajax::execute_payment_request()
A
49 9 30
DCoders\Bkash\Upgrade\Upgrades\V_2_0_0::migrate_pgw_credentials()
A
49 9 29
DCoders\Bkash\Gateway\Processor::verify_payment()
A
51 8 25
DCoders\Bkash\Gateway\Processor::create_payment()
A
52 8 24
DCoders\Bkash\Gateway\Processor::search_transaction()
A
54 8 19
DCoders\Bkash\Gateway\Processor::execute_payment()
A
56 8 17
DCoders_Bkash::is_request()
S
59 8 14
DCoders\Bkash\API\Transaction::get_transactions()
S
50 6 27
DCoders\Bkash\Gateway\Bkash::thank_you_page()
S
56 5 18
Assets::get_scripts()
S
45 3 47
dc_bkash_get_template()
S
58 5 14
DCoders\Bkash\Admin\Settings::get_option()
S
61 5 12
DCoders\Bkash\Gateway\Bkash::payment_scripts()
S
61 5 12
DCoders\Bkash\Gateway\Processor::get_authorization_header()
S
54 4 21
DCoders\Bkash\API\Upgrade::apply_updates()
S
56 4 18
dc_bkash_locate_template()
S
58 4 17
DCoders\Bkash\Upgrade\Manager::do_upgrade()
S
58 4 16
DCoders\Bkash\API\Payment::create_payment()
S
49 3 30
DCoders\Bkash\Gateway\Processor::get_transaction_charge_amount()
S
58 4 15
Assets::register_scripts()
S
64 5 8
dc_bkash_get_option()
S
61 4 12
DCoders\Bkash\Gateway\Manager::dc_bkash_calculate_total()
S
61 4 12
DCoders\Bkash\Upgrade\AdminNotice::show_notice()
S
62 4 12
DCoders\Bkash\Upgrade\Upgrades::get_upgrades()
S
61 4 12
Assets::get_styles()
S
53 3 24
DCoders\Bkash\Gateway\Processor::make_request()
S
55 3 20
DCoders\Bkash\Gateway\Manager::maybe_update_transaction()
S
56 3 19
DCoders\Bkash\Abstracts\DcBkashUpgrader::run()
S
66 4 8
DCoders\Bkash\API\Payment::get_grant_token()
S
51 2 29
DCoders\Bkash\Admin\Settings::get_settings()
S
62 3 11
DCoders\Bkash\API\Payment::search_payment()
S
53 2 24
DCoders\Bkash\API\Payment::query_payment()
S
53 2 23
DCoders\Bkash\API\Payment::execute_payment()
S
54 2 22
dc_bkash_insert_transaction()
S
55 2 21
Installer::create_tables()
S
56 2 21
dc_bkash_get_payments_list()
S
54 2 20
DCoders\Bkash\Gateway\Bkash::process_payment()
S
58 2 16
DCoders\Bkash\Gateway\Manager::dc_bkash_display_transaction_charge_on_admin()
S
58 2 16
DCoders\Bkash\Gateway\Processor::get_test_mode_type()
S
65 3 10
DCoders\Bkash\Gateway\Processor::get_script()
S
69 3 6
DCoders\Bkash\Upgrade\Manager::get_upgrades()
S
59 2 15
DCoders\Bkash\Upgrade\Upgrades::is_upgrade_required()
S
66 3 8
Assets::register_styles()
S
68 3 6
DCoders\Bkash\API\Payment::register_routes()
S
51 1 30
DCoders\Bkash\Gateway\Manager::dc_bkash_display_transaction_charge()
S
59 2 15
dc_bkash_add_array_after()
S
60 2 15
DCoders\Bkash\Gateway\Manager::dc_bkash_get_order_item_totals()
S
57 2 15
DCoders\Bkash\Gateway\Processor::payment_execute_url()
S
71 3 5
DCoders\Bkash\Gateway\Processor::__construct()
S
64 3 8
DCoders\Bkash\Gateway\Processor::get_payment_url()
S
67 3 7
Ajax::validate_fields()
S
67 3 8
DCoders_Bkash::includes()
S
67 3 8
DCoders\Bkash\Gateway\Processor::get_credentials()
S
60 2 13
DCoders\Bkash\API\Settings::get_item_schema()
S
61 2 13
DCoders\Bkash\Admin\Menu::admin_menu()
S
60 2 12
DCoders_Bkash::init_classes()
S
61 2 11
DCoders\Bkash\API\Transaction::prepare_item_for_response()
S
62 2 11
DCoders\Bkash\API\Payment::register_single_route()
S
55 1 21
DCoders\Bkash\API\Settings::register_routes()
S
55 1 21
Assets::get_admin_localized_scripts()
S
55 1 19
DCoders\Bkash\API\Upgrade::register_routes()
S
59 1 15
get_extension()
S
73 2 4
DCoders\Bkash\Gateway\Processor::check_test_mode()
S
70 2 6
DCoders\Bkash\Upgrade\Upgrades::update_db_dc_bkash_version()
S
70 2 6
DCoders\Bkash\API\Transaction::register_routes()
S
59 1 15
DCoders\Bkash\Gateway\Bkash::create_payment_request()
S
67 2 8
DCoders\Bkash\Gateway\Manager::bkash()
S
70 2 7
DCoders_Bkash::init()
S
69 2 7
DCoders\Bkash\API\Upgrade::admin_permission_check()
S
64 2 10
DCoders_Bkash::__get()
S
71 2 6
DCoders\Bkash\Gateway\Processor::get_instance()
S
71 2 6
DCoders\Bkash\API\Settings::admin_permission_check()
S
71 2 6
DCoders\Bkash\API\BkashBaseRestController::admin_permissions_check()
S
64 2 10
Assets::__construct()
S
66 2 8
DCoders_Bkash::init_appsero_tracker()
S
67 2 7
DCoders\Bkash\Upgrade\Upgrades\V_2_0_0::update_option_keys()
S
65 2 9
DCoders\Bkash\Gateway\Bkash::init()
S
63 2 10
DCoders_Bkash::__isset()
S
78 2 3
DCoders_Bkash::get_db_version_key()
S
71 2 6
API::register_api()
S
71 2 6
Installer::add_version()
S
68 2 7
DCoders\Bkash\Gateway\Bkash::admin_options()
S
62 1 12
DCoders\Bkash\API\Transaction::prepare_links()
S
62 1 12
DCoders\Bkash\Gateway\Bkash::localize_scripts()
S
62 1 11
DCoders\Bkash\Upgrade\Manager::is_upgrade_required()
S
81 1 3
DCoders_Bkash::deactivate()
S
91 1 2
Admin::dispatch_actions()
S
91 1 2
DCoders_Bkash::define_constants()
S
71 1 10
DCoders\Bkash\Frontend\Shortcode::render_frontend()
S
77 1 4
delete_bkash_payment()
S
75 1 4
DCoders_Bkash::activate()
S
75 1 4
dc_bkash_delete_multiple_payments()
S
69 1 6
DCoders\Bkash\Gateway\Bkash::__construct()
S
68 1 7
DCoders\Bkash\API\Settings::__construct()
S
81 1 3
API::__construct()
S
66 1 9
get_bkash_payment()
S
75 1 4
DCoders\Bkash\API\Payment::__construct()
S
81 1 3
DCoders\Bkash\API\Settings::update_items()
S
68 1 7
insert_bkash_transaction()
S
75 1 4
dc_bkash_get_payment()
S
68 1 7
DCoders\Bkash\Gateway\Manager::setup_hooks()
S
62 1 10
DCoders\Bkash\Gateway\Processor::payment_create_url()
S
80 1 3
DCoders\Bkash\Gateway\Manager::processor()
S
81 1 3
DCoders\Bkash\Upgrade\Upgrades\V_2_0_0::update_bkash_transactions_table()
S
67 1 8
DCoders\Bkash\Admin\Menu::init_hooks()
S
79 1 3
DCoders_Bkash::init_hooks()
S
75 1 4
Installer::run()
S
78 1 4
DCoders\Bkash\API\Settings::get_settings_data()
S
76 1 4
DCoders_Bkash::init_plugin()
S
78 1 4
DCoders_Bkash::has_woocommerce()
S
80 1 3
DCoders_Bkash::__construct()
S
68 1 7
DCoders\Bkash\Admin\Menu::plugin_page()
S
82 1 3
get_bkash_payments_list()
S
75 1 4
DCoders\Bkash\API\BkashBaseRestController::get_namespace()
S
80 1 3
dc_bkash_delete_payment()
S
67 1 8
DCoders\Bkash\Gateway\Manager::register_gateway()
S
76 1 4
delete_multiple_bkash_payments()
S
75 1 4
DCoders\Bkash\API\Transaction::__construct()
S
81 1 3
DCoders_Bkash::localization_setup()
S
77 1 3
DCoders\Bkash\Admin\Menu::get_submenu_url()
S
79 1 3
DCoders\Bkash\API\Upgrade::__construct()
S
81 1 3
dc_bkash()
S
82 1 3
get_payments_count()
S
76 1 4
Ajax::__construct()
S
79 1 3
DCoders\Bkash\Gateway\Manager::__construct()
S
82 1 3
DCoders\Bkash\Gateway\Processor::get_final_amount()
S
69 1 6
DCoders\Bkash\Frontend\Shortcode::__construct()
S
79 1 3
Admin::__construct()
S
78 1 4
Admin::init_classes()
S
80 1 3
Ajax::send_json_error()
S
77 1 4
DCoders\Bkash\Admin\Settings::get_settings_sections()
S
66 1 9
Assets::enqueue_admin_scripts()
S
76 1 4
DCoders\Bkash\Upgrade\Upgrades::get_db_installed_version()
S
79 1 3
DCoders\Bkash\Abstracts\DcBkashUpgrader::update_db_version()
S
69 1 6
Assets::register_all_scripts()
S
77 1 4
Assets::enqueue_front_scripts()
S
91 1 2
Frontend::__construct()
S
80 1 3
DCoders\Bkash\Upgrade\Manager::has_ongoing_process()
S
79 1 3
DCoders\Bkash\Upgrade\Manager::__construct()
S
79 1 3
dc_bkash_get_payments_count()
S
72 1 5
DCoders\Bkash\Admin\Menu::enqueue_scripts()
S
77 1 4
DCoders\Bkash\Admin\Menu::__construct()
S
79 1 3