Code Analysis: Ether and ERC20 tokens WooCommerce Payment Gateway 4.11.2

Function Rating Maintainability Complexity Lines of code
Ethereumico\Epg\Gateway::check_tx_status()
D
16
49 296
Ethereumico\Epg\Gateway::admin_enqueue_scripts()
D
19
27 259
Ethereumico\Epg\Gateway::thank_you_page()
D
20
25 231
Ethereumico\Epg\Main::wp_loaded_hook()
B
37 20 77
Ethereumico\Epg\Gateway::init_form_fields()
B
23
3 282
Ethereumico\Epg\Gateway::process_payment()
A
39 15 60
Ethereumico\Epg\CoinmarketcapRateSource::get_rate_from_api()
A
36 12 84
Ethereumico\Epg\Gateway::get_tx_confirmations_number()
A
44 13 46
Ethereumico\Epg\CryptocompareRateSource::get_rate_from_api()
A
39 10 62
Ethereumico\Epg\Main::getBlockchainNetwork()
A
45 11 40
Ethereumico\Epg\Main::get_tokens_supported()
A
45 10 40
Ethereumico\Epg\Main::email_content()
A
43 9 52
Ethereumico\Epg\Gateway::rate_source_create_filter()
A
45 9 49
Ethereumico\Epg\Gateway::getTokenRate()
A
47 10 33
Ethereumico\Epg\KangaRateSource::get_rate_from_api()
A
40 8 61
Ethereumico\Epg\Main::get_txhash_path_template()
A
49 9 34
Ethereumico\Epg\CoinbaseRateSource::get_rate_from_api()
A
40 7 61
Ethereumico\Epg\Gateway::payment_fields()
A
45 8 42
Ethereumico\Epg\PaymentReceivedEmail::trigger()
A
46 8 39
Ethereumico\Epg\LivecoinRateSource::get_rate_from_api()
A
42 6 54
Ethereumico\Epg\CurrencyConvertor::get_rate_from_api()
A
45 7 39
Ethereumico\Epg\Main::getGatewayContractAddress()
A
55 8 20
ether_and_erc20_tokens_woocommerce_payment_gateway_complete_order()
S
54 7 21
Ethereumico\Epg\Gateway::get_icon()
S
52 6 24
Ethereumico\Epg\Main::set_order_txhash()
S
54 6 18
Ethereumico\Epg\Main::log()
S
55 6 18
Ethereumico\Epg\Gateway::getEthValueByOrderId()
S
61 6 11
Ethereumico\Epg\Gateway::getEthRateByOrderId()
S
61 6 11
Ethereumico\Epg\Gateway::getPaymentInfo()
S
54 5 25
Ethereumico\Epg\UniswapV2RateSource::get_token_decimals()
S
53 5 23
Ethereumico\Epg\Gateway::get_block_number()
S
54 5 22
Ethereumico\Epg\Gateway::checkout_order_processed_handler()
S
52 5 22
Ethereumico\Epg\Gateway::__construct()
S
43 3 50
Ethereumico\Epg\Gateway::get_token2wcproduct()
S
55 5 19
Ethereumico\Epg\KangaRateSource::get_rate()
S
56 5 18
Ethereumico\Epg\Gateway::verify_api_connection()
S
53 4 22
Ethereumico\Epg\Gateway::call_gateway_method()
S
48 3 35
Ethereumico\Epg\Main::woocommerce_email_customer_details_fields_hook()
S
56 4 18
epg_autoloader()
S
56 4 17
Ethereumico\Epg\CryptocompareRateSource::get_rate()
S
58 4 15
Ethereumico\Epg\LivecoinRateSource::get_rate()
S
58 4 15
Ethereumico\Epg\CoinmarketcapRateSource::get_rate()
S
58 4 15
Ethereumico\Epg\CoinbaseRateSource::get_rate()
S
58 4 15
Ethereumico\Epg\UniswapV2RateSource::get_rate()
S
58 4 15
Ethereumico\Epg\UniswapV2RateSource::get_rate_from_api()
S
48 3 30
Ethereumico\Epg\CurrencyConvertor::get_exchange_rate()
S
59 4 14
Ethereumico\Epg\Gateway::complete_order_internal()
S
54 3 22
Ethereumico\Epg\Gateway::complete_order()
S
54 3 22
Ethereumico\Epg\Main::getTokenRate_from_API()
S
55 3 21
Ethereumico\Epg\Gateway::get_token_decimals()
S
53 3 21
Ethereumico\Epg\UniswapV2RateSource::getPairContractAddress()
S
56 3 18
Ethereumico\Epg\UniswapV2RateSource::getNetworkId()
S
56 3 18
ether_and_erc20_tokens_woocommerce_payment_gateway_freemius_init()
S
50 2 31
Ethereumico\Epg\Gateway::rate_sources_list_filter()
S
60 3 15
Ethereumico\Epg\Gateway::getWeb3WSSEndpoint()
S
60 3 14
Ethereumico\Epg\Gateway::get_token_icon()
S
60 3 13
Ethereumico\Epg\Gateway::validate_enabled_field()
S
60 3 13
Ethereumico\Epg\Gateway::enqueue_complete_order_task()
S
59 3 13
Ethereumico\Epg\Main::woocommerce_payment_complete_order_status_hook()
S
61 3 12
ether_and_erc20_tokens_woocommerce_payment_gateway_actlinks()
S
62 3 11
Ethereumico\Epg\Gateway::cancel_complete_order_task()
S
61 3 11
Ethereumico\Epg\Main::update_confirmed_status()
S
62 3 11
Ethereumico\Epg\Gateway::admin_options()
S
53 2 24
Ethereumico\Epg\PaymentReceivedEmail::init_form_fields()
S
48 1 36
Ethereumico\Epg\UniswapV2RateSource::getPairReserves()
S
56 2 17
epg_plugin_admin_notice()
S
66 3 9
epg_plugin_admin_notice_gmp()
S
66 3 9
Ethereumico\Epg\Gateway::get_setting_()
S
77 3 3
Ethereumico\Epg\Main::on_init()
S
71 3 5
Ethereumico\Epg\Gateway::check_gateway_class()
S
67 3 7
epg_plugin_admin_notice_mbstring()
S
66 3 9
epg_plugin_admin_notice_woocommerce()
S
66 3 9
Ethereumico\Epg\Gateway::before_delete_post_handler()
S
65 3 10
epg_plugin_admin_notice()
S
66 3 9
Ethereumico\Epg\UniswapV2RateSource::double_int_multiply()
S
60 2 14
Ethereumico\Epg\Gateway::double_int_multiply()
S
60 2 14
Ethereumico\Epg\Main::run()
S
52 1 29
Ethereumico\Epg\Gateway2::__construct()
S
58 2 14
Ethereumico\Epg\Main::valid_order_statuses_for_payment()
S
63 2 11
Ethereumico\Epg\PaymentReceivedEmail::get_content_html()
S
59 1 16
Ethereumico\Epg\PaymentReceivedEmail::get_content_plain()
S
59 1 16
Ethereumico\Epg\Main::on_plugins_loaded()
S
70 2 6
Ethereumico\Epg\Gateway::order_on_hold_handler()
S
72 2 6
Ethereumico\Epg\Gateway::order_cancelled_handler()
S
72 2 6
epg_plugin_deactivate()
S
71 2 6
Ethereumico\Epg\Gateway::getWeb3Endpoint()
S
64 2 10
Ethereumico\Epg\Gateway::handling_custom_meta_query_keys()
S
64 2 10
Ethereumico\Epg\UniswapV2RateSource::__construct()
S
64 2 9
Ethereumico\Epg\PaymentReceivedEmail::__construct()
S
58 1 14
Ethereumico\Epg\Gateway::get_tokens_supported()
S
60 1 13
Ethereumico\Epg\PaymentReceivedEmail::_init_strings()
S
62 1 12
Ethereumico\Epg\Main::__construct()
S
77 1 4
Ethereumico\Epg\Main::register_eth_payment_completed_email()
S
76 1 4
Ethereumico\Epg\CurrencyConvertor::convert()
S
65 1 10
Ethereumico\Epg\Gateway::validate_fields()
S
82 1 3
Ethereumico\Epg\CoinbaseRateSource::__construct()
S
74 1 5
Ethereumico\Epg\KangaRateSource::__construct()
S
74 1 5
Ethereumico\Epg\Logger::add()
S
75 1 4
Ethereumico\Epg\Gateway::apply_markup()
S
70 1 5
Ethereumico\Epg\Gateway::register_plugin_styles()
S
91 1 2
Ethereumico\Epg\Gateway::getGatewayContractAddress()
S
79 1 3
Ethereumico\Epg\Gateway::getMarketAddress()
S
80 1 3
Ethereumico\Epg\CoinmarketcapRateSource::__construct()
S
74 1 5
Ethereumico\Epg\Gateway::getBlockchainNetwork()
S
79 1 3
Ethereumico\Epg\Gateway::getTokenRate_from_API()
S
67 1 9
Ethereumico\Epg\CurrencyConvertor::__construct()
S
74 1 5
Ethereumico\Epg\CryptocompareRateSource::__construct()
S
74 1 5
Ethereumico\Epg\Gateway::log()
S
79 1 3
Ethereumico\Epg\Gateway::apply_markup_token()
S
66 1 7
Ethereumico\Epg\Main::getAddressSite16()
S
68 1 7
Ethereumico\Epg\CryptocompareRateSource::loadDictionary()
S
71 1 5
Ethereumico\Epg\Gateway::getOrderExpiredTimeout()
S
77 1 3
Ethereumico\Epg\Gateway::get_ether_icon()
S
72 1 5
Ethereumico\Epg\Gateway::getAddressSite16()
S
80 1 3
Ethereumico\Epg\Main::add_gateway()
S
74 1 5
Ethereumico\Epg\CoinmarketcapRateSource::loadDictionary()
S
71 1 5
ether_and_erc20_tokens_woocommerce_payment_gateway_load_textdomain()
S
78 1 3
Ethereumico\Epg\LivecoinRateSource::__construct()
S
74 1 5
ether_and_erc20_tokens_woocommerce_payment_gateway_freemius_init_settings_url()
S
81 1 3
Ethereumico\Epg\Gateway::get_rate_sources_()
S
73 1 4
Ethereumico\Epg\Main::get_txhash_path()
S
75 1 4