Code Analysis: W2P: Pipedrive CRM Integration for WooCommerce 1.1.2

Function Rating Maintainability Complexity Lines of code
w2pcifw_sync_function()
D
24
27 198
w2pcifw_get_order_value()
C
35 32 72
W2PCIFW_Query::get_payload_data()
C
34 30 91
W2PCIFW_Query::send()
C
31 26 114
w2pcifw_get_product_value()
C
36 23 76
w2pcifw_send_order()
B
30 17 144
W2PCIFW_Query::get_default_payload_data()
B
32 16 125
w2pcifw_register_user_defined_hooks()
B
34 16 110
w2pcifw_handle_custom_hook()
B
38 16 64
W2PCIFW_Query::get_queries()
A
36 13 77
w2pcifw_get_variable_value()
A
45 12 38
w2pcifw_put_parameters()
A
43 11 48
w2pcifw_initialize_order_class()
A
29 2 166
W2PCIFW_Query::get_pipedrive_target_id()
A
50 11 27
W2PCIFW_Query::get_state()
A
51 11 26
w2pcifw_show_front_app()
A
40 8 63
w2pcifw_get_parameters()
A
49 10 31
w2pcifw_load_files()
A
51 9 26
w2pcifw_get_hook()
A
55 9 19
w2pcifw_send_queries()
A
48 8 33
w2pcifw_add_error_log()
A
49 8 31
W2PCIFW_Field::get_field()
A
54 8 19
w2pcifw_start_sync()
A
44 6 48
W2PCIFW_Order::get_orders()
A
41 5 62
w2pcifw_get_applocalizer()
S
44 6 44
w2pcifw_get_orders()
S
47 6 38
w2pcifw_guest_checkout_notification()
S
54 7 23
W2PCIFW_Order::get_state()
S
54 7 20
w2pcifw_get_customer_id_from_order_id()
S
54 7 20
w2pcifw_is_logic_block_value()
S
56 7 18
w2pcifw_get_api_domain()
S
59 7 14
W2PCIFW_Query::is_valid()
S
51 6 28
w2pcifw_create_or_update_order_from_api()
S
51 6 26
W2PCIFW_Order::get_data()
S
46 5 39
W2PCIFW_Query::update_source_target_id()
S
52 6 24
w2pcifw_format_variables()
S
52 6 23
W2PCIFW_User::is_new_user()
S
53 6 21
w2pcifw_send_query()
S
44 4 51
w2pcifw_get_w2pcifw_value()
S
54 6 20
W2PCIFW_Query::add_traceback()
S
49 5 32
w2pcifw_get_auth_key()
S
59 6 14
save_w2pcifw_pipedrive_custom_user_profile_fields()
S
58 6 14
w2pcifw_http_request()
S
46 4 42
w2pcifw_decrypt()
S
53 5 22
W2PCIFW_Query::get_last_error()
S
59 5 14
w2pcifw_handle_cart_updated()
S
50 4 28
w2pcifw_json_to_array()
S
56 4 19
w2pcifw_format_logic_blocks()
S
56 4 18
w2pcifw_encrypt()
S
56 4 17
w2pcifw_get_current_checkout_order_id()
S
58 4 16
w2pcifw_pipedrive_custom_user_profile_fields()
S
52 3 30
w2pcifw_maybe_json_decode()
S
59 4 14
w2pcifw_generate_encryption_key()
S
60 4 14
W2PCIFW_Query::cancel_previous_query()
S
53 3 24
W2PCIFW_Order::get_products()
S
52 3 24
w2pcifw_get_users_metakey()
S
56 3 19
w2pcifw_json_encode()
S
58 3 16
w2pcifw_jwt_token()
S
64 4 10
w2pcifw_get_pipedrive_domain()
S
66 4 8
w2pcifw_is_sync_running()
S
63 4 10
W2PCIFW_Query::can_be_sent()
S
77 4 3
W2PCIFW_Query::increment_error()
S
59 3 15
W2PCIFW_Field::get_data()
S
63 4 10
w2pcifw_check_last_woocommerce_update_order_handler()
S
59 3 14
W2PCIFW_Order::__construct()
S
59 3 14
w2pcifw_restore_parameters()
S
52 2 28
w2pcifw_get_queries()
S
53 2 25
w2pcifw_get_sync_progress()
S
52 2 24
W2PCIFW_Query::create_query()
S
54 2 20
W2PCIFW_Query::get_user_data()
S
58 2 16
W2PCIFW_Query::get_user_id()
S
63 3 10
w2pcifw_get_pipedrive_api_key()
S
70 3 6
w2pcifw_get_api_key()
S
70 3 6
w2pcifw_find_reference_hook()
S
68 3 8
W2PCIFW_Query::get_method()
S
65 3 9
w2pcifw_check_api_key()
S
69 3 6
w2pcifw_init_plugin()
S
57 1 22
W2PCIFW_User::get_firstName()
S
65 2 9
w2pcifw_plugin_desactivate_cron()
S
69 2 7
W2PCIFW_Query::is_savable()
S
76 2 4
w2pcifw_plugin_activate_cron()
S
70 2 6
W2PCIFW_User::get_lastName()
S
65 2 9
W2PCIFW_User::get_company()
S
63 2 10
w2pcifw_is_local_environment()
S
73 2 4
W2PCIFW_Query::__construct()
S
69 2 7
W2PCIFW_User::__construct()
S
66 2 8
W2PCIFW_User::update_meta_key()
S
65 2 8
w2pcifw_get_encryption_key()
S
64 2 10
W2PCIFW_Query::__destruct()
S
75 2 5
W2PCIFW_Query::get_data()
S
59 1 14
W2PCIFW_User::get_organization_queries()
S
62 1 12
W2PCIFW_Query::data_for_w2p()
S
62 1 12
W2PCIFW_User::get_person_queries()
S
64 1 11
w2pcifw_add_main_menu_link()
S
66 1 10
w2pcifw_decrypt_key()
S
77 1 3
W2PCIFW_Query::update_additionnal_data()
S
72 1 5
w2pcifw_is_woocomerce_active()
S
81 1 3
w2pcifw_incremente_additional_data()
S
72 1 5
w2pcifw_update_additional_data()
S
72 1 5
w2pcifw_compare_arrays()
S
81 1 3
w2pcifw_reset_sync_options()
S
71 1 6
W2PCIFW_Query::cancel()
S
73 1 5
W2PCIFW_Field::__construct()
S
81 1 3
w2pcifw_get_meta_key()
S
79 1 3
w2pcifw_encrypt_key()
S
77 1 3
w2pcifw_run_sync()
S
70 1 6
w2pcifw_custom_cron_schedules()
S
69 1 7
w2pcifw_add_settings_link()
S
72 1 5
W2PCIFW_Query::resset_traceback()
S
80 1 3
w2pcifw_get_parameters_api()
S
74 1 4