FG_Magento_to_WooCommerce_Admin D

Total Complexity 515
Dependencies 7
Dependents 1
Total lines 3,857
Lines of code 2,382
Logical lines of code 1,347
Comment lines 1,086
Methods 128
Properties 31

Methods 128

Method Rating Maintainability Complexity Lines of code
dispatch()
C
31 29 104
process_content_media_links()
C
33 29 84
import_media()
B
38 16 62
import_product_details()
B
38 16 62
import_category()
A
39 14 61
build_product_post()
A
40 14 55
import()
A
44 14 44
calculate_prices()
A
48 15 29
import_product_medias()
A
43 13 46
import_categories()
A
42 12 50
import_cms()
A
44 12 44
empty_database()
A
33 5 135
import_products()
A
45 11 41
get_attribute_values()
A
45 10 43
delete_woocommerce_data()
A
40 7 65
import_product()
A
49 9 27
insert_attachment()
A
45 8 40
ajax_importer()
A
51 8 24
import_media_from_content()
A
48 7 32
remote_copy()
S
51 7 25
add_post_media()
S
56 7 17
get_total_elements_count()
S
58 7 15
import_cms_article()
S
46 5 37
set_entity_types()
S
57 6 18
get_imported_magento_products()
S
50 5 30
set_manage_stock()
S
60 6 13
magento_connect()
S
53 5 19
magento_query()
S
57 5 17
update_categories_hierarchy()
S
56 5 17
test_database_connection()
S
53 4 22
restore_wp_terms()
S
54 4 22
column_exists()
S
54 4 20
get_stock()
S
55 4 20
table_exists()
S
54 4 20
create_unique_terms()
S
58 4 15
need_fix_image_orientation()
S
65 5 8
restore_wp_posts()
S
58 4 15
validate_form_info()
S
50 3 29
restore_wp_term_relationships()
S
58 4 14
set_product_visibility()
S
60 4 14
get_product_ids()
S
50 3 28
set_media_path()
S
60 4 12
magento_version()
S
62 4 11
guess_image_filename()
S
62 4 11
get_products_count()
S
54 3 20
get_default_tax_rate()
S
56 3 19
importer()
S
57 3 18
build_unique_slug()
S
59 3 15
fix_image_orientation()
S
64 4 9
get_attachment_from_name()
S
58 3 15
map_backorders_status()
S
65 4 9
get_default_website_id()
S
58 3 15
pre_import_check()
S
64 4 9
get_product_images()
S
51 2 29
terms_tax_count()
S
62 3 12
count_posts()
S
62 3 11
get_cms_articles()
S
52 2 25
get_category_ids()
S
55 2 20
get_database_info()
S
55 2 18
save_wp_terms()
S
56 2 18
get_category()
S
57 2 17
save_wp_posts()
S
57 2 17
get_product()
S
57 2 17
get_other_product_fields()
S
50 1 32
get_parent_category_id()
S
58 2 16
get_attribute_options_values()
S
58 2 16
get_attachment_ids()
S
66 3 9
get_product_categories()
S
59 2 15
display_admin_warning()
S
65 3 8
display_admin_error()
S
65 3 8
display_admin_notice()
S
65 3 8
pre_import()
S
58 2 15
get_magento_attributes()
S
59 2 15
get_magento_entity_type_codes()
S
60 2 14
get_core_config()
S
60 2 14
get_setup_module()
S
60 2 14
get_core_resource()
S
61 2 13
__construct()
S
60 2 12
get_cms_count()
S
60 2 12
get_imported_magento_posts()
S
62 2 11
get_term_metas_by_metakey_like()
S
62 2 11
get_categories_count()
S
62 2 11
get_term_metas_by_metakey()
S
62 2 11
get_users_by_meta_key()
S
62 2 11
convert_product_type()
S
63 2 11
enqueue_scripts()
S
55 1 18
add_help_tab()
S
58 1 16
optimize_database()
S
59 1 16
set_global_manage_stock()
S
71 2 6
process_content()
S
66 2 8
test_woocommerce_activation()
S
68 2 7
restore_links()
S
71 2 5
allow_backorders()
S
67 2 8
set_local_timezone()
S
71 2 6
display_notices()
S
71 2 5
create_woocommerce_product_visibilities()
S
62 1 14
display_admin_page()
S
58 1 14
save_wp_term_relationships()
S
61 1 13
get_magento_info()
S
61 1 11
get_imported_magento_customers()
S
80 1 3
init()
S
77 1 3
get_imported_magento_users()
S
80 1 3
replace_media_shortcodes()
S
75 1 4
display_media_count()
S
78 1 3
enqueue_styles()
S
77 1 3
get_wp_post_id_from_meta()
S
69 1 6
get_post_id_from_guid()
S
74 1 4
get_term_id_by_slug()
S
68 1 8
stop_import()
S
80 1 3
get_wp_product_id_from_magento_id()
S
75 1 4
get_option_names()
S
77 1 4
terms_count()
S
76 1 4
restore_wp_data()
S
75 1 5
get_plugin_name()
S
82 1 3
create_woocommerce_product_types()
S
65 1 10
save_plugin_options()
S
72 1 5
clean_cache()
S
75 1 4
delete_transient()
S
74 1 4
delete_var_prices_transient()
S
81 1 3
save_wp_data()
S
75 1 5
log()
S
78 1 3
help_options()
S
79 1 3
help_instructions()
S
79 1 3
remove_links()
S
74 1 4
get_imported_categories()
S
78 1 3
get_default_backorders()
S
72 1 5
empty_log_file()
S
80 1 3
import_stopped()
S
80 1 3