WPBDP_CSV_Import D

Total Complexity 164
Dependencies 7
Dependents 1
Total lines 920
Lines of code 654
Logical lines of code 401
Comment lines 53
Methods 42
Properties 16

Methods 42

Method Rating Maintainability Complexity Lines of code
sanitize_and_validate_row()
C
33 27 91
import_row()
B
35 18 87
do_work()
A
43 11 50
set_header()
A
48 9 31
setup_working_dir()
A
48 7 32
prepare_categories()
S
51 7 27
insert_or_update_listing()
S
51 7 26
get_progress()
S
59 5 14
convert_to_date()
S
54 4 21
__construct()
S
56 4 18
add_payment_log()
S
57 4 16
upload_image()
S
59 4 14
get_listing_error()
S
61 4 13
state_load()
S
61 4 12
maybe_convert_encoding()
S
59 3 15
state_persist()
S
58 3 15
save_acceptance_date()
S
60 3 14
restore_state()
S
60 3 13
setup_settings()
S
54 2 21
save_thumbnail()
S
72 3 5
create_folders()
S
58 2 15
delete_non_images()
S
63 3 9
detect_encoding_from_header()
S
65 3 9
remove_bom()
S
65 3 9
get_setting()
S
78 2 3
get_current_line()
S
70 2 7
directory_path()
S
68 2 7
get_settings()
S
82 1 3
parse_header()
S
68 1 7
get_import_id()
S
82 1 3
read_header()
S
69 1 7
get_imported_rows_count()
S
82 1 3
cleanup()
S
81 1 3
done()
S
82 1 3
in_test_mode()
S
80 1 3
get_rejected_rows_count()
S
82 1 3
get_csv_file()
S
70 1 6
split_categories()
S
74 1 4
prepare_category_name()
S
69 1 6
get_header()
S
82 1 3
get_errors()
S
82 1 3
get_import_rows_count()
S
79 1 3