WC_Facebookcommerce_Integration D

Total Complexity 325
Dependencies 28
Dependents 1
Total lines 2,881
Lines of code 1,467
Logical lines of code 748
Comment lines 967
Methods 97
Properties 10

Methods 97

Method Rating Maintainability Complexity Lines of code
__construct()
C
30 20 133
on_product_save()
B
40 22 59
sync_facebook_products_using_background_processor()
A
36 12 90
update_fb_visibility()
A
47 11 36
load_assets()
A
39 8 79
on_variable_product_publish()
A
51 9 27
on_simple_product_publish()
A
49 7 36
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
47 6 38
get_product_group_default_variation()
S
47 6 38
get_product_fbid()
S
49 6 34
maybe_display_facebook_api_messages()
S
50 6 32
update_product_group()
S
46 5 44
on_product_delete()
S
61 7 11
load_aam_settings_of_pixel()
S
53 6 23
init_pixel()
S
54 5 23
delete_fb_product()
S
53 5 23
ajax_fb_background_check_queue()
S
49 4 33
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 35
get_sample_product_feed()
S
49 3 30
ajax_woo_adv_bulk_edit_compat()
S
63 5 9
create_or_update_product_set_item()
S
60 4 14
on_product_publish()
S
63 4 11
ajax_display_test_result()
S
53 3 23
allow_full_batch_api_sync()
S
56 3 22
create_product_group()
S
55 3 22
get_existing_fbid()
S
58 3 19
update_product_item()
S
57 3 18
sync_facebook_products()
S
57 3 17
ajax_reset_single_fb_product()
S
60 3 14
find_variation_product_item_ids()
S
60 3 13
load_background_sync_process()
S
62 3 12
create_product_simple()
S
63 3 11
create_product_item()
S
57 2 19
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
get_js_sdk_version()
S
67 3 7
update_pixel_install_time()
S
72 3 5
checks()
S
70 3 6
get_upload_id()
S
67 3 7
wp_all_import_compat()
S
67 3 7
remove_resync_message()
S
69 3 6
get_feed_id()
S
67 3 7
ajax_delete_fb_product()
S
61 2 12
get_product_description_mode()
S
62 2 11
sanitize_facebook_credential()
S
78 2 3
is_configured()
S
79 2 3
get_messenger_greeting_max_characters()
S
71 2 5
get_product_variation_attributes()
S
66 2 8
is_feed_migrated()
S
68 2 7
admin_options()
S
64 2 10
delete_product_item()
S
65 2 10
delete_product_group()
S
68 2 7
reset_single_product()
S
65 2 9
get_removed_from_sync_products_to_delete()
S
68 2 7
delete_post_meta_loop()
S
69 2 7
product_should_be_synced()
S
68 2 8
delete_on_out_of_stock()
S
67 2 8
ajax_fb_toggle_visibility()
S
80 1 3
get_message_html()
S
67 1 8
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
display_error_message()
S
75 1 4
remove_sticky_message()
S
81 1 3
is_legacy_feed_file_generation_enabled()
S
79 1 3
display_sticky_message()
S
68 1 8
display_info_message()
S
68 1 8
display_success_message()
S
68 1 8
fb_duplicate_product_reset_meta()
S
73 1 5
get_product_count()
S
76 1 4
ajax_check_feed_upload_status()
S
67 1 8
delete_product_set_item()
S
75 1 4
is_messenger_enabled()
S
77 1 3
display_out_of_sync_message()
S
67 1 9
is_product_sync_enabled()
S
77 1 3
is_advanced_matching_enabled()
S
78 1 3
update_js_sdk_version()
S
75 1 4
update_upload_id()
S
75 1 4
update_feed_id()
S
75 1 4
update_external_merchant_settings_id()
S
75 1 4
update_product_catalog_id()
S
75 1 4
get_messenger_color_hex()
S
77 1 3
get_messenger_greeting()
S
73 1 4
get_messenger_locale()
S
77 1 3
ajax_reset_all_fb_products()
S
69 1 7
get_excluded_product_tag_ids()
S
77 1 3
get_excluded_product_category_ids()
S
77 1 3
ajax_sync_all_fb_products()
S
73 1 5
get_facebook_page_id()
S
77 1 3
get_facebook_pixel_id()
S
77 1 3