PP_Roles D

Total Complexity 143
Dependencies 7
Dependents 0
Total lines 1,065
Lines of code 643
Logical lines of code 307
Comment lines 205
Methods 34
Properties 3

Methods 34

Method Rating Maintainability Complexity Lines of code
convertLegacyPostFollowingUserGroupsToRoles()
B
40 16 64
handle_add_role()
A
41 13 57
handle_edit_role()
A
42 13 47
render_admin_page()
A
40 12 57
enqueue_admin_scripts()
A
41 8 66
action_profile_update()
A
53 10 21
handle_delete_role()
A
49 8 28
getLegacyUserGroups()
A
47 7 37
convertUserGroupToRole()
S
57 6 17
init()
S
51 5 25
isUserGroupMigrationScheduled()
S
61 5 12
getLink()
S
58 4 16
configureTwig()
S
50 1 37
getUsersRoles()
S
65 3 10
cleanupUserGroups()
S
65 3 9
filter_admin_menu_slug()
S
70 3 6
convertLegacyUserGroupsToRoles()
S
67 3 8
action_admin_menu_page()
S
62 2 12
migrateUserGroupsToRoles()
S
61 2 12
__construct()
S
54 1 21
scheduleUserGroupMigration()
S
64 2 10
upgrade()
S
71 2 6
install()
S
73 2 6
wasPublishPressInstalledBefore()
S
67 2 8
action_admin_submenu()
S
62 1 12
addRole()
S
79 1 3
removeUserGroup()
S
80 1 3
getUserById()
S
79 1 3
getRole()
S
80 1 3
convertLegacyPostFollowingUser()
S
74 1 4
addCapabilitiesToAdmin()
S
76 1 4
showAdminNoticeMigrationFinished()
S
72 1 7
showAdminNoticeMigrationScheduled()
S
68 1 10
register_settings()
S
91 1 2