Code Analysis: Yesh Invoice Payment Gateway for WooCommerce 1.3.2

Function Rating Maintainability Complexity Lines of code
WC_YESHIN_Gateway::__construct()
B
40 24 47
yeshin_init_gateway_class()
B
21
2 278
WC_YESHIN_Gateway::process_payment()
B
30 11 126
WC_YESHIN_Gateway::custom_woocommerce_auto_complete_paid_order()
A
49 11 31
custom_woocommerce_auto_complete_cws()
S
61 6 12
WC_YESHIN_Gateway::yeshin_admin_enqueue_scripts()
S
56 5 17
custom_add_iframe_to_order_receipt()
S
52 3 27
WC_YESHIN_Gateway::yeshin_notify_webhook()
S
53 3 21
WC_YESHIN_Gateway::yeshin_receipt_page()
S
62 4 10
WC_YESHIN_Gateway_Blocks::get_payment_method_script_handles()
S
57 2 19
save_rental_option_field()
S
67 3 7
WC_Product_yesh_subs::add_to_cart_url()
S
72 3 4
custom_product_add_to_cart()
S
62 2 13
wc_yesin_register_order_approval_payment_method_type()
S
63 2 12
yeshin_plugin_log()
S
61 2 12
yesh_subs_custom_js()
S
67 2 11
wc_yeshin_declare_cart_checkout_blocks_compatibility()
S
72 2 5
WC_YESHIN_Gateway::QuadLayers_change_order_status()
S
71 2 6
register_yesh_subs_product_type()
S
61 1 12
WC_YESHIN_Gateway_Blocks::get_payment_method_data()
S
72 1 6
yeshin_load_textdomain()
S
78 1 3
rental_options_product_tab_content()
S
74 1 8
WC_YESHIN_Gateway::validate_fields()
S
91 1 2
WC_YESHIN_Gateway::init_form_fields()
S
79 1 3
WC_YESHIN_Gateway_Blocks::initialize()
S
75 1 4
hide_attributes_data_panel()
S
76 1 4
WC_Product_yesh_subs::__construct()
S
76 1 4
yeshin_add_gateway_class()
S
77 1 4
add_yesh_subs_product()
S
76 1 4
WC_YESHIN_Gateway_Blocks::is_active()
S
81 1 3
custom_product_tabs()
S
66 1 8