Code Analysis: Identity Verification for WooCommerce 1.17.0

Function Rating Maintainability Complexity Lines of code
RealID\Webhooks::update_metadata()
C
33 23 94
RealID\Api::register_routes()
B
27
4 233
RealID\Hooks\Checkout::validate_id_checked()
A
36 11 94
RealID\Hooks\Orders::draft_order_created()
A
37 6 96
RealID\Webhooks::associate_resource_with_check()
A
47 10 34
RealID\Webhooks::register_routes()
A
33 2 149
RealID\Webhooks::validate_webhook()
A
44 8 49
RealID\WC_Integration_Real_ID::register_shop_scripts()
S
48 6 36
real_id_app()
S
47 6 35
real_id_get_order_data()
S
47 5 36
RealID\WC_Integration_Real_ID::setup_sandbox_key()
S
56 6 17
RealID\Webhooks::get_metadata()
S
49 5 31
RealID\WC_Integration_Real_ID::register_admin_bundle_js()
S
50 5 27
RealID\Api::reset_to_sandbox_mode()
S
49 4 32
real_id_cancel_and_refund_order()
S
54 4 23
RealID\ApiClient::__construct()
S
54 4 20
RealID\CheckState::__construct()
S
43 1 62
RealID\WC_Integration_Real_ID::__construct()
S
49 3 30
RealID\Hooks\Orders::populate_id_check_column()
S
58 4 15
RealID\Hooks\Orders::meta_box_html()
S
59 4 14
RealID\Hooks\Orders::populate_id_check_column_hpos()
S
59 4 14
RealID\Api::manually_reject_check()
S
60 4 12
RealID\Hooks\Orders::post_checkout_webhook()
S
53 3 25
RealID\Hooks\Orders::render_cart_contents()
S
53 3 25
RealID\Api::set_wc_session()
S
48 2 39
RealID\Webhooks::get_order()
S
54 3 23
RealID\Api::get_order()
S
54 3 23
RealID\Api::associate_check_with_order()
S
53 3 22
real_id_get_current_user_data()
S
55 3 21
RealID\Api::update_settings()
S
53 3 21
RealID\Api::create_check_from_pre_checkout()
S
50 2 31
RealID\Hooks\Checkout::register()
S
68 4 6
RealID\Api::get_shop()
S
58 3 15
real_id_sync_shop_public_settings()
S
61 3 12
RealID\WpHttpClient::get()
S
60 3 12
RealID\WC_Integration_Real_ID::register_idv_flow_scripts()
S
62 3 11
RealID\Api::search_customers()
S
52 2 24
RealID\Webhooks::search_customers()
S
53 2 22
RealID\WC_Integration_Real_ID::init()
S
66 3 8
RealID\Hooks\Customers::register()
S
69 3 6
RealID\Hooks\Orders::register()
S
58 2 14
RealID\Api::activate_license_key()
S
58 2 14
RealID\Api::get_shop_public_settings()
S
60 2 13
RealID\Api::deactivate_license_key()
S
59 2 13
RealID\WCRealID::init_settings_menu()
S
54 1 26
RealID\Hooks\Orders::add_metabox()
S
63 2 11
RealID\Hooks\Customers::on_customer_create()
S
57 1 16
real_id_get_license_key()
S
68 2 8
RealID\WC_Integration_Real_ID::is_localhost()
S
74 2 4
RealID\Webhooks::search_orders()
S
58 1 15
RealID\WC_Integration_Real_ID::real_id_current_user_verification_status_shortcode()
S
64 2 10
RealID\WC_Integration_Real_ID::populate_real_id_users_column()
S
70 2 6
RealID\Api::api()
S
72 2 6
RealID\Api::search_orders()
S
58 1 15
RealID\WC_Integration_Real_ID::maybe_add_admin_notice()
S
68 2 10
RealID\WpHttpResponse::parseResponse()
S
66 2 8
RealID\WpHttpResponse::parseStatusCode()
S
69 2 7
real_id_is_pre_checkout_enabled()
S
69 2 7
real_id_get_shop_public_settings()
S
69 2 7
RealID\Api::get_license_key()
S
68 2 8
RealID\WC_Integration_Real_ID::plugin_action_links()
S
67 2 8
RealID\WC_Integration_Real_ID::add_script_module_type_attribute()
S
68 2 7
RealID\WC_Integration_Real_ID::real_id_user_verification_status_shortcode()
S
64 2 10
RealID\WCRealID::renderReactRoot()
S
82 1 3
RealID\CheckState::setFiniteState()
S
81 1 3
RealID\Api::create_check()
S
63 1 10
RealID\WC_Integration_Real_ID::exclude_scripts_from_speed_optimizer()
S
77 1 4
RealID\WC_Integration_Real_ID::robots_txt_rules()
S
78 1 4
RealID\WpHttpClient::__construct()
S
81 1 3
RealID\Models\IDCheck::translate_canonical_status()
S
79 1 3
RealID\Api::update_delivery_methods()
S
63 1 10
RealID\WCRealID::__construct()
S
64 1 10
RealID\Api::delete_check()
S
66 1 8
RealID\TemplateEngine::__construct()
S
81 1 3
RealID\Api::remove_email_sender_signature()
S
65 1 8
RealID\WpHttpResponse::isSuccessful()
S
80 1 3
RealID\ApiClient::getOptions()
S
82 1 3
RealID\Webhooks::get_version()
S
65 1 9
RealID\Api::add_email_sender_signature()
S
65 1 8
RealID\Hooks\Orders::add_real_id_column()
S
68 1 6
RealID\Api::check_email_sender_signature_verification_status()
S
65 1 8
RealID\Api::get_current_license_key()
S
65 1 9
RealID\Api::get_check()
S
66 1 8
RealID\WC_Integration_Real_ID::register_api_routes()
S
71 1 6
RealID\WpHttpResponse::__construct()
S
73 1 5
RealID\WpHttpResponse::getStatusCode()
S
82 1 3
RealID\WC_Integration_Real_ID::add_integration()
S
77 1 4
RealID\WpHttpClient::post()
S
64 1 9
real_id_get_shop_delivery_methods()
S
81 1 3
RealID\Api::deliver_check_reminder()
S
62 1 10
ridd()
S
81 1 3
RealID\Webhooks::sync_shop_public_settings()
S
66 1 8
real_id_get_shop_name()
S
82 1 3
RealID\WC_Integration_Real_ID::allow_real_id_origins()
S
74 1 5
real_id_set_shop_public_settings()
S
79 1 3
RealID\Hooks\Orders::__construct()
S
81 1 3
RealID\Api::check_email_sender_signature_return_path_status()
S
65 1 8
RealID\WC_Integration_Real_ID::real_id_check_shortcode()
S
70 1 5
RealID\WpHttpResponse::getBody()
S
82 1 3
RealID\Models\IDCheck::all_check_statuses()
S
79 1 3
RealID\Api::manually_approve_check()
S
65 1 8
RealID\Storefront::exposeCustomerId()
S
91 1 2
RealID\WC_Integration_Real_ID::exclude_script_async_from_speed_optimizer()
S
77 1 4
RealID\Api::list_checks()
S
64 1 9
RealID\WC_Integration_Real_ID::add_real_id_users_column()
S
77 1 4
RealID\TemplateEngine::render()
S
79 1 3
real_id_in_sandbox_mode()
S
81 1 3
RealID\WC_Integration_Real_ID::exclude_script_hosts_from_speed_optimizer()
S
71 1 6
RealID\Hooks\Orders::post_checkout_order_script_data()
S
69 1 8
RealID\WC_Integration_Real_ID::rewrite_admin_url_rules()
S
80 1 3
RealID\Api::check_email_sender_signature_dkim_status()
S
65 1 8
RealID\CheckState::getFiniteState()
S
82 1 3