WC_Facebookcommerce_Integration D

Total Complexity 373
Dependencies 28
Dependents 2
Total lines 3,663
Lines of code 1,717
Logical lines of code 830
Comment lines 1,127
Methods 122
Properties 10

Methods 122

Method Rating Maintainability Complexity Lines of code
__construct()
C
28
23 151
on_product_save()
B
40 22 57
sync_facebook_products_using_background_processor()
B
34 12 109
load_assets()
A
38 8 85
update_fb_visibility()
A
47 11 36
get_product_fbid()
A
45 8 46
on_variable_product_publish()
A
51 9 27
check_api_result()
A
47 8 39
on_simple_product_publish()
A
49 7 37
fb_change_product_published_status()
A
54 8 21
get_variation_product_item_ids()
S
52 7 26
ajax_check_feed_upload_status_v2()
S
46 6 41
get_product_group_default_variation()
S
47 6 37
maybe_display_facebook_api_messages()
S
50 6 31
on_product_delete()
S
61 7 11
load_aam_settings_of_pixel()
S
53 6 23
create_or_update_product_set_item()
S
52 5 26
delete_fb_product()
S
53 5 23
update_product_group()
S
50 4 36
init_pixel()
S
55 5 21
ajax_fb_background_check_queue()
S
49 4 33
get_page()
S
57 5 16
save_product_settings()
S
57 5 16
should_update_visibility_for_product_status_change()
S
76 6 3
fb_restore_untrashed_variable_product()
S
60 5 13
on_quick_and_bulk_edit_save()
S
61 5 12
reset_all_products()
S
49 3 37
ajax_woo_adv_bulk_edit_compat()
S
63 5 9
get_sample_product_feed()
S
49 3 30
create_product_group()
S
53 3 27
on_product_publish()
S
63 4 11
ajax_display_test_result()
S
53 3 23
allow_full_batch_api_sync()
S
56 3 22
get_existing_fbid()
S
58 3 19
create_product_simple()
S
60 3 17
sync_facebook_products()
S
57 3 17
get_nux_message_ifexist()
S
52 2 29
ajax_reset_single_fb_product()
S
60 3 14
load_background_sync_process()
S
61 3 13
find_variation_product_item_ids()
S
60 3 13
create_product_item()
S
56 2 21
wp_all_import_compat()
S
67 3 7
display_error_message_from_result()
S
71 3 5
remove_resync_message()
S
70 3 6
get_upload_id()
S
67 3 7
set_default_variant()
S
61 2 15
get_product_catalog_id()
S
67 3 7
get_external_merchant_settings_id()
S
67 3 7
get_feed_id()
S
67 3 7
get_pixel_install_time()
S
67 3 7
get_js_sdk_version()
S
67 3 7
update_pixel_install_time()
S
72 3 5
checks()
S
70 3 6
ajax_delete_fb_product()
S
61 2 12
update_product_item()
S
63 2 12
delete_product_item()
S
65 2 11
get_product_description_mode()
S
63 2 11
is_feed_migrated()
S
68 2 7
delete_on_out_of_stock()
S
67 2 8
get_product_variation_attributes()
S
66 2 8
product_should_be_synced()
S
68 2 8
get_page_name()
S
74 2 4
get_page_url()
S
74 2 4
get_page_access_token()
S
70 2 5
admin_options()
S
67 2 9
get_removed_from_sync_products_to_delete()
S
68 2 7
delete_product_group()
S
68 2 7
get_messenger_greeting_max_characters()
S
71 2 5
is_configured()
S
79 2 3
fb_wp_die()
S
75 2 5
reset_single_product()
S
65 2 9
sanitize_facebook_credential()
S
78 2 3
delete_post_meta_loop()
S
69 2 7
get_message_html()
S
64 1 13
is_legacy_feed_file_generation_enabled()
S
78 1 3
is_scheduled_resync_enabled()
S
76 1 4
is_product_sync_enabled()
S
77 1 3
is_advanced_matching_enabled()
S
78 1 3
is_messenger_enabled()
S
77 1 3
display_out_of_sync_message()
S
67 1 9
is_debug_mode_enabled()
S
77 1 3
is_new_style_feed_generation_enabled()
S
79 1 3
are_headers_requested_for_debug()
S
79 1 3
get_product_count()
S
76 1 4
fb_duplicate_product_reset_meta()
S
73 1 5
get_graph_api()
S
82 1 3
fb_render_product_columns()
S
79 1 3
fb_product_columns()
S
75 1 4
fb_new_product_tab_content()
S
79 1 3
fb_new_product_tab()
S
75 1 4
update_js_sdk_version()
S
75 1 4
update_product_catalog_id()
S
75 1 4
update_upload_id()
S
75 1 4
ajax_save_fb_settings()
S
80 1 3
remove_sticky_message()
S
82 1 3
ajax_reset_all_fb_products()
S
69 1 7
display_sticky_message()
S
68 1 8
display_info_message()
S
68 1 8
ajax_sync_all_fb_products()
S
73 1 5
display_warning_message()
S
68 1 8
display_success_message()
S
68 1 8
ajax_fb_toggle_visibility()
S
80 1 3
init_form_fields()
S
80 1 3
process_admin_options()
S
80 1 3
ajax_check_feed_upload_status()
S
67 1 8
ajax_delete_fb_settings()
S
80 1 3
delete_product_set_item()
S
80 1 3
update_feed_id()
S
75 1 4
get_facebook_page_id()
S
77 1 3
get_facebook_pixel_id()
S
77 1 3
is_use_s2s_enabled()
S
81 1 3
get_access_token()
S
81 1 3
get_excluded_product_category_ids()
S
78 1 3
get_excluded_product_tag_ids()
S
78 1 3
get_scheduled_resync_offset()
S
80 1 3
get_messenger_locale()
S
77 1 3
get_messenger_greeting()
S
72 1 4
get_messenger_color_hex()
S
77 1 3
update_page_access_token()
S
75 1 4
display_error_message()
S
76 1 4
update_external_merchant_settings_id()
S
75 1 4
on_product_trash()
S
80 1 3