Code Analysis: Pattern Manager 0.1.8

Function Rating Maintainability Complexity Lines of code
format_pattern_data()
A
38 12 79
save_metadata_to_pattern_file()
A
48 8 36
move_block_images_to_theme()
A
44 7 45
register_pattern_post_type()
A
35 1 134
tree_shake_theme_images()
A
48 7 32
get_theme_patterns_with_editor_links()
S
51 6 28
get_duplicate_pattern_ids()
S
59 5 14
redirect_pattern_actions()
S
60 5 14
get_metadata_from_pattern_file()
S
62 5 11
save_pattern_to_file()
S
53 4 26
enqueue_meta_fields_in_editor()
S
48 3 34
populate_pattern_from_file()
S
61 4 14
get_wp_filesystem_api()
S
59 4 14
get_new_pattern_number()
S
61 4 12
mock_pattern_preview_post_object()
S
42 1 56
add_post_id_to_block_context()
S
61 4 11
display_block_pattern_preview()
S
53 3 25
register_routes()
S
45 1 52
include_custom_modules()
S
62 3 11
get_theme_patterns()
S
63 3 11
duplicate_pattern()
S
54 2 24
pattern_manager_app()
S
54 2 22
after_pattern_preview()
S
57 2 22
construct_pattern_php_file_contents()
S
53 2 22
before_pattern_preview()
S
57 2 22
get_pattern_by_path()
S
56 2 18
delete_pattern_posts()
S
66 3 9
get_default_title()
S
72 3 5
update_pattern()
S
58 2 15
delete_pattern()
S
67 3 7
update_dismissed_themes()
S
61 2 12
delete_pattern()
S
62 2 11
get_pattern_names()
S
64 2 11
get_dismissed_themes()
S
74 2 4
check_version_control_notice_should_show()
S
78 2 3
hide_admin_notices()
S
73 2 5
get_pattern_by_name()
S
71 2 6
get_new_pattern_title()
S
74 2 4
disable_autosave()
S
72 2 6
short_circuit_unique_slug()
S
74 2 5
add_active_theme_to_heartbeat()
S
67 2 8
edit_pattern()
S
62 1 14
get_pattern_defaults()
S
61 1 14
get_app_state()
S
59 1 14
get_post_id_with_comment()
S
63 1 12
pattern_manager_admin_menu_page()
S
64 1 11
get_pattern_post_type()
S
83 1 3
get_version_control_meta_key()
S
83 1 3
get_pattern_path()
S
80 1 3
before_pattern_preview_wp_head()
S
82 1 3
check_for_version_control_in_theme()
S
80 1 3
get_pattern_file_paths()
S
80 1 3
permission_check()
S
81 1 3
module_dir_path()
S
74 1 4
check_theme_name_dismissed()
S
79 1 3
remove_theme_name_from_template_parts()
S
77 1 3
get_pm_post_ids()
S
65 1 10
module_dir_url()
S
75 1 4
get_patterns_directory()
S
80 1 3
get_pattern_names()
S
69 1 8
module_data()
S
71 1 6