WC_Facebook_Product D

Total Complexity 196
Dependencies 11
Dependents 2
Total lines 1,211
Lines of code 749
Logical lines of code 389
Comment lines 248
Methods 37
Properties 10

Methods 37

Method Rating Maintainability Complexity Lines of code
prepare_product()
C
30 28 110
prepare_variants_for_group()
B
39 15 63
prepare_variants_for_item()
A
40 15 58
get_fb_description()
A
48 13 35
get_rich_text_description()
A
48 13 33
add_sale_price()
A
47 12 35
apply_enhanced_catalog_fields_from_attributes()
A
51 9 25
get_fb_brand()
A
52 8 25
get_all_image_urls()
A
49 7 31
build_checkout_url()
S
50 6 31
find_matching_product_variation()
S
52 6 26
get_gallery_urls()
S
55 5 21
__construct()
S
52 4 26
get_all_video_urls()
S
57 4 19
get_price_plus_tax()
S
58 4 16
get_grouped_product_option_names()
S
60 4 14
get_fb_mpn()
S
60 4 14
get_matched_attributes_for_product()
S
56 3 19
is_bookable_product()
S
77 4 3
update_visibility()
S
64 4 9
set_product_image()
S
63 3 11
get_use_parent_image()
S
66 3 8
set_price()
S
62 2 14
__call()
S
60 2 14
get_parent_image_id()
S
69 2 7
__get()
S
66 2 7
get_fb_price()
S
75 2 4
get_post_data()
S
69 2 7
exists()
S
78 2 3
set_use_parent_image()
S
68 1 8
set_fb_mpn()
S
66 1 10
set_fb_brand()
S
66 1 10
set_rich_text_description()
S
66 1 10
set_description()
S
67 1 9
get_additional_image_urls()
S
79 1 3
format_price_for_fb_items_batch()
S
74 1 4
get_facebook_specific_fields()
S
68 1 7