WPBDP_CSV_Import D

Total Complexity 158
Dependencies 7
Dependents 1
Total lines 895
Lines of code 629
Logical lines of code 393
Comment lines 52
Methods 37
Properties 16

Methods 37

Method Rating Maintainability Complexity Lines of code
import_row()
D
27
32 140
sanitize_and_validate_row()
C
33 27 89
do_work()
A
42 12 51
set_header()
A
49 9 29
setup_working_dir()
A
48 7 32
prepare_categories()
S
51 7 27
get_progress()
S
59 5 14
convert_to_date()
S
54 4 21
__construct()
S
56 4 18
upload_image()
S
59 4 14
state_load()
S
61 4 12
state_persist()
S
58 3 15
maybe_convert_encoding()
S
59 3 15
restore_state()
S
60 3 13
setup_settings()
S
54 2 21
create_folders()
S
59 2 15
delete_non_images()
S
63 3 9
detect_encoding_from_header()
S
65 3 9
remove_bom()
S
65 3 9
get_current_line()
S
67 2 8
directory_path()
S
68 2 7
get_setting()
S
78 2 3
split_categories()
S
74 1 4
get_csv_file()
S
76 1 4
prepare_category_name()
S
69 1 6
get_header()
S
82 1 3
get_imported_rows_count()
S
82 1 3
get_import_id()
S
82 1 3
parse_header()
S
68 1 7
get_rejected_rows_count()
S
82 1 3
cleanup()
S
81 1 3
done()
S
82 1 3
in_test_mode()
S
80 1 3
get_import_rows_count()
S
79 1 3
get_errors()
S
82 1 3
get_settings()
S
82 1 3
read_header()
S
69 1 7