Code Analysis: Bitcoin and Altcoin Wallets 6.0.0

Function Rating Maintainability Complexity Lines of code
DSWallets\Bank_Fiat_Adapter::register()
D
0
100 1,519
json_api_3_handle()
D
11
54 431
DSWallets\Migration_Task::run()
D
13
49 399
DSWallets\Transaction::__set()
D
22
64 161
DSWallets\Currency::__set()
D
27
49 124
DSWallets\Transaction::register()
D
22
32 226
DSWallets\Migration_Task::create_transaction()
D
27
29 149
api_transactions_filter()
D
28
29 129
DSWallets\Currency::save_post()
D
31 31 94
DSWallets\Address::__set()
C
34 28 89
DSWallets\Withdrawals_Task::weed_out_bad_withdrawals()
C
29
24 143
DSWallets\Transaction::meta_box_attributes()
C
26
20 202
DSWallets\Currency_Icons_Task::run()
C
27
19 183
DSWallets\Transaction::render_custom_column()
C
32 22 120
tab_caps_cb()
C
31 21 130
DSWallets\Wallet_Adapter::__set()
C
40 25 55
DSWallets\Wallet::render_custom_column()
B
34 20 115
DSWallets\Address::register()
B
29 18 144
DSWallets\Wallet_Adapter::do_deposit()
B
33 20 113
DSWallets\Transaction::save_post()
B
35 21 83
DSWallets\Currency::__get()
B
41 22 48
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::do_withdrawals()
B
32 17 122
DSWallets\Currency::register()
B
32 17 121
api_cancel_transaction_action()
B
35 19 85
DSWallets\Currency::render_custom_column()
B
37 19 75
api_move_action()
B
33 17 104
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::rpc()
B
33 16 104
DSWallets\Transaction::__get()
B
43 20 44
DSWallets\Task::register()
B
30 13 143
DSWallets\FixerIO_Task::update_rates()
B
34 16 96
api_retry_transaction_action()
B
35 16 89
DSWallets\Transaction::save()
B
37 17 72
DSWallets\Transaction::status_transition()
B
41 18 55
DSWallets\Transaction::register_meta_boxes()
B
35 15 99
wp_get_cache_type()
B
44 18 39
get_transactions()
B
35 14 93
api_deposit_address_filter()
B
38 15 71
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::walletnotify()
B
36 14 84
DSWallets\Address::save()
B
42 16 49
DSWallets\Wallet::save_post()
B
42 16 47
DSWallets\Address::save_post()
A
43 16 44
DSWallets\Moves_Task::weed_out_bad_moves()
A
37 13 87
DSWallets\Address::meta_box_attributes()
A
33 9 135
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::register()
A
33 9 130
DSWallets\Transaction::load()
A
39 13 60
withdraw_handler()
A
36 10 95
api_withdraw_action()
A
39 12 64
DSWallets\CoinGecko_Task::update_exchange_rates_for()
A
37 10 90
DSWallets\Transaction::get_amount_as_string()
A
45 13 42
DSWallets\Address::render_custom_column()
A
40 11 68
DSWallets\Currency::meta_box_wd_limits()
A
35 8 112
DSWallets\Wallet::__set()
A
47 13 33
DSWallets\Withdrawals_Task::execute_some_withdrawals()
A
39 10 73
DSWallets\Transaction::meta_box_attributes_blockchain()
A
34 5 142
deposit_form_cb()
A
38 8 94
get_or_make_address()
A
41 10 60
parse_categories()
A
50 12 30
DSWallets\Currency::meta_box_attributes()
A
32 4 149
get_all_available_balances_assoc_for_user()
A
37 7 103
get_all_balances_assoc_for_user()
A
37 7 98
parse_atts_for_user()
A
47 11 37
DSWallets\Currency::meta_box_fees()
A
39 7 90
DSWallets\Withdrawals_Task::run()
A
35 6 103
DSWallets\Transaction::meta_box_explorer_link()
A
38 6 101
DSWallets\Moves_Task::execute_some_moves()
A
43 9 53
ds_http_get()
A
43 9 48
get_asset_path()
A
47 10 32
withdraw_form_cb()
A
37 5 107
DSWallets\Currency::get_rate_to()
A
56 11 17
shortcode_wallets_transactions()
A
38 7 76
DSWallets\Migration_Task::get_or_make_currency()
A
37 9 46
DSWallets\Email_Queue_Task::run()
A
49 10 30
locate_template()
A
49 10 29
get_effective_user_id()
A
46 9 42
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::scrape_blocks_incrementally()
A
40 7 72
get_or_make_transaction()
A
40 7 69
DSWallets\Wallet::register()
A
42 8 53
DSWallets\Address::register_meta_boxes()
A
42 7 62
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::do_description_text()
A
37 4 105
tab_cron_cb()
A
40 5 86
DSWallets\Address::__get()
A
53 9 24
get_ds_transient()
A
52 9 24
get_transactions_by_time()
A
47 8 35
string_cb()
A
50 8 33
sum_transactions()
A
51 8 28
DSWallets\Currency::save()
A
44 7 42
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::update_tx_states()
A
44 6 56
api_balance_filter()
A
46 7 40
api_available_balance_filter()
A
46 7 40
get_all_enabled_currencies()
A
44 6 50
DSWallets\Adapters_Task::run()
A
44 6 50
DSWallets\FixerIO_Task::retrieve_currencies_list()
A
49 7 33
get_address_by_strings()
A
45 6 47
json_api_parse_request()
A
45 6 46
get_move_recipient_suggestions()
A
44 6 46
DSWallets\Wallet_Adapter::do_withdrawals()
A
50 7 31
DSWallets\Wallet::save()
S
49 7 30
migration_type_descriptions()
S
46 6 44
shortcode_wallets_withdraw()
S
42 5 59
get_coingecko_platforms()
S
52 7 28
shortcode_wallets_move()
S
42 5 58
DSWallets\Currency::load()
S
44 6 43
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::is_locked()
S
51 7 28
DSWallets\FixerIO_Task::do_call()
S
49 7 28
get_latest_fiat_withdrawal_by_user()
S
46 6 42
get_deposit_transaction_by_txid_and_address()
S
42 5 57
json_api_init()
S
43 5 56
get_admin_emails()
S
52 7 25
get_update_info_for_dashed_slug_extension()
S
52 7 25
get_all_addresses_for_user_id()
S
43 5 55
DSWallets\Address::meta_box_explorer_link()
S
44 5 55
DSWallets\Bank_Fiat_Adapter::__construct()
S
38 2 99
do_validate_pending_transactions()
S
43 5 53
db_currencies_cb()
S
49 6 36
DSWallets\FixerIO_Task::create_currencies()
S
47 6 36
DSWallets\Currency::register_meta_boxes()
S
40 3 81
settings_page_cb()
S
48 6 35
get_latest_address_per_currency_for_user_id()
S
44 5 49
get_currencies_with_wallets_with_unlocked_adapters()
S
55 7 19
DSWallets\Task::get_cron_interval()
S
56 7 19
DSWallets\Currency::meta_box_rates()
S
43 4 62
DSWallets\Address::load()
S
48 6 32
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::blocknotify()
S
50 6 31
parse_atts_for_currency()
S
58 7 15
DSWallets\Transaction::meta_box_attributes_bank_fiat()
S
42 3 74
DSWallets\Wallet::meta_box_adapter()
S
44 4 58
DSWallets\Post_Type::render_number_field()
S
60 7 13
DSWallets\Currency::get_max_withdraw()
S
61 7 12
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::get_hot_locked_balance()
S
52 6 25
DSWallets\Wallet::load()
S
51 6 24
shortcode_wallets_fiat_withdraw()
S
43 4 52
db_wallets_cb()
S
49 5 36
DSWallets\FixerIO_Task::determine_existing_currencies()
S
45 4 50
capabilities_factory()
S
39 1 95
DSWallets\Wallet::register_meta_boxes()
S
45 4 47
DSWallets\Wallet_Adapter::__get()
S
57 6 17
DSWallets\Auto_Cancel_Task::run()
S
50 5 32
DSWallets\Task::__construct()
S
45 4 46
DSWallets\Transaction::__toString()
S
57 6 16
get_transaction_by_txid()
S
45 4 45
DSWallets\Post_Type::__set()
S
58 6 15
DSWallets\Migration_Task::map_status()
S
60 6 14
db_txs_cb()
S
51 5 28
DSWallets\Wallet::__get()
S
61 6 12
DSWallets\Currency::set_rate()
S
51 5 27
DSWallets\Moves_Task::get_next_currency_with_pending_moves()
S
52 5 26
DSWallets\Task::log()
S
54 5 26
DSWallets\Migration_Task::get_transaction_rows()
S
45 3 54
get_coingecko_currencies()
S
53 5 23
DSWallets\Address::meta_box_transactions()
S
50 4 37
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::get_block_height()
S
55 5 20
shortcode_wallets_deposit()
S
44 3 48
DSWallets\CoinGecko_Task::get_supported_vs_currencies()
S
56 5 18
shortcode_wallets_balance()
S
45 3 47
db_debug_cb()
S
52 4 31
DSWallets\Address::meta_box_php_hook()
S
49 3 45
get_template_part()
S
57 5 15
get_latest_address_for_user_id_and_currency()
S
46 3 44
get_wallet_adapter_class_names()
S
60 5 14
DSWallets\Withdrawals_Task::weed_out_due_to_low_hot_balance()
S
51 4 29
get_currency_symbols_names_for_wallet()
S
51 4 29
wallets_user_profile()
S
61 5 14
DSWallets\Bitcoin_Creator_Task::run()
S
51 4 28
DSWallets\Address::meta_box_currency()
S
53 4 27
DSWallets\Currency::meta_box_wallet()
S
53 4 27
DSWallets\Currency::is_online()
S
61 5 12
DSWallets\Transaction::meta_box_currency()
S
53 4 27
DSWallets\Transaction::meta_box_address()
S
53 4 27
shortcode_wallets_fiat_deposit()
S
46 3 41
shortcode_wallets_account_value()
S
46 3 41
DSWallets\Migration_Task::get_address_rows()
S
48 3 41
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::get_new_address()
S
53 4 25
shortcode_wallets_rates()
S
47 3 39
shortcode_wallets_total_balances()
S
47 3 39
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::__construct()
S
41 1 68
get_address_ids_by_currency_id_and_type_and_tags()
S
48 3 37
shortcode_wallets_status()
S
48 3 37
DSWallets\Migration_Task::get_balance_rows()
S
49 3 36
DSWallets\Withdrawals_Task::get_next_currency_with_pending_withdrawals()
S
54 4 21
tab_fiat_cb()
S
46 1 64
get_all_addresses_for_user_id_and_currency_id()
S
45 2 48
get_deposit_address_ids_by_tags()
S
49 3 32
DSWallets\Wallet::meta_box_adapter_currencies()
S
51 3 30
get_currency_by_wallet_id_and_ticker_symbol()
S
50 3 30
DSWallets\FixerIO_Task::run()
S
60 4 15
get_first_currency_by_coingecko_id()
S
51 3 28
DSWallets\Currency::get_platform()
S
60 4 13
DSWallets\Moves_Task::run()
S
48 2 43
get_currency_ids()
S
51 3 28
generate_random_bytes()
S
60 4 13
get_first_currency_by_symbol()
S
51 3 28
DSWallets\CoinGecko_Task::run()
S
60 4 13
DSWallets\Wallet_Adapter::__construct()
S
61 4 12
get_all_currencies_by_symbol()
S
51 3 27
DSWallets\Migration_Task::__construct()
S
52 3 26
DSWallets\Migration_Task::get_next_user_id_after()
S
53 3 26
set_ds_transient()
S
53 3 26
get_pending_transactions_by_currency_and_category()
S
47 2 41
fiat_deposit_exists_by_txid_currency()
S
47 2 40
user_profile_legacy_api_key()
S
49 2 39
get_executable_withdrawals()
S
44 1 54
DSWallets\Currency::register_post_type()
S
46 2 38
select_cb()
S
54 3 23
DSWallets\Transaction::register_post_type()
S
47 2 36
get_transactions_for_address()
S
48 2 36
get_executable_moves()
S
45 1 50
DSWallets\Address::register_post_type()
S
47 2 35
multicheckbox_cb()
S
56 3 20
DSWallets\Wallet::register_post_type()
S
48 2 33
affiliate_banners()
S
51 1 47
do_not_cache_page()
S
60 3 15
DSWallets\Currency::is_fiat()
S
65 4 9
get_all_currencies()
S
51 2 29
DSWallets\Post_Type::delete()
S
59 3 13
create_random_nonce()
S
62 3 11
get_legacy_api_key()
S
63 3 11
DSWallets\Post_Type::render_string_field()
S
63 3 11
wp_mail_enqueue()
S
55 2 25
db_migration_cb()
S
55 2 25
get_ids_for_coingecko_currencies_without_icon()
S
48 1 40
load_currencies()
S
55 2 24
load_transactions()
S
55 2 24
get_tx_with_parent()
S
53 2 24
DSWallets\Currency::meta_box_explorer()
S
50 1 38
load_wallets()
S
57 2 21
DSWallets\Transaction::meta_box_other_tx()
S
56 2 21
DSWallets\Wallet::meta_box_adapter_settings()
S
57 2 18
DSWallets\Withdrawals_Task::mark_withdrawals_as_done_for_now()
S
57 2 17
tab_updates_cb()
S
52 1 31
DSWallets\Currency::is_set_decimals()
S
77 3 3
DSWallets\Address::__toString()
S
63 3 10
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::get_url()
S
64 3 9
user_and_currency_have_label()
S
51 1 30
resolve_recipient()
S
65 3 9
get_ids_of_enabled_wallets()
S
51 1 30
DSWallets\Transaction::get_other_tx()
S
69 3 7
DSWallets\Post_Type::render_select_field()
S
60 2 14
DSWallets\Migration_Task::create_address()
S
59 2 14
numeric_cb()
S
60 2 14
page_cb()
S
59 2 14
DSWallets\Currency::meta_box_txs()
S
53 1 28
get_ids_for_users_with_cap()
S
63 2 13
get_paged_currencies_with_coingecko_id()
S
51 1 28
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::get_hot_balance()
S
60 2 13
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::lock()
S
62 2 13
get_ids_for_users_without_cap()
S
63 2 13
DSWallets\Currency::meta_box_addresses()
S
54 1 27
DSWallets\Bank_Fiat_Adapter::do_description_text()
S
55 1 27
checkbox_cb()
S
63 2 11
parse_tags()
S
63 2 11
delete_ds_transient()
S
63 2 11
DSWallets\Transaction::meta_box_nonce()
S
55 1 25
get_address_ids_for_currency_id()
S
54 1 24
tab_rates_cb()
S
58 1 23
DSWallets\Currency::register_taxonomy()
S
54 1 22
DSWallets\Transaction::register_taxonomy()
S
54 1 22
DSWallets\Address::register_taxonomy()
S
54 1 22
DSWallets\Migration_Task::get_ids_of_migrated_posts()
S
54 1 22
json_api_query_vars()
S
56 1 21
has_transactions()
S
56 1 19
DSWallets\CoinGecko_Task::__construct()
S
59 1 17
get_wallets()
S
58 1 16
DSWallets\Currency::__toString()
S
66 2 9
DSWallets\FixerIO_Task::__construct()
S
65 2 9
get_currency_ids_for_wallet()
S
59 1 15
DSWallets\Wallet::__toString()
S
67 2 8
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::unlock()
S
66 2 10
is_net_active()
S
72 2 6
DSWallets\Currency::get_rate()
S
68 2 7
DSWallets\Transaction::get_confirmation_link()
S
69 2 7
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::do_cron()
S
70 2 7
maybe_switch_blog()
S
70 2 7
maybe_restore_blog()
S
71 2 7
DSWallets\Currency::is_token()
S
79 2 3
tab_http_cb()
S
64 1 14
DSWallets\Currency::manage_custom_columns()
S
62 1 11
DSWallets\Post_Type::render_secret_field()
S
63 1 11
DSWallets\Transaction::manage_custom_columns()
S
61 1 11
DSWallets\Bank_Fiat_Adapter::get_block_height()
S
80 1 3
ds_user_can()
S
70 1 6
DSWallets\Bitcoin_Creator_Task::__construct()
S
77 1 4
DSWallets\Wallet_Adapter::do_description_text()
S
100 1 0
DSWallets\Post_Type::save()
S
100 1 0
DSWallets\Adapters_Task::__construct()
S
77 1 4
get_deposit_address_by_strings()
S
79 1 3
DSWallets\Transaction::saveButDontNotify()
S
72 1 5
DSWallets\Wallet_Adapter::do_cron()
S
98 1 1
DSWallets\Post_Type::register_taxonomy()
S
100 1 0
get_ds_option()
S
71 1 6
get_all_fiat_currencies()
S
74 1 6
coin_comparator()
S
80 1 3
get_transactions_newer_than()
S
79 1 3
DSWallets\Bank_Fiat_Adapter::is_locked()
S
82 1 3
get_transactions_older_than()
S
79 1 3
get_available_balance_for_user_and_currency_id()
S
79 1 3
get_all_cryptocurrencies()
S
68 1 9
DSWallets\Wallet_Adapter::do_move()
S
82 1 3
DSWallets\Wallet_Adapter::get_hot_locked_balance()
S
100 1 0
DSWallets\Wallet_Adapter::get_wallet_version()
S
100 1 0
DSWallets\Currency_Icons_Task::__construct()
S
68 1 8
delete_ds_option()
S
72 1 6
DSWallets\Wallet_Adapter::get_extra_field_name()
S
82 1 3
add_ds_option()
S
71 1 6
DSWallets\Wallet_Adapter::validate_tcp_ip_address()
S
66 1 9
DSWallets\Post_Type::__toString()
S
100 1 0
DSWallets\Post_Type::load()
S
100 1 0
DSWallets\Email_Queue_Task::__construct()
S
77 1 4
DSWallets\Bank_Fiat_Adapter::get_new_address()
S
80 1 3
DSWallets\Wallet_Adapter::get_block_height()
S
100 1 0
DSWallets\Post_Type::register_post_type()
S
100 1 0
DSWallets\Task::run()
S
100 1 0
tab_notify_cb()
S
70 1 9
DSWallets\Bank_Fiat_Adapter::get_hot_balance()
S
82 1 3
DSWallets\Post_Type::render_bool_field()
S
79 1 3
DSWallets\Wallet_Adapter::get_new_address()
S
100 1 0
get_currencies_for_wallet()
S
80 1 3
DSWallets\Post_Type::__get()
S
100 1 0
DSWallets\Wallet::meta_box_adapter_text()
S
76 1 4
DSWallets\Post_Type::save_post()
S
100 1 0
update_ds_option()
S
71 1 6
tab_frontend_cb()
S
72 1 7
DSWallets\Wallet_Adapter::get_hot_balance()
S
100 1 0
DSWallets\Post_Type::render_custom_column()
S
100 1 0
DSWallets\Wallet::register_taxonomy()
S
89 1 2
get_balance_for_user_and_currency_id()
S
79 1 3
DSWallets\Post_Type::register()
S
69 1 6
DSWallets\Address::manage_custom_columns()
S
64 1 9
count_all_addresses_for_user_id()
S
80 1 3
DSWallets\Wallet_Adapter::get_hot_available_balance()
S
79 1 3
DSWallets\Wallet_Adapter::is_locked()
S
100 1 0
get_script_path()
S
80 1 3
DSWallets\Migration_Task::is_running()
S
77 1 3
DSWallets\Post_Type::manage_custom_columns()
S
100 1 0
DSWallets\Post_Type::register_meta_boxes()
S
100 1 0
DSWallets\Bank_Fiat_Adapter::get_wallet_version()
S
82 1 3
api_adapters_filter()
S
69 1 8
DSWallets\Wallet_Adapter::get_settings_schema()
S
81 1 3
DSWallets\Moves_Task::__construct()
S
77 1 4
get_withdrawal_address_by_strings()
S
79 1 3
DSWallets\Auto_Cancel_Task::__construct()
S
73 1 5
wp_mail_enqueue_to_admins()
S
78 1 3
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::get_wallet_version()
S
74 1 4
DSWallets\Post_Type::render_strings_field()
S
66 1 9
DSWallets\Post_Type::render_boolean_field()
S
65 1 10
DSWallets\Bank_Fiat_Adapter::get_hot_locked_balance()
S
82 1 3
ds_current_user_can()
S
71 1 6
tab_general_cb()
S
100 1 1
DSWallets\Wallet::manage_custom_columns()
S
65 1 8