WC_Facebookcommerce_Integration D

Total Complexity 390
Dependencies 33
Dependents 2
Total lines 3,872
Lines of code 1,854
Logical lines of code 893
Comment lines 1,134
Methods 129
Properties 10

Methods 129

Method Rating Maintainability Complexity Lines of code
__construct()
C
27
23 161
on_product_save()
B
40 21 57
sync_facebook_products_using_background_processor()
B
34 12 109
load_assets()
A
38 8 85
update_fb_visibility()
A
47 11 36
sync_facebook_products_using_feed()
A
44 8 48
get_product_fbid()
A
45 8 46
on_variable_product_publish()
A
51 9 27
check_api_result()
A
47 8 39
fb_product_meta_box_html()
A
44 7 52
on_simple_product_publish()
A
49 7 37
ajax_check_feed_upload_status_v2()
S
46 6 41
get_variation_product_item_ids()
S
52 7 26
maybe_display_facebook_api_messages()
S
50 6 31
update_product_group()
S
47 5 43
load_aam_settings_of_pixel()
S
53 6 23
fb_change_product_published_status()
S
59 6 14
create_or_update_product_set_item()
S
52 5 26
on_product_delete()
S
61 6 11
delete_fb_product()
S
54 5 22
sync_facebook_products()
S
54 5 21
init_pixel()
S
55 5 21
ajax_fb_background_check_queue()
S
49 4 33
save_product_settings()
S
57 5 16
get_page()
S
57 5 16
on_quick_and_bulk_edit_save()
S
61 5 12
reset_all_products()
S
49 3 37
get_product_group_default_variation()
S
57 4 17
get_sample_product_feed()
S
49 3 30
ajax_woo_adv_bulk_edit_compat()
S
63 5 9
handle_scheduled_resync_action()
S
63 5 10
create_product_group()
S
53 3 27
on_product_publish()
S
63 4 11
ajax_display_test_result()
S
53 3 23
get_existing_fbid()
S
58 3 19
create_product_simple()
S
60 3 17
should_update_visibility_for_product_status_change()
S
77 4 3
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
schedule_resync()
S
60 3 12
create_product_item()
S
56 2 21
get_feed_id()
S
67 3 7
get_external_merchant_settings_id()
S
67 3 7
get_product_catalog_id()
S
67 3 7
get_pixel_install_time()
S
67 3 7
set_default_variant()
S
61 2 15
update_pixel_install_time()
S
72 3 5
checks()
S
70 3 6
get_js_sdk_version()
S
67 3 7
get_upload_id()
S
67 3 7
remove_resync_message()
S
70 3 6
display_error_message_from_result()
S
70 3 5
wp_all_import_compat()
S
67 3 7
ajax_delete_fb_product()
S
61 2 12
update_product_item()
S
63 2 12
get_product_description_mode()
S
63 2 11
delete_product_item()
S
65 2 11
fb_product_metabox()
S
55 1 23
get_product_variation_attributes()
S
66 2 8
get_messenger_greeting_max_characters()
S
71 2 5
get_page_name()
S
74 2 4
get_page_url()
S
74 2 4
admin_options()
S
67 2 9
delete_product_group()
S
68 2 7
sanitize_facebook_credential()
S
78 2 3
get_page_access_token()
S
70 2 5
is_configured()
S
79 2 3
is_feed_migrated()
S
68 2 7
sync_all_fb_products_using_feed()
S
67 2 8
product_should_be_synced()
S
68 2 8
get_removed_from_sync_products_to_delete()
S
68 2 7
delete_on_out_of_stock()
S
70 2 7
reset_single_product()
S
65 2 9
handle_generate_product_catalog_feed()
S
67 2 8
delete_post_meta_loop()
S
69 2 7
fb_wp_die()
S
75 2 5
get_message_html()
S
64 1 13
get_product_count()
S
63 1 11
is_legacy_feed_file_generation_enabled()
S
78 1 3
is_product_sync_enabled()
S
77 1 3
is_advanced_matching_enabled()
S
78 1 3
is_scheduled_resync_enabled()
S
76 1 4
is_messenger_enabled()
S
77 1 3
display_out_of_sync_message()
S
67 1 9
is_debug_mode_enabled()
S
77 1 3
fb_new_product_tab()
S
75 1 4
ajax_delete_fb_settings()
S
80 1 3
ajax_save_fb_settings()
S
80 1 3
fb_duplicate_product_reset_meta()
S
73 1 5
ajax_schedule_force_resync()
S
77 1 4
unschedule_resync()
S
79 1 3
is_resync_scheduled()
S
78 1 3
delete_product_set_item()
S
80 1 3
update_page_access_token()
S
75 1 4
update_js_sdk_version()
S
75 1 4
display_success_message()
S
68 1 8
display_error_message()
S
76 1 4
ajax_reset_all_fb_products()
S
69 1 7
ajax_sync_all_fb_products()
S
73 1 5
fb_render_product_columns()
S
79 1 3
fb_product_columns()
S
75 1 4
ajax_sync_all_fb_products_using_feed()
S
68 1 8
fb_new_product_tab_content()
S
79 1 3
ajax_fb_toggle_visibility()
S
80 1 3
init_form_fields()
S
80 1 3
process_admin_options()
S
80 1 3
remove_sticky_message()
S
82 1 3
display_sticky_message()
S
68 1 8
display_info_message()
S
68 1 8
display_warning_message()
S
68 1 8
get_graph_api()
S
82 1 3
ajax_check_feed_upload_status()
S
67 1 8
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_product_catalog_id()
S
75 1 4
update_external_merchant_settings_id()
S
75 1 4
update_feed_id()
S
75 1 4
update_upload_id()
S
75 1 4
on_product_trash()
S
80 1 3