Code Analysis: Bitcoin and Altcoin Wallets 6.3.2

Function Rating Maintainability Complexity Lines of code
DSWallets\Bank_Fiat_Adapter::register()
D
0
106 1,555
DSWallets\Transaction::__set()
D
18
82 179
json_api_3_handle()
D
11
54 431
DSWallets\Migration_Task::run()
D
13
49 399
DSWallets\Transaction::register()
D
17
41 308
DSWallets\Currency::__set()
D
27
49 123
DSWallets\Address::register()
D
23
29 203
DSWallets\Currency::save_post()
D
30 33 100
DSWallets\Migration_Task::create_transaction()
D
27
29 149
api_transactions_filter()
D
28
29 129
DSWallets\Transaction::render_custom_column()
C
30 26 129
DSWallets\Address::__set()
C
34 27 88
DSWallets\Transaction::save()
C
28
22 159
DSWallets\Currency_Icons_Task::run()
C
27
20 183
DSWallets\Post_Type::load_many()
C
27
20 175
DSWallets\Transaction::save_post()
C
32 25 99
DSWallets\Wallet_Adapter::do_deposit()
C
31 23 128
DSWallets\Transaction::meta_box_attributes()
C
27
19 186
tab_caps_cb()
C
31 21 130
DSWallets\Wallet_Adapter::__set()
C
40 25 55
DSWallets\Currency::__get()
B
40 24 55
DSWallets\Wallet::render_custom_column()
B
34 20 115
DSWallets\Address::save()
B
33 19 112
DSWallets\Transaction::register_meta_boxes()
B
32 18 123
DSWallets\Transaction::__get()
B
42 22 50
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::do_withdrawals()
B
32 17 122
DSWallets\Currency::register()
B
31 17 121
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::register()
B
29
13 180
api_cancel_transaction_action()
B
35 19 85
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::rpc()
B
32 17 108
DSWallets\Transaction::status_transition()
B
39 20 61
DSWallets\Currency::render_custom_column()
B
37 19 75
api_move_action()
B
33 17 104
DSWallets\Task::register()
B
29 13 155
DSWallets\Address::save_post()
B
40 19 55
DSWallets\FixerIO_Task::update_rates()
B
34 16 96
api_retry_transaction_action()
B
35 16 89
DSWallets\Wallet::save_post()
B
40 18 55
wp_get_cache_type()
B
44 18 39
api_deposit_address_filter()
B
38 15 71
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::walletnotify()
B
36 14 84
DSWallets\Moves_Task::weed_out_bad_moves()
A
37 13 87
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::do_description_text()
A
28
5 205
get_transactions()
A
37 13 77
DSWallets\Address::meta_box_attributes()
A
33 9 134
DSWallets\Address::render_custom_column()
A
39 12 73
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\Transaction::from_values()
A
41 12 54
DSWallets\Currency::meta_box_wd_limits()
A
35 8 112
DSWallets\Wallet::__set()
A
47 13 33
DSWallets\Withdrawals_Task::run()
A
35 7 115
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\Address::register_meta_boxes()
A
39 8 75
DSWallets\Currency::meta_box_fees()
A
39 7 90
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 49
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
DSWallets\Wallet::register()
A
41 8 58
DSWallets\Address::__get()
A
50 10 28
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
tab_cron_cb()
A
39 5 88
get_ds_transient()
A
52 9 24
get_transactions_by_time()
A
47 8 35
DSWallets\Currency::register_meta_boxes()
A
37 4 95
DSWallets\Adapters_Task::run()
A
44 7 49
string_cb()
A
49 8 34
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
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::register_meta_boxes()
A
42 5 61
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\FixerIO_Task::do_call()
S
49 7 28
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::is_locked()
S
51 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
DSWallets\Bank_Fiat_Adapter::__construct()
S
38 2 100
get_admin_emails()
S
52 7 25
get_update_info_for_dashed_slug_extension()
S
52 7 25
DSWallets\Address::meta_box_explorer_link()
S
44 5 55
do_validate_pending_transactions()
S
43 5 53
db_currencies_cb()
S
49 6 36
DSWallets\FixerIO_Task::create_currencies()
S
47 6 36
settings_page_cb()
S
48 6 35
get_currencies_with_wallets_with_unlocked_adapters()
S
55 7 19
get_all_addresses_for_user_id()
S
44 5 49
DSWallets\Task::get_cron_interval()
S
56 7 19
get_latest_address_per_currency_for_user_id()
S
44 5 48
DSWallets\Currency::meta_box_rates()
S
43 4 62
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\Post_Type::render_number_field()
S
59 7 14
DSWallets\Wallet::meta_box_adapter()
S
44 4 58
DSWallets\Currency::get_max_withdraw()
S
61 7 12
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::get_hot_locked_balance()
S
52 6 25
shortcode_wallets_fiat_withdraw()
S
43 4 55
get_latest_address_for_user_id_and_currency()
S
43 4 54
get_all_enabled_currencies()
S
48 5 36
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_Adapter::__get()
S
57 6 17
DSWallets\Auto_Cancel_Task::run()
S
50 5 32
DSWallets\Transaction::__toString()
S
57 6 16
DSWallets\Task::__construct()
S
45 4 46
DSWallets\Post_Type::__set()
S
58 6 15
get_address_ids_by_currency_id_and_type_and_tags()
S
45 4 45
get_transaction_by_txid()
S
45 4 45
DSWallets\Address::meta_box_php_hook()
S
48 4 45
DSWallets\Migration_Task::map_status()
S
60 6 14
db_txs_cb()
S
51 5 28
DSWallets\Currency::set_rate()
S
51 5 27
DSWallets\Wallet::__get()
S
61 6 12
DSWallets\Moves_Task::get_next_currency_with_pending_moves()
S
52 5 26
DSWallets\Task::log()
S
54 5 26
get_deposit_address_ids_by_tags()
S
47 4 40
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
get_possible_transaction_counterparts()
S
46 3 49
DSWallets\CoinGecko_Task::get_supported_vs_currencies()
S
56 5 18
shortcode_wallets_deposit()
S
44 3 48
DSWallets\Currency::from_values()
S
48 4 32
shortcode_wallets_balance()
S
45 3 47
db_debug_cb()
S
52 4 31
DSWallets\Currency::get_platform()
S
58 5 16
get_template_part()
S
57 5 15
get_todays_withdrawal_counters()
S
53 4 29
get_wallet_adapter_class_names()
S
60 5 14
wallets_user_profile()
S
61 5 14
DSWallets\Bitcoin_Creator_Task::run()
S
51 4 28
DSWallets\Currency::meta_box_wallet()
S
53 4 27
DSWallets\Transaction::meta_box_address()
S
53 4 27
DSWallets\Address::meta_box_currency()
S
53 4 27
DSWallets\Currency::is_fiat()
S
62 5 12
DSWallets\Currency::is_online()
S
61 5 12
DSWallets\Transaction::meta_box_currency()
S
53 4 27
shortcode_wallets_account_value()
S
46 3 41
shortcode_wallets_fiat_deposit()
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
DSWallets\Transaction::register_post_type()
S
46 3 39
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
DSWallets\Address::register_post_type()
S
46 3 38
shortcode_wallets_status()
S
48 3 37
DSWallets\Address::from_values()
S
53 4 22
DSWallets\Migration_Task::get_balance_rows()
S
49 3 36
get_next_currency_with_pending_withdrawals()
S
54 4 21
DSWallets\Transaction::meta_box_pending_wd()
S
50 3 35
tab_fiat_cb()
S
46 1 64
get_currency_by_wallet_id_and_ticker_symbol()
S
50 3 30
DSWallets\Wallet::meta_box_adapter_currencies()
S
51 3 30
DSWallets\FixerIO_Task::run()
S
60 4 15
get_first_currency_by_symbol()
S
51 3 28
DSWallets\Moves_Task::run()
S
48 2 43
DSWallets\CoinGecko_Task::run()
S
60 4 13
generate_random_bytes()
S
60 4 13
get_first_currency_by_coingecko_id()
S
51 3 28
get_currency_ids()
S
51 3 28
DSWallets\Wallet_Adapter::__construct()
S
61 4 12
get_all_addresses_for_user_id_and_currency_id()
S
46 2 42
DSWallets\Migration_Task::get_next_user_id_after()
S
53 3 26
set_ds_transient()
S
53 3 26
DSWallets\Migration_Task::__construct()
S
52 3 26
fiat_deposit_exists_by_txid_currency()
S
47 2 40
select_cb()
S
54 3 24
DSWallets\Withdrawals_Task::mark_withdrawals_as_pending_again_if_not_modified()
S
54 3 24
DSWallets\Currency::register_post_type()
S
46 2 39
get_executable_withdrawals()
S
44 1 54
user_profile_legacy_api_key()
S
49 2 39
multicheckbox_cb()
S
55 3 21
get_executable_moves()
S
45 1 50
increment_todays_withdrawal_counters()
S
56 3 20
DSWallets\Wallet::register_post_type()
S
47 2 34
get_address_ids_for_currency_id()
S
49 2 34
affiliate_banners()
S
51 1 47
do_not_cache_page()
S
60 3 15
DSWallets\Post_Type::delete()
S
59 3 13
get_currency_symbols_names_for_wallet()
S
52 2 28
DSWallets\Post_Type::render_string_field()
S
62 3 12
create_random_nonce()
S
62 3 11
get_legacy_api_key()
S
63 3 11
db_migration_cb()
S
55 2 25
wp_mail_enqueue()
S
55 2 25
get_ids_for_coingecko_currencies_without_icon()
S
48 1 40
get_tx_with_parent()
S
53 2 24
DSWallets\Currency::meta_box_explorer()
S
50 1 38
DSWallets\Transaction::meta_box_other_tx()
S
56 2 21
DSWallets\Wallet::from_values()
S
56 2 18
DSWallets\Wallet::meta_box_adapter_settings()
S
57 2 18
DSWallets\Wallet::meta_box_adapter_text()
S
59 2 17
DSWallets\Withdrawals_Task::mark_withdrawals_as_done_for_now()
S
57 2 17
tab_updates_cb()
S
52 1 31
DSWallets\Transaction::load()
S
64 3 9
user_and_currency_have_label()
S
51 1 30
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::get_url()
S
64 3 9
DSWallets\Currency::load()
S
64 3 9
DSWallets\Wallet::load()
S
64 3 9
DSWallets\Address::load()
S
64 3 9
DSWallets\Transaction::get_other_tx()
S
69 3 7
DSWallets\Address::__toString()
S
63 3 10
numeric_cb()
S
59 2 15
get_ids_of_enabled_wallets()
S
51 1 30
resolve_recipient()
S
65 3 9
DSWallets\Post_Type::render_select_field()
S
59 2 15
DSWallets\Currency::is_set_decimals()
S
77 3 3
page_cb()
S
58 2 15
DSWallets\Transaction::manage_custom_columns()
S
58 2 14
DSWallets\Migration_Task::create_address()
S
59 2 14
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::get_hot_balance()
S
60 2 13
get_paged_currencies_with_coingecko_id()
S
51 1 28
DSWallets\Currency::meta_box_txs()
S
53 1 28
get_ids_for_users_without_cap()
S
63 2 13
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::lock()
S
62 2 13
get_ids_for_users_with_cap()
S
63 2 13
DSWallets\Bank_Fiat_Adapter::do_description_text()
S
55 1 27
DSWallets\Currency::meta_box_addresses()
S
54 1 27
checkbox_cb()
S
62 2 12
delete_ds_transient()
S
63 2 11
parse_tags()
S
63 2 11
get_pending_transactions_by_currency_and_category()
S
53 1 25
DSWallets\Address::register_taxonomy()
S
53 1 23
DSWallets\Currency::register_taxonomy()
S
53 1 23
DSWallets\Transaction::register_taxonomy()
S
53 1 23
tab_rates_cb()
S
58 1 23
DSWallets\Migration_Task::get_ids_of_migrated_posts()
S
54 1 22
DSWallets\Transaction::meta_box_nonce()
S
57 1 22
json_api_query_vars()
S
56 1 21
get_transactions_for_address()
S
55 1 20
get_all_currencies_by_symbol()
S
55 1 20
has_transactions()
S
56 1 19
DSWallets\CoinGecko_Task::__construct()
S
59 1 17
get_wallets()
S
58 1 16
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
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::do_cron()
S
70 2 7
is_net_active()
S
72 2 6
DSWallets\Currency::get_rate()
S
68 2 7
DSWallets\Currency::__toString()
S
66 2 9
DSWallets\FixerIO_Task::__construct()
S
65 2 9
maybe_restore_blog()
S
71 2 7
DSWallets\Currency::is_token()
S
79 2 3
maybe_switch_blog()
S
70 2 7
DSWallets\Transaction::get_confirmation_link()
S
69 2 7
get_all_currencies()
S
60 1 14
tab_http_cb()
S
64 1 14
DSWallets\Post_Type::render_secret_field()
S
63 1 12
DSWallets\Post_Type::render_boolean_field()
S
64 1 11
DSWallets\Currency::manage_custom_columns()
S
62 1 11
DSWallets\Wallet::register_taxonomy()
S
89 1 2
get_ds_option()
S
71 1 6
DSWallets\Address::load_many()
S
78 1 3
get_script_path()
S
80 1 3
DSWallets\Wallet_Adapter::get_extra_field_name()
S
82 1 3
DSWallets\Wallet_Adapter::get_hot_locked_balance()
S
100 1 0
DSWallets\Post_Type::save()
S
100 1 0
DSWallets\Post_Type::render_custom_column()
S
100 1 0
get_available_balance_for_user_and_currency_id()
S
79 1 3
DSWallets\Adapters_Task::__construct()
S
77 1 4
get_vs_decimals()
S
75 1 4
DSWallets\Wallet_Adapter::get_hot_balance()
S
100 1 0
DSWallets\Transaction::saveButDontNotify()
S
72 1 5
load_wallets()
S
69 1 8
DSWallets\Post_Type::register_taxonomy()
S
100 1 0
DSWallets\Moves_Task::__construct()
S
77 1 4
ds_current_user_can()
S
71 1 6
DSWallets\Bank_Fiat_Adapter::get_new_address()
S
80 1 3
get_deposit_address_by_strings()
S
79 1 3
DSWallets\Bitcoin_Core_Like_Wallet_Adapter::get_wallet_version()
S
74 1 4
get_balance_for_user_and_currency_id()
S
79 1 3
DSWallets\Post_Type::__toString()
S
100 1 0
DSWallets\Post_Type::register_post_type()
S
100 1 0
add_ds_option()
S
71 1 6
tab_general_cb()
S
100 1 1
DSWallets\Bank_Fiat_Adapter::get_wallet_version()
S
82 1 3
tab_notify_cb()
S
70 1 9
DSWallets\Currency::load_many()
S
78 1 3
DSWallets\Post_Type::render_bool_field()
S
79 1 3
DSWallets\Bitcoin_Creator_Task::__construct()
S
77 1 4
get_withdrawal_address_by_strings()
S
79 1 3
DSWallets\Post_Type::render_strings_field()
S
66 1 9
get_all_cryptocurrencies()
S
68 1 9
DSWallets\Bank_Fiat_Adapter::get_hot_locked_balance()
S
82 1 3
DSWallets\Wallet_Adapter::get_wallet_version()
S
100 1 0
wp_mail_enqueue_to_admins()
S
78 1 3
DSWallets\Bank_Fiat_Adapter::get_hot_balance()
S
82 1 3
DSWallets\Wallet::manage_custom_columns()
S
65 1 8
ds_user_can()
S
70 1 6
DSWallets\Address::manage_custom_columns()
S
64 1 9
api_adapters_filter()
S
69 1 8
delete_ds_option()
S
72 1 6
DSWallets\Post_Type::register()
S
69 1 6
DSWallets\Wallet_Adapter::get_block_height()
S
100 1 0
DSWallets\Wallet_Adapter::validate_tcp_ip_address()
S
66 1 9
DSWallets\Wallet_Adapter::get_hot_available_balance()
S
79 1 3
DSWallets\Wallet_Adapter::do_cron()
S
98 1 1
DSWallets\Wallet_Adapter::get_settings_schema()
S
81 1 3
DSWallets\Email_Queue_Task::__construct()
S
77 1 4
DSWallets\Wallet::load_many()
S
78 1 3
load_transactions()
S
69 1 8
get_currencies_for_wallet()
S
80 1 3
DSWallets\Transaction::load_many()
S
78 1 3
get_all_fiat_currencies()
S
74 1 6
get_transactions_older_than()
S
79 1 3
DSWallets\Task::run()
S
100 1 0
DSWallets\Bank_Fiat_Adapter::get_block_height()
S
80 1 3
DSWallets\Post_Type::register_meta_boxes()
S
100 1 0
DSWallets\Wallet_Adapter::do_move()
S
82 1 3
DSWallets\Wallet_Adapter::is_locked()
S
100 1 0
DSWallets\Currency_Icons_Task::__construct()
S
68 1 8
DSWallets\Post_Type::save_post()
S
100 1 0
tab_frontend_cb()
S
72 1 7
DSWallets\Wallet_Adapter::get_new_address()
S
100 1 0
count_all_addresses_for_user_id()
S
80 1 3
DSWallets\Wallet_Adapter::do_description_text()
S
100 1 0
DSWallets\Migration_Task::is_running()
S
77 1 3
DSWallets\Auto_Cancel_Task::__construct()
S
73 1 5
DSWallets\Post_Type::load()
S
100 1 0
DSWallets\Bank_Fiat_Adapter::is_locked()
S
82 1 3
coin_comparator()
S
80 1 3
get_transactions_newer_than()
S
79 1 3
count_all_addresses_for_user_id_and_currency_id()
S
79 1 3
load_currencies()
S
69 1 8
update_ds_option()
S
71 1 6
DSWallets\Post_Type::manage_custom_columns()
S
100 1 0
DSWallets\Post_Type::__get()
S
100 1 0