Code Analysis: Omnisend Email Marketing 1.5.3

Function Rating Maintainability Complexity Lines of code
Omnisend\Internal\ContactFactory::create_contact()
C
38 25 68
Omnisend\SDK\V1\Contact::to_array_for_event()
B
36 19 89
Omnisend\SDK\V1\Contact::to_array()
B
35 18 91
Omnisend_Core_Bootstrap::load_react()
B
36 16 91
Omnisend\Internal\Connection::omnisend_post_connection()
B
37 16 83
Omnisend\SDK\V1\Contact::validate()
B
42 17 48
Omnisend\SDK\V1\Event::validate()
A
52 11 24
Omnisend_Core_Bootstrap::admin_notices()
A
58 11 13
Omnisend\Internal\Sync::sync_contact()
A
47 9 36
Omnisend\Internal\V1\Client::save_contact()
A
44 7 47
Omnisend\Internal\V1\Client::create_contact()
A
44 7 46
Omnisend\SDK\V1\Event::to_array()
S
54 7 23
Omnisend\Internal\V1\Client::get_contact_by_email()
S
47 5 37
Omnisend\Internal\V1\Client::send_customer_event()
S
47 5 35
Omnisend\Internal\Connection::connect_with_omnisend_for_woo_plugin()
S
57 5 19
Omnisend\Internal\Connection::connect_store()
S
49 4 33
Omnisend\Internal\Connection::get_account_data()
S
55 4 21
Omnisend\Internal\Connection::display()
S
57 4 20
Omnisend\Internal\Connection::show_connection_view()
S
62 5 10
Omnisend\Internal\Options::set_landing_page_visited()
S
60 4 13
Omnisend\Internal\V1\Client::check_setup()
S
61 4 13
Omnisend_Core_Bootstrap::load()
S
51 3 27
Omnisend\Internal\Sync::sync_contacts()
S
54 3 23
Omnisend_Core_Bootstrap::show_notification_icon()
S
67 4 7
Omnisend_Core_Bootstrap::migrate_options()
S
66 4 8
Omnisend_Core_Bootstrap::hide_notices()
S
69 4 6
Omnisend_Core_Bootstrap::autoloader()
S
58 3 14
Omnisend\Internal\Connection::resolve_wordpress_settings()
S
62 3 11
Omnisend_Core_Bootstrap::add_admin_menu()
S
55 2 19
Omnisend\SDK\V1\Contact::set_id()
S
73 3 5
Omnisend\SDK\V1\Contact::add_custom_property()
S
66 3 9
Omnisend\SDK\V1\Contact::add_tag()
S
66 3 9
Omnisend\Internal\Sync::identify_user_by_id()
S
66 3 9
Omnisend\SDK\V1\Contact::set_email()
S
73 3 5
Omnisend_Core_Bootstrap::load_omnisend_admin_styles()
S
54 1 26
Omnisend_Core_Bootstrap::is_omnisend_woocommerce_plugin_connected()
S
77 2 3
Omnisend\Internal\Options::get_api_key()
S
75 2 4
Omnisend\Internal\Options::get_brand_id()
S
75 2 4
Omnisend\Internal\Options::set_api_key()
S
70 2 6
Omnisend\Internal\Options::set_brand_id()
S
70 2 6
Omnisend_Core_Bootstrap::omnisend_app_market()
S
68 2 8
Omnisend\Internal\Options::is_connected()
S
79 2 3
Omnisend\Internal\Options::get_landing_page_last_visit_time()
S
74 2 4
Omnisend\Internal\Options::get_landing_page_notification_state()
S
75 2 4
Omnisend\Internal\Snippet::add()
S
71 2 6
Omnisend\SDK\V1\Event::add_properties()
S
71 2 6
Omnisend\Internal\Utils::is_valid_custom_property_name()
S
78 2 3
Omnisend\Internal\Utils::is_valid_tag()
S
78 2 3
Omnisend_Core_Bootstrap::omnisend_register_connection_routes()
S
62 1 13
Omnisend\Internal\UserMetaData::mark_sync_error()
S
79 1 3
Omnisend\Internal\Snippet::set_contact_cookie_id()
S
71 1 5
Omnisend_Core_Bootstrap::omnisend_hostinger_discount_notice()
S
80 1 5
Omnisend\SDK\V1\Event::set_event_name()
S
81 1 3
Omnisend\SDK\V1\Omnisend::get_client()
S
76 1 3
Omnisend\SDK\V1\Event::set_contact()
S
81 1 3
Omnisend_Core_Bootstrap::cron_schedules()
S
68 1 7
Omnisend\Internal\UserMetaData::mark_sync_skipped()
S
79 1 3
Omnisend\SDK\V1\SaveContactResponse::__construct()
S
77 1 4
Omnisend\Internal\Utils::clean_up_custom_property_name()
S
74 1 4
Omnisend\Internal\Connection::show_connected_store_view()
S
80 1 3
Omnisend\Internal\Utils::clean_up_tag()
S
74 1 4
Omnisend_Core_Bootstrap::normalize_menu_title_to_suffix()
S
77 1 3
Omnisend\SDK\V1\SendCustomerEventResponse::__construct()
S
81 1 3
Omnisend_Core_Bootstrap::is_omnisend_woocommerce_plugin_active()
S
78 1 3
Omnisend\SDK\V1\SendCustomerEventResponse::get_wp_error()
S
82 1 3
Omnisend\SDK\V1\Contact::get_email()
S
82 1 3
Omnisend\SDK\V1\Event::set_origin()
S
81 1 3
Omnisend\SDK\V1\Contact::set_gender()
S
81 1 3
Omnisend\SDK\V1\Contact::get_gender()
S
82 1 3
Omnisend\SDK\V1\Contact::set_first_name()
S
81 1 3
Omnisend\SDK\V1\Contact::get_first_name()
S
82 1 3
Omnisend\SDK\V1\Contact::set_last_name()
S
81 1 3
Omnisend\SDK\V1\Contact::get_last_name()
S
82 1 3
Omnisend\SDK\V1\Contact::set_address()
S
81 1 3
Omnisend\SDK\V1\Contact::set_phone_consent()
S
81 1 3
Omnisend\SDK\V1\Contact::set_state()
S
81 1 3
Omnisend\SDK\V1\SaveContactResponse::get_wp_error()
S
82 1 3
Omnisend\Internal\V1\Client::__construct()
S
72 1 5
Omnisend\SDK\V1\Contact::set_country()
S
81 1 3
Omnisend\SDK\V1\SaveContactResponse::get_contact_id()
S
82 1 3
Omnisend\SDK\V1\Event::set_event_version()
S
81 1 3
Omnisend\SDK\V1\Contact::get_birthday()
S
82 1 3
Omnisend\SDK\V1\Contact::get_country()
S
82 1 3
Omnisend\SDK\V1\Contact::set_phone_unsubscriber()
S
81 1 3
Omnisend_Core_Bootstrap::load_omnisend_site_styles()
S
68 1 8
Omnisend\SDK\V1\GetContactResponse::__construct()
S
77 1 4
Omnisend\SDK\V1\Contact::set_email_subscriber()
S
81 1 3
Omnisend_Core_Bootstrap::uninstall()
S
81 1 3
Omnisend\SDK\V1\Contact::set_birthday()
S
81 1 3
Omnisend\SDK\V1\Omnisend::is_connected()
S
79 1 3
Omnisend\SDK\V1\Contact::set_phone()
S
81 1 3
Omnisend\SDK\V1\Contact::set_phone_opt_in()
S
77 1 4
Omnisend\Internal\Options::disconnect()
S
65 1 9
Omnisend\SDK\V1\Contact::set_email_unsubscriber()
S
81 1 3
Omnisend\SDK\V1\Contact::get_tags()
S
82 1 3
Omnisend\SDK\V1\Contact::set_city()
S
81 1 3
Omnisend\SDK\V1\Contact::get_city()
S
82 1 3
Omnisend\SDK\V1\Contact::set_postal_code()
S
81 1 3
Omnisend\SDK\V1\Contact::get_phone()
S
82 1 3
Omnisend\SDK\V1\Contact::set_email_consent()
S
81 1 3
Omnisend\SDK\V1\Contact::set_phone_subscriber()
S
81 1 3
Omnisend\Internal\Options::is_store_connected()
S
79 1 3
Omnisend\SDK\V1\CreateContactResponse::get_contact_id()
S
82 1 3
Omnisend\SDK\V1\Contact::get_postal_code()
S
82 1 3
Omnisend\Internal\Options::get_notification_delay_time()
S
80 1 3
Omnisend\Internal\Options::is_landing_page_visited()
S
79 1 3
Omnisend\SDK\V1\Contact::get_phone_status()
S
82 1 3
Omnisend\SDK\V1\Contact::get_address()
S
82 1 3
Omnisend\SDK\V1\Contact::get_email_status()
S
82 1 3
Omnisend\SDK\V1\CreateContactResponse::get_wp_error()
S
82 1 3
Omnisend_Core_Bootstrap::is_hostinger_plugin_active()
S
78 1 3
Omnisend\SDK\V1\GetContactResponse::get_wp_error()
S
82 1 3
Omnisend\Internal\Options::set_store_connected()
S
79 1 3
Omnisend\Internal\Options::delete_all()
S
80 1 3
Omnisend\Internal\UserMetaData::mark_synced()
S
78 1 3
Omnisend\SDK\V1\Contact::get_state()
S
82 1 3
Omnisend\SDK\V1\GetContactResponse::get_contact()
S
82 1 3
Omnisend_Core_Bootstrap::add_links_in_plugin_settings()
S
64 1 10
Omnisend\SDK\V1\Contact::get_custom_properties()
S
82 1 3
Omnisend\SDK\V1\Contact::set_email_opt_in()
S
77 1 4
Omnisend\SDK\V1\CreateContactResponse::__construct()
S
77 1 4
Omnisend\SDK\V1\Contact::set_welcome_email()
S
81 1 3