WPRSS_Image_Cache B

Total Complexity 85
Dependencies 5
Dependents 1
Total lines 717
Lines of code 279
Logical lines of code 165
Comment lines 319
Methods 32
Properties 8

Methods 32

Method Rating Maintainability Complexity Lines of code
download_image()
A
41 12 60
generate_unique_file_name()
A
46 10 38
purge()
S
58 5 15
check_is_image()
S
58 4 15
set_current_time()
S
66 4 8
get_new_file()
S
62 4 10
normalize_time()
S
69 3 7
hash()
S
67 3 7
get_tmp_dir()
S
66 3 8
is_valid_url()
S
71 3 5
get_images()
S
67 3 8
normalize_path()
S
69 3 7
get_new_file_from_path()
S
66 3 8
check_image_expired()
S
72 2 5
get_expiration_time()
S
68 2 7
get_unique_filename()
S
73 2 5
instance()
S
73 2 5
get_current_time()
S
73 2 5
get_image_modification_time()
S
67 2 8
set_image_class_name()
S
77 1 4
get_image_class_name()
S
80 1 3
set_download_request_timeout()
S
76 1 4
get_download_request_timeout()
S
82 1 3
set_cache_orig_filename_length()
S
76 1 4
get_cache_orig_filename_length()
S
82 1 3
check_file_exists()
S
73 1 5
_get_file()
S
74 1 5
get_ttl()
S
82 1 3
_prepare_image()
S
77 1 4
_construct()
S
91 1 2
set_ttl()
S
73 1 5
__construct()
S
82 1 3