Code Analysis: Safe SVG 2.1.0

Function Rating Maintainability Complexity Lines of code
SafeSvg\safe_svg::svg_dimensions()
B
43 17 45
SafeSvg\safe_svg::skip_svg_regeneration()
A
44 7 46
SafeSvg\safe_svg::get_image_tag_override()
S
51 7 24
SafeSvg\safe_svg::fix_admin_preview()
S
48 6 35
SafeSvg\safe_svg::check_for_svg()
S
57 6 17
SafeSvg\safe_svg::sanitize()
S
55 5 21
SafeSvg\safe_svg::fix_mime_type_svg()
S
58 5 15
render_block_callback()
S
53 3 25
SafeSvg\safe_svg::str_ends_with()
S
63 4 10
SafeSvg\safe_svg::one_pixel_fix()
S
61 3 13
SafeSvg\safe_svg::disable_srcset()
S
70 3 6
blocks_styles()
S
53 1 25
SafeSvg\safe_svg::__construct()
S
56 1 16
SafeSvg\safe_svg::is_gzipped()
S
67 2 7
SafeSvg\safe_svg::metadata_error_fix()
S
69 2 7
SafeSvg\safe_svg::featured_image_fix()
S
68 2 7
register()
S
63 1 11
blocks_categories()
S
65 1 11
SafeSvg\safe_svg::setup_blocks()
S
80 1 3
SafeSvg\SafeSvgTags\safe_svg_tags::getTags()
S
79 1 3
register_blocks()
S
76 1 4
SafeSvg\safe_svg::load_custom_admin_style()
S
78 1 3
setup()
S
66 1 8
SafeSvg\SafeSvgAttr\safe_svg_attributes::getAttributes()
S
79 1 3
SafeSvg\safe_svg::allow_svg()
S
73 1 5