FG_Magento_to_WooCommerce_Admin D

Total Complexity 542
Dependencies 7
Dependents 1
Total lines 4,001
Lines of code 2,455
Logical lines of code 1,406
Comment lines 1,148
Methods 135
Properties 32

Methods 135

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