FG_PrestaShop_to_WooCommerce_Admin D

Total Complexity 580
Dependencies 8
Dependents 1
Total lines 4,160
Lines of code 2,602
Logical lines of code 1,537
Comment lines 1,146
Methods 133
Properties 30

Methods 133

Method Rating Maintainability Complexity Lines of code
import_product()
D
26
34 136
dispatch()
D
28
32 121
process_content_media_links()
C
33 30 82
calculate_special_price()
C
41 28 48
import_media()
B
37 17 65
calculate_prices()
A
45 16 40
import()
A
42 15 48
import_products()
A
42 13 50
import_cms_articles()
A
41 12 53
import_cms_categories()
A
43 12 48
import_product_categories()
A
43 11 50
empty_database()
A
33 5 134
import_cms_article()
A
42 10 50
import_product_category()
A
48 10 31
ajax_importer()
A
50 10 25
insert_attachment()
A
46 8 39
get_products()
A
41 7 54
import_media_from_content()
A
48 8 33
get_cms_articles()
A
43 6 52
import_product_category_thumbnails()
A
56 8 16
get_all_product_categories()
S
44 6 43
get_specific_prices()
S
47 6 36
url_exists()
S
47 6 35
add_post_media()
S
56 7 17
get_total_elements_count()
S
57 7 16
delete_woocommerce_data()
S
44 5 45
get_cms_categories_count()
S
51 6 24
get_cms_categories()
S
47 5 36
guess_import_media()
S
56 6 18
get_prestashop_version()
S
56 6 17
get_products_categories_count()
S
51 5 27
build_image_filenames()
S
52 5 23
get_cms_articles_count()
S
53 5 22
get_customers_count()
S
54 5 21
prestashop_connect()
S
54 5 18
import_cms_category()
S
55 5 17
test_database_connection()
S
52 4 23
restore_wp_terms()
S
54 4 22
column_exists()
S
54 4 20
table_exists()
S
54 4 20
get_employees_count()
S
55 4 19
validate_form_info()
S
48 3 33
recount_terms()
S
57 4 17
prestashop_query()
S
57 4 16
restore_wp_posts()
S
58 4 15
create_unique_terms()
S
58 4 15
restore_wp_term_relationships()
S
58 4 14
set_product_visibility()
S
60 4 14
get_product_images()
S
51 3 28
get_attachment_ids()
S
62 4 12
get_product_stock()
S
54 3 22
importer()
S
56 3 20
get_default_tax_rate()
S
55 3 20
get_product_supplier_reference()
S
57 3 17
upload_dir()
S
56 3 16
get_configuration()
S
58 3 16
get_root_category()
S
59 3 15
pre_import_check()
S
64 4 9
convert_zero_date()
S
67 4 7
get_attachment_from_name()
S
58 3 15
terms_tax_count()
S
60 3 14
get_shops_count()
S
59 3 14
get_sku()
S
60 3 14
count_posts()
S
62 3 11
get_database_info()
S
53 2 22
save_wp_terms()
S
56 2 18
save_wp_posts()
S
57 2 17
get_product_tags()
S
58 2 17
pre_import()
S
56 2 17
display_admin_notice()
S
65 3 8
display_admin_error()
S
65 3 8
allow_backorders()
S
66 3 8
display_admin_warning()
S
65 3 8
import_tags()
S
66 3 8
import_configuration()
S
62 3 10
__construct()
S
59 2 14
get_products_count()
S
62 2 11
get_term_metas_by_metakey()
S
62 2 11
get_users_by_meta_key()
S
62 2 11
get_imported_ps_posts()
S
62 2 11
get_prestashop_info()
S
54 1 19
enqueue_scripts()
S
54 1 19
add_help_tab()
S
58 1 16
optimize_database()
S
59 1 16
set_local_timezone()
S
71 2 6
get_log_filename()
S
63 2 10
process_content()
S
66 2 8
rename_old_log_file()
S
69 2 6
get_sql_mode()
S
64 2 10
get_orders_count()
S
64 2 10
test_woocommerce_activation()
S
68 2 7
display_notices()
S
71 2 5
restore_links()
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_product_categories()
S
63 1 11
log()
S
78 1 3
empty_log_file()
S
80 1 3
get_imported_categories()
S
78 1 3
remove_links()
S
74 1 4
get_wp_term_id_from_meta()
S
69 1 6
init()
S
77 1 3
remote_copy()
S
79 1 3
enqueue_styles()
S
77 1 3
terms_count()
S
76 1 4
display_media_count()
S
78 1 3
get_plugin_name()
S
82 1 3
get_wp_product_id_from_prestashop_id()
S
74 1 4
get_wp_term_ids_from_meta()
S
69 1 6
help_options()
S
79 1 3
get_post_id_from_guid()
S
74 1 4
remove_filters()
S
70 1 6
get_imported_prestashop_employees()
S
80 1 3
get_imported_prestashop_customers()
S
80 1 3
get_imported_products()
S
79 1 3
get_imported_cms_categories()
S
78 1 3
clean_cache()
S
75 1 4
create_woocommerce_product_types()
S
67 1 9
import_stopped()
S
80 1 3
stop_import()
S
80 1 3
save_plugin_options()
S
72 1 5
get_wp_post_ids_from_meta()
S
69 1 6
delete_transient()
S
73 1 4
delete_var_prices_transient()
S
81 1 3
restore_wp_data()
S
75 1 5
save_wp_data()
S
75 1 5
get_imported_manufacturers()
S
78 1 3
help_instructions()
S
79 1 3
get_option_names()
S
77 1 4
format_filename()
S
70 1 6
get_wp_post_id_from_meta()
S
69 1 6
import_cms()
S
78 1 4