Image_Watermark D

Total Complexity 256
Dependencies 1
Dependents 1
Total lines 1,456
Lines of code 786
Logical lines of code 535
Comment lines 372
Methods 39
Properties 9

Methods 39

Method Rating Maintainability Complexity Lines of code
bulk_admin_notices()
B
43 22 36
watermark_action_ajax()
B
45 21 33
watermark_bulk_action()
B
40 19 53
apply_watermark()
B
42 18 41
save_image_metadata()
B
42 16 48
handle_upload_files()
B
47 17 31
calculate_image_coordinates()
A
44 11 47
check_imagick()
A
59 11 11
__construct()
A
43 8 46
do_watermark()
A
43 8 46
check_extensions()
A
54 9 21
update_plugin()
A
50 8 28
get_image_metadata()
A
51 8 25
add_watermark_image()
S
49 7 29
wp_enqueue_scripts()
S
57 8 14
attachment_fields_to_edit()
S
51 6 26
admin_enqueue_scripts()
S
42 4 50
get_image_resource()
S
55 6 20
remove_watermark()
S
55 5 18
calculate_watermark_dimensions()
S
56 4 18
plugin_settings_link()
S
61 4 11
save_image_file()
S
62 4 11
admin_print_scripts()
S
56 3 22
do_backup()
S
57 3 16
plugin_extend_links()
S
62 3 11
check_gd()
S
72 3 5
folder_writable_admin_notice()
S
66 3 9
resize()
S
62 2 10
deactivate_watermark()
S
75 2 4
instance()
S
73 2 5
delete_attachment()
S
68 2 7
get_safe_chunk()
S
71 2 6
get_image_backup_filepath()
S
80 1 3
get_image_backup_folder_location()
S
70 1 6
get_image_filename()
S
80 1 3
activate_watermark()
S
74 1 4
imagecopymerge_alpha()
S
68 1 6
load_textdomain()
S
77 1 3
wp_enqueue_media()
S
77 1 3