Code Analysis: Payment Gateway Plugin for PayPal WooCommerce 1.6.2

Function Rating Maintainability Complexity Lines of code
Eh_PayPal_Express_Payment::perform_api_request_paypal()
D
0
212 907
Eh_PE_Request_Built::make_request_params()
D
16
54 254
Eh_Rest_Request_Built::make_request_params()
D
17
53 245
Eh_PayPal_Express_Payment::set_address_to_order()
D
41 43 34
Eh_PayPal_Express_Payment::shipping_parse()
D
37 35 55
Eh_Rest_Request_Built::get_address_details()
C
43 28 36
Eh_PayPal_Express_Payment::fill_checkout_fields_on_review()
C
41 25 55
Eh_Paypal_Express_Hooks::eh_express_button_enabled()
B
48 23 32
Eh_PE_Request_Built::order_item_params()
B
31 15 126
Eh_Rest_Request_Built::order_item_params()
B
32 15 123
Eh_PayPal_Express_Payment::__construct()
B
34 15 85
Eh_Paypal_Express_Hooks::eh_express_credit_button_enabled()
B
56 19 15
Eh_Paypal_Express_Hooks::eh_payment_scripts()
A
39 14 53
Eh_Paypal_Express_Hooks::checkout_button_include()
A
41 12 55
deactivate_scripts()
A
35 3 167
Eh_PayPal_Express_Payment::fill_billing_details_on_review()
A
38 7 92
Eh_PayPal_Express_Payment::hide_checkout_fields_on_review()
A
55 12 16
Eh_PayPal_Express_Payment::is_available()
A
56 11 18
Eh_PayPal_Express_Payment::process_payment()
A
43 8 52
Eh_PayPal_Express_Payment::process_express_checkout()
A
47 9 33
Eh_PayPal_Express_Payment::admin_options()
A
42 1 151
Eh_Paypal_Express_Hooks::__construct()
A
53 9 21
Eh_PayPal_Express_Payment::process_admin_options()
A
57 9 17
Eh_PayPal_Express_Payment::create_account()
A
44 7 44
Eh_PayPal_Express_Payment::generate_image_html()
A
40 5 70
Eh_PayPal_Log::remove_data()
A
54 8 24
Paypal_Express_Review_Request::check_condition()
S
55 7 19
Eh_PayPal_Log::log_update()
S
48 6 33
Eh_PayPal_Express_Payment::is_registration_needed()
S
59 7 14
Eh_PayPal_Express_Payment::wc_get_state_code()
S
60 7 13
Eh_Paypal_Express_Hooks::check_express()
S
56 6 21
send_uninstall_reason()
S
47 5 34
Paypal_Express_Review_Request::process_user_action()
S
56 6 18
Eh_Paypal_Express_Hooks::unset_express()
S
57 6 17
Eh_Rest_Request_Built::query_params()
S
59 6 15
Eh_PayPal_Express_Payment::get_access_token()
S
53 5 23
Eh_Rest_Request_Built::make_refund_params()
S
51 4 29
Eh_PE_Request_Built::query_params()
S
60 5 13
Eh_Rest_Request_Built::alter_query_params()
S
54 4 23
Eh_PayPal_Express_Payment::file_size()
S
49 3 34
Eh_PE_Process_Response::parse_response()
S
57 4 18
Eh_PayPal_Express_Payment::finish_rest_request()
S
49 3 29
Eh_Paypal_Express_Hooks::unset_expres_cart_empty()
S
63 4 12
Eh_PE_Request_Built::finish_request_params()
S
52 3 25
get_uninstall_reasons()
S
45 1 53
eh_paypal_express_wc_admin_notices()
S
56 3 20
Eh_PayPal_Express_Payment::store_locale()
S
51 2 31
Paypal_Express_Review_Request::add_banner_scripts()
S
50 1 46
Eh_Paypal_Express_Hooks::get_locale()
S
51 2 31
get_order_processed()
S
64 4 9
Eh_PayPal_Express_Payment::gateways_hide_on_review()
S
64 4 10
Eh_Rest_Request_Built::make_params()
S
68 4 7
Eh_PayPal_Express_Payment::add_policy_notes()
S
61 3 14
Eh_PE_Process_Response::process_response()
S
62 3 13
Eh_Rest_Request_Built::make_paypal_amount()
S
63 3 11
Eh_PayPal_Express_Payment::cancel_order()
S
63 3 11
Eh_PE_Request_Built::make_paypal_amount()
S
63 3 11
eh_paypal_check()
S
52 2 24
Paypal_Express_Review_Request::show_banner()
S
56 2 24
eh_paypal_express_init_log()
S
59 2 15
Eh_PayPal_Express_Payment::add_cancel_order_elements()
S
59 2 15
Eh_Paypal_Express_Hooks::express_run()
S
70 3 6
Eh_PayPal_Express_Payment::make_redirect_url()
S
60 2 15
eh_express_checkout_paypal_payment_gateway_for_woocommerce_update_message()
S
60 2 14
Paypal_Express_Review_Request::__construct()
S
58 2 14
eh_paypal_express_plugin_action_links()
S
59 2 13
Eh_Paypal_Express_Handlers::check_dependencies()
S
69 2 6
Eh_Rest_Request_Built::get_params()
S
59 1 15
Eh_PE_Request_Built::make_capture_params()
S
59 1 15
Eh_PE_Request_Built::add_payment_params()
S
72 2 5
Eh_PE_Request_Built::wt_skip_line_items()
S
78 2 3
Paypal_Express_Review_Request::set_vars()
S
64 2 9
eh_paypal_express_run()
S
66 2 9
Eh_PE_Request_Built::add_line_items()
S
72 2 5
Eh_Paypal_Express_Hooks::eh_express_checkout_hook()
S
69 2 7
Eh_Rest_Request_Built::wt_skip_line_items()
S
78 2 3
Eh_PE_Request_Built::make_params()
S
73 2 5
Eh_Paypal_Express_Handlers::paypal_express_init()
S
71 2 6
Eh_PE_Request_Built::get_params()
S
59 1 15
Eh_PE_Request_Built::make_refund_params()
S
59 1 15
Eh_PayPal_Express_Payment::payment_scripts()
S
64 2 9
eh_express_checkout_paypal_payment_gateway_for_woocommerce_plugin_screen_update_js()
S
100 1 13
Eh_PayPal_Express_Payment::new_request()
S
79 1 3
Eh_Paypal_Express_Handlers::add_payment_gateway()
S
77 1 4
Eh_PE_Request_Built::make_param()
S
80 1 3
Eh_PayPal_Express_Payment::admin_scripts()
S
70 1 6
Eh_PE_Request_Built::get_checkout_details()
S
70 1 6
Eh_PE_Request_Built::__construct()
S
64 1 10
Eh_Rest_Request_Built::add_line_items()
S
78 1 3
Eh_Rest_Request_Built::get_token()
S
68 1 6
Eh_Paypal_Express_Handlers::express_run()
S
74 1 4
Paypal_Express_Review_Request::on_deactivate()
S
81 1 3
Eh_Rest_Request_Built::update_order()
S
62 1 10
Eh_Rest_Request_Built::add_amount_breakdown()
S
79 1 3
Paypal_Express_Review_Request::update_banner_state()
S
80 1 3
Paypal_Express_Review_Request::reset_start_date()
S
80 1 3
Eh_Rest_Request_Built::add_shipping_details()
S
79 1 3
Eh_PE_Process_Request::process_request()
S
72 1 5
Eh_PayPal_Express_Payment::new_rest_request()
S
79 1 3
Paypal_Express_Review_Request::on_activate()
S
82 1 3
Eh_Rest_Request_Built::authorize_order()
S
70 1 5
Eh_Rest_Request_Built::__construct()
S
67 1 8
eh_paypal_express_hook_init()
S
77 1 4
load_ehpypl_plugin_textdomain()
S
75 1 4
Eh_Paypal_Express_Hooks::make_express_url()
S
78 1 3
Eh_PayPal_Express_Payment::init_form_fields()
S
80 1 3
Eh_Rest_Request_Built::get_order_details()
S
70 1 5
Eh_PayPal_Express_Payment::get_icon()
S
71 1 5
Eh_Rest_Request_Built::capture_order()
S
70 1 5
Eh_PayPal_Log::init_log()
S
75 1 4
Eh_Paypal_Express_Handlers::run_dependencies_hook()
S
65 1 9