Code Analysis: WordPress Bitcoin Payments - Blockonomics 3.7.5

Function Rating Maintainability Complexity Lines of code
QRCode::qr_create_matrix()
D
34 41 78
QRCode::qr_encode_data()
B
42 21 45
QRrsItem::init_rs_char()
B
40 19 55
QRCode::qr_penalty_3()
B
50 20 24
QRmask::evaluateSymbol()
B
43 17 53
WC_Gateway_Blockonomics::handle_requests()
B
50 18 23
QRCode::qr_encode_kanji()
B
42 16 50
blockonomics_woocommerce_init()
A
23
3 238
QRmask::calcN1N3()
A
51 15 24
FormFields::init_form_fields()
A
33 8 110
QRencode::factory()
A
48 13 33
QRCode::qr_penalty_2()
A
55 14 17
QRCode::qr_penalty_1()
A
49 13 30
QRcode::encodeMask()
A
41 11 53
FrameFiller::next()
A
45 11 44
QRinput::lengthOfCode()
A
46 11 38
Blockonomics::get_checkout_context()
A
47 11 34
Blockonomics::examine_server_callback_urls()
A
48 11 31
QRsplit::eat8()
A
45 10 46
QRspec::createFrame()
A
43 9 51
BlockonomicsTest::setUp()
A
43 8 53
QRsplit::identifyMode()
A
53 10 20
QRinputItem::encodeBitStream()
A
48 9 33
QRCode::qr_encode_numeric()
A
45 8 42
QRsplit::eatAn()
A
48 8 36
QRsplit::splitString()
A
54 9 21
QRCode::qr_mask()
A
55 9 20
add_payment_page_shortcode()
A
54 9 18
QRinput::appendPaddingBit()
A
49 8 29
QRmask::makeMaskNo()
A
49 8 29
QRCode::qr_encode_alphanumeric()
A
43 6 51
QRmask::writeFormatInformation()
A
48 7 35
QRspec::putAlignmentPattern()
A
49 7 31
QRsplit::eatNum()
S
50 7 29
QRrs::init_rs()
S
58 8 14
QRvect::vectEPS()
S
41 5 56
Blockonomics::new_address()
S
51 7 25
bnomics_display_payment_details()
S
50 7 25
WC_Gateway_Blockonomics::generate_select_html()
S
43 5 52
QRspec::newFrame()
S
54 7 20
QRinputItem::estimateBitStreamSizeOfEntry()
S
54 7 19
QRCode::qr_finalize_matrix()
S
44 5 48
WC_Gateway_Blockonomics::generate_checkbox_html()
S
45 5 47
QRinput::check()
S
59 7 14
QRinput::checkModeKanji()
S
59 7 13
QRbitstream::toByte()
S
51 6 28
WC_Gateway_Blockonomics::__construct()
S
45 5 43
BlockonomicsTest::getMockResponse()
S
47 5 42
QRvect::vectSVG()
S
46 5 38
WC_Blockonomics_Blocks_Support::get_payment_method_script_handles()
S
53 6 22
QRCode::qr_encode_binary()
S
47 5 37
QRtools::tcpdfBarcodeArray()
S
53 6 21
QRinput::convertData()
S
55 6 20
WC_Gateway_Blockonomics::process_admin_options()
S
54 6 19
QRCode::qr_encode_ec()
S
48 5 34
Blockonomics::get_price()
S
56 6 17
QRmask::mask()
S
48 5 31
QRrawcode::init()
S
49 5 31
QRspec::debug()
S
45 4 45
QRrsItem::encode_rs_char()
S
49 5 29
QRinputItem::encodeModeNum()
S
50 5 27
QRCode::qr_ec_divide()
S
55 5 19
update_payment_url_on_underpayments()
S
57 5 18
blockonomics_enqueue_custom_admin_style()
S
56 5 17
QRspec::maximumWords()
S
57 5 17
QRinput::insertStructuredAppendHeader()
S
57 5 16
QRsplit::toUpper()
S
57 5 16
QRCode::qr_penalty_4()
S
57 5 15
QRCode::qr_ec_interleave()
S
59 5 15
QRmask::generateMaskNo()
S
58 5 14
QRCode::dispatch_encode()
S
59 5 14
QRcode::encodeString()
S
59 5 13
QRimage::image()
S
50 4 27
QRCode::qr_apply_mask()
S
61 5 12
Blockonomics::getActiveCurrencies()
S
62 5 11
Blockonomics::calculate_order_params()
S
63 5 11
Blockonomics::decrypt_hash()
S
52 4 25
Blockonomics::check_paid_amount()
S
52 4 24
QRinputItem::encodeModeKanji()
S
52 4 22
WC_Gateway_Blockonomics::generate_apikey_html()
S
45 2 51
QRinputItem::encodeModeAn()
S
53 4 21
blockonomics_plugin_activation()
S
55 4 20
QRrawcode::getCode()
S
56 4 19
QRbitstream::newFromBytes()
S
56 4 18
Blockonomics::test_one_crypto()
S
58 4 16
BlockonomicsTest::mockActiveCurrencies()
S
58 4 16
QRtools::buildCache()
S
56 4 16
Blockonomics::get_parameterized_wc_url()
S
63 5 9
QRsplit::splitStringToQRinput()
S
63 5 9
QRspec::getFormatInfo()
S
68 5 7
WC_Gateway_Blockonomics::generate_testsetup_html()
S
48 2 44
QRbitstream::append()
S
60 4 14
QRcode::encodeString8bit()
S
59 4 14
QRinput::mergeBitStream()
S
61 4 13
Blockonomics::check_get_callbacks_response_body()
S
60 4 13
QRCode::createSVG()
S
59 4 13
Blockonomics::get_order_checkout_url()
S
60 4 12
QRspec::lengthIndicator()
S
62 4 12
QRinput::calcParity()
S
62 4 11
Blockonomics::check_get_callbacks_response_code()
S
62 4 11
QRtools::log()
S
62 4 11
WC_Gateway_Blockonomics::generate_text_html()
S
48 2 38
Blockonomics::calculate_new_order_params()
S
52 3 23
QRtools::timeBenchmark()
S
54 3 22
QRspec::getEccSpec()
S
54 3 22
QRrawcode::__construct()
S
55 3 20
filter_orders_by_address_or_txid()
S
55 3 20
Blockonomics::post()
S
56 3 18
WC_Blockonomics_Blocks_Support::get_icons()
S
56 3 18
Blockonomics::process_callback()
S
56 3 18
QRvect::eps()
S
57 3 17
QRimage::png()
S
58 3 16
add_page()
S
70 4 5
QRinput::__construct()
S
68 4 7
QRinput::checkModeNum()
S
65 4 8
QRinput::estimateBitsModeNum()
S
59 3 15
QRtools::binarize()
S
64 4 9
QRCode::qr_apply_best_mask()
S
59 3 15
QRCode::qr_detect_version()
S
63 4 10
Blockonomics::process_order()
S
59 3 15
QRvect::svg()
S
59 3 15
QRCode::qr_detect_mode()
S
64 4 9
QRencode::encodeEPS()
S
58 3 14
QRencode::encodePNG()
S
58 3 14
QRencode::encodeSVG()
S
58 3 14
WC_Gateway_Blockonomics::generate_number_html()
S
60 3 14
QRbitstream::newFromNum()
S
59 3 14
QRinputItem::encodeMode8()
S
59 3 14
Blockonomics::update_paid_amount()
S
60 3 14
QRencode::encode()
S
59 3 14
QRinput::estimateVersion()
S
60 3 13
Blockonomics::update_callback()
S
59 3 13
QRCode::qr_ec_split()
S
60 3 13
QRinputItem::__construct()
S
59 3 13
blockonomics_run_db_updates()
S
62 3 12
Blockonomics::save_transaction()
S
61 3 12
Blockonomics::record_address()
S
61 3 12
Blockonomics::get_error_context()
S
62 3 11
QRinput::getBitStream()
S
64 3 11
woocommerce_gateway_blockonomics_woocommerce_block_support()
S
55 2 21
QRspec::getVersionPattern()
S
72 3 5
QRinput::setVersion()
S
66 3 8
QRsplit::isdigitat()
S
71 3 5
Blockonomics::create_new_order()
S
59 2 15
QRinput::checkModeAn()
S
65 3 8
QRinput::createBitStream()
S
64 3 10
Blockonomics::get_checkout_template()
S
68 3 7
QRbitstream::appendNum()
S
64 3 10
QRbitstream::appendBytes()
S
64 3 10
qrstr::set()
S
75 3 3
Blockonomics::get_checkout_script()
S
57 2 15
QRsplit::eatKanji()
S
63 3 10
QRtools::dumpMask()
S
66 3 8
Blockonomics::get_order_by_id_and_crypto()
S
60 2 15
QRspec::getMinimumVersion()
S
65 3 8
generate_secret()
S
68 3 7
Blockonomics::check_callback_secret()
S
68 3 7
Blockonomics::is_order_underpaid()
S
69 3 5
filter_orders()
S
64 3 9
is_HPOS_active()
S
66 3 10
blockonomics_update_db_check()
S
63 3 10
Blockonomics::get()
S
59 2 14
QRspec::putAlignmentMarker()
S
59 2 14
QRspec::putFinderPattern()
S
60 2 14
blockonomics_create_payment_page()
S
61 2 14
QRinputItem::encodeModeStructure()
S
60 2 13
bnomics_display_tx_info()
S
62 2 11
Blockonomics::get_order_by_address()
S
62 2 11
BlockonomicsTest::testExamineServerCallbackUrlsNoMatchNoEmptyCallback()
S
52 1 25
BlockonomicsTest::testExamineServerCallbackUrlsWithNoMatch()
S
52 1 25
blockonomics_create_table()
S
56 1 22
blockonomics_uninstall_hook()
S
55 1 20
BlockonomicsTest::testUpdateCallbackForBTC()
S
56 1 18
BlockonomicsTest::testUpdateCallbackWithInvalidResponse()
S
56 1 18
BlockonomicsTest::testUpdateCallbackForBCH()
S
56 1 18
BlockonomicsTest::testGetSupportedCurrencies()
S
59 1 16
Blockonomics::test_new_address_gen()
S
65 2 9
blockonomics_load_admin_scripts()
S
71 2 5
QRimage::jpg()
S
63 2 10
QRtools::markTime()
S
67 2 7
QRtools::save()
S
63 2 10
Blockonomics::testSetup()
S
67 2 8
QRinput::estimateBitsModeAn()
S
66 2 8
blockonomics_activation_hook()
S
68 2 7
Blockonomics::create_and_insert_new_order_on_underpayment()
S
65 2 9
QRinput::setErrorCorrectionLevel()
S
67 2 8
QRinput::append()
S
65 2 9
QRinput::lookAnTable()
S
77 2 3
Blockonomics::set_headers()
S
70 2 7
Blockonomics::get_callbacks()
S
65 2 9
QRinput::estimateBitStreamSize()
S
69 2 7
QRsplit::isalnumat()
S
71 2 5
QRrsItem::modnn()
S
68 2 7
Blockonomics::check_callback_urls_or_set_one()
S
69 2 7
Blockonomics::is_nojs_template()
S
70 2 6
QRmask::serial()
S
69 2 6
Blockonomics::is_error_template()
S
70 2 6
Blockonomics::set_template_context()
S
73 2 5
QRmask::unserial()
S
67 2 7
Blockonomics::add_blockonomics_checkout_style()
S
65 2 9
QRCode::__construct()
S
66 2 8
Blockonomics::fix_displaying_small_values()
S
68 2 7
Blockonomics::encrypt_hash()
S
59 1 15
BlockonomicsTest::mockGetCallbacks()
S
67 2 8
Blockonomics::calculate_total_paid_fiat()
S
66 2 8
QRencode::encodeRAW()
S
65 2 9
QRinput::getByteStream()
S
69 2 7
Blockonomics::getSupportedCurrencies()
S
61 1 14
QRCode::qr_encode()
S
60 1 13
Blockonomics::get_order_amount_info()
S
60 1 13
BlockonomicsTest::testCalculateTotalPaidFiatWithVariousTransactions()
S
61 1 13
BlockonomicsTest::testBTCandBCHWithOneStoreNoCallback()
S
61 1 13
BlockonomicsTest::testCheckCallbackUrlsOrSetOne()
S
62 1 12
BlockonomicsTest::mockUpdateCallbackResponse()
S
64 1 11
TestableBlockonomics::__construct()
S
81 1 3
QRspec::rsDataCodes2()
S
90 1 1
QRinput::estimateBitsMode8()
S
80 1 3
Blockonomics::get_api_key()
S
76 1 4
FrameFiller::setFrameAt()
S
78 1 3
QRspec::rsBlockNum2()
S
90 1 1
QRspec::rsDataCodes1()
S
90 1 1
Blockonomics::update_order()
S
68 1 8
Blockonomics::is_nojs_active()
S
79 1 3
QRcode::png()
S
73 1 4
Blockonomics::__construct()
S
80 1 3
Blockonomics::load_checkout_template()
S
68 1 7
nolo_custom_field_display_cust_order_meta()
S
82 1 3
BlockonomicsTest::testBCHWithOneStoreNoCallback()
S
66 1 9
bnomics_register_stylesheets()
S
77 1 3
QRmask::mask5()
S
88 1 1
BlockonomicsTest::testFixDisplayingSmallValuesLessThan10000()
S
79 1 3
QRCode::svg()
S
79 1 3
QRspec::rsEccLength()
S
88 1 1
QRinput::getErrorCorrectionLevel()
S
82 1 3
BlockonomicsTest::testBTCWithIncorrectAPIKeySetup()
S
68 1 7
BlockonomicsTest::testBTCWithNoStore()
S
68 1 7
QRinput::appendEntry()
S
80 1 3
QRcode::text()
S
74 1 4
QRbitstream::size()
S
80 1 3
QRmask::mask2()
S
90 1 1
QRspec::rsBlockNum()
S
89 1 1
QRcode::eps()
S
73 1 4
BlockonomicsTest::testBTCandBCHWithIncorrectAPIKeySetup()
S
67 1 7
Blockonomics::add_note_on_underpayment()
S
71 1 5
Blockonomics::get_crypto_payment_uri()
S
78 1 3
QRspec::getWidth()
S
79 1 3
WC_Gateway_Blockonomics::process_payment()
S
66 1 9
QRspec::rsBlockNum1()
S
90 1 1
QRspec::rsEccCodes1()
S
90 1 1
QRsplit::__construct()
S
74 1 5
Blockonomics::load_blockonomics_template()
S
66 1 8
blockonomics_plugin_setup()
S
79 1 4
FrameFiller::getFrameAt()
S
78 1 3
WC_Blockonomics_Blocks_Support::get_payment_method_data()
S
66 1 9
QRmask::mask0()
S
89 1 1
display_admin_message()
S
79 1 3
BlockonomicsTest::testCalculateTotalPaidFiatWithNoTransactions()
S
65 1 9
QRtools::clearCache()
S
80 1 3
Blockonomics::generate_qrcode_svg_element()
S
72 1 5
BlockonomicsTest::testBTCWithOneStoreNoCallback()
S
66 1 9
QRspec::serial()
S
78 1 3
WC_Blockonomics_Blocks_Support::is_active()
S
78 1 3
QRmask::mask3()
S
89 1 1
BlockonomicsTest::tearDown()
S
78 1 4
Blockonomics::insert_order()
S
66 1 9
QRmask::makeMask()
S
69 1 6
Blockonomics::get_order_paid_fiat()
S
67 1 7
BlockonomicsTest::testSetHeadersWithEmptyApiKey()
S
67 1 7
WC_Blockonomics_Blocks_Support::initialize()
S
79 1 3
QRmask::mask1()
S
90 1 1
QRCode::qr_penalty()
S
68 1 7
bnomics_register_scripts()
S
68 1 6
BlockonomicsTest::testBCHWithIncorrectAPIKeySetup()
S
68 1 7
QRcode::svg()
S
73 1 4
WC_Gateway_Blockonomics::init_form_fields()
S
76 1 4
BlockonomicsTest::testBTCandBCHWithNoStore()
S
67 1 7
error_message()
S
67 1 8
Blockonomics::get_crypto_rate_from_params()
S
77 1 3
woocommerce_add_blockonomics_gateway()
S
77 1 4
BlockonomicsTest::testSetHeadersWithNonEmptyApiKey()
S
64 1 9
Blockonomics::redirect_finish_order()
S
73 1 5
QRinput::estimateBitsModeKanji()
S
78 1 3
BlockonomicsTest::testGetCryptoPaymentUriForBTC()
S
68 1 7
Blockonomics::send_email_on_underpayment()
S
69 1 6
QRmask::mask6()
S
88 1 1
BlockonomicsTest::testBCHWithNoStore()
S
68 1 7
QRmask::mask4()
S
87 1 1
BlockonomicsTest::testCheckCallbackUrlsOrSetOneWithError()
S
65 1 9
BlockonomicsTest::testFixDisplayingSmallValuesGreaterThan10000()
S
79 1 3
get_callback_url()
S
70 1 6
nolo_bnomics_woocommerce_email_customer_details()
S
82 1 3
blockonomics_test_setup()
S
66 1 8
Blockonomics::is_partial_payments_active()
S
79 1 3
Blockonomics::get_wc_order_received_url()
S
76 1 4
WC_Gateway_Blockonomics::get_callback_url()
S
70 1 6
get_started_message()
S
65 1 9
QRinput::getVersion()
S
82 1 3
BlockonomicsTest::testGetCryptoPaymentUriForBCH()
S
68 1 7
QRrsblock::__construct()
S
69 1 7
QRbitstream::allocate()
S
75 1 4
QRspec::unserial()
S
78 1 3
QRmask::__construct()
S
78 1 3
QRspec::getECCLength()
S
78 1 3
FrameFiller::__construct()
S
67 1 8
QRmask::mask7()
S
88 1 1
load_plugin_translations()
S
78 1 3
success_message()
S
78 1 3
QRspec::getDataLength()
S
77 1 3
QRspec::rsEccCodes2()
S
90 1 1
bnomics_exclude_pages()
S
76 1 4
QRspec::getRemainder()
S
79 1 3
QRspec::rsDataLength()
S
87 1 1
blockonomics_plugin_add_settings_link()
S
72 1 5
WC_Blockonomics_Blocks_Support::get_enable_for_virtual()
S
78 1 3
QRcode::encodeInput()
S
79 1 3
QRcode::raw()
S
74 1 4