Code Analysis: Cryptocurrency Payments Using MetaMask For WooCommerce 1.0

Function Rating Maintainability Complexity Lines of code
WC_cpmw_Gateway::payment_fields()
C
34 25 89
cpmw_payment_verify()
B
39 17 61
cpmw_price_conversion()
A
44 13 45
WC_cpmw_Gateway::thankyou_page()
A
37 10 75
WC_cpmw_Gateway::validate_fields()
A
48 10 29
cpmw_format_number()
A
57 10 15
WC_cpmw_Gateway::init_form_fields()
A
33 1 126
cpmw_openexchangerates_api()
S
52 7 24
cpmw_crypto_compare_api()
S
54 5 18
WC_cpmw_Gateway::cpmw_custom_multiselect_handler()
S
52 4 21
cpmw_binance_price_api()
S
56 4 17
WC_cpmw_Gateway::process_payment()
S
50 3 26
WC_cpmw_Gateway::__construct()
S
53 3 21
cpmw_metamask_pay::cpmw_missing_wc_notice()
S
52 2 26
WC_cpmw_Gateway::is_valid_for_use()
S
70 2 6
cpmw_metamask_pay::get_instance()
S
71 2 6
cpmw_metamask_pay::cpmw_load_files()
S
66 2 8
cpmw_metamask_pay::cmpw_admin_style()
S
65 2 8
cpmw_metamask_pay::registers()
S
62 1 10
cpmw_metamask_pay::cpmw_add_gateway_class()
S
77 1 4
cpmw_metamask_pay::activate()
S
70 1 6
cpmw_metamask_pay::deactivate()
S
71 1 6
cpmw_metamask_pay::__construct()
S
91 1 2
cpmw_supported_currency()
S
65 1 4
WC_cpmw_Gateway::cpmw_delete_trainsient()
S
68 1 8
cpmw_metamask_pay::cpmw_add_widgets_action_links()
S
71 1 5