Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
MediaWiki\Extension\CampaignEvents\Database\CampaignsDatabaseHelper0%
MediaWiki\Extension\CampaignEvents\Questions\EventAggregatedAnswers0%
MediaWiki\Extension\CampaignEvents\MWEntity\UnexpectedVirtualNamespaceException0%
MediaWiki\Extension\CampaignEvents\MWEntity\UserLinker0%
MediaWiki\Extension\CampaignEvents\Messaging\EmailUsersJob0%
MediaWiki\Extension\CampaignEvents\Notifications\RegistrationNotificationPresentationModel0%
MediaWiki\Extension\CampaignEvents\Notifications\UserNotifier0%
MediaWiki\Extension\CampaignEvents\Organizers\Organizer0%
MediaWiki\Extension\CampaignEvents\Pager\EventsListPager0%
MediaWiki\Extension\CampaignEvents\Pager\EventsPagerFactory0%
MediaWiki\Extension\CampaignEvents\Pager\EventsTablePager0%
MediaWiki\Extension\CampaignEvents\Participants\Participant0%
MediaWiki\Extension\CampaignEvents\Questions\Answer0%
MediaWiki\Extension\CampaignEvents\Questions\InvalidAnswerDataException0%
MediaWiki\Extension\CampaignEvents\MWEntity\UnexpectedInterwikiException0%
MediaWiki\Extension\CampaignEvents\Special\ChangeRegistrationSpecialPageBase0%
MediaWiki\Extension\CampaignEvents\Special\SpecialAllEvents0%
MediaWiki\Extension\CampaignEvents\Special\SpecialCancelEventRegistration0%
MediaWiki\Extension\CampaignEvents\Special\SpecialDeleteEventRegistration0%
MediaWiki\Extension\CampaignEvents\Special\SpecialEditEventRegistration0%
MediaWiki\Extension\CampaignEvents\Special\SpecialEnableEventRegistration0%
MediaWiki\Extension\CampaignEvents\Special\SpecialEventDetails0%
MediaWiki\Extension\CampaignEvents\Special\SpecialMyEvents0%
MediaWiki\Extension\CampaignEvents\Special\SpecialRegisterForEvent0%
MediaWiki\Extension\CampaignEvents\TrackingTool\InvalidToolURLException0%
MediaWiki\Extension\CampaignEvents\Widget\TextWithIconWidget0%
MediaWiki\Extension\CampaignEvents\Pager\EventPagerTrait0%
MediaWiki\Extension\CampaignEvents\MWEntity\UnexpectedSectionAnchorException0%
MediaWiki\Extension\CampaignEvents\MWEntity\UserNotGlobalException0%
MediaWiki\Extension\CampaignEvents\MWEntity\PageNotFoundException0%
MediaWiki\Extension\CampaignEvents\Hooks\ResourceLoaderCallbacks0%
MediaWiki\Extension\CampaignEvents\FrontendModules\ClickwrapFormModule0%
MediaWiki\Extension\CampaignEvents\FrontendModules\EmailParticipantsModule0%
MediaWiki\Extension\CampaignEvents\FrontendModules\EventDetailsModule0%
MediaWiki\Extension\CampaignEvents\FrontendModules\EventDetailsParticipantsModule0%
MediaWiki\Extension\CampaignEvents\FrontendModules\FrontendModulesFactory0%
MediaWiki\Extension\CampaignEvents\FrontendModules\ResponseStatisticsModule0%
MediaWiki\Extension\CampaignEvents\Hooks\Handlers\EchoHooksHandler0%
MediaWiki\Extension\CampaignEvents\Event\InvalidEventDataException0%
MediaWiki\Extension\CampaignEvents\EventPage\EventPageDecorator0%
MediaWiki\Extension\CampaignEvents\Hooks\Handlers\SchemaChangesHandler0%
MediaWiki\Extension\CampaignEvents\Event\ExistingEventRegistration0%
MediaWiki\Extension\CampaignEvents\EventPage\EventPageDecoratorFactory0%
MediaWiki\Extension\CampaignEvents\MWEntity\InvalidTitleStringException0%
MediaWiki\Extension\CampaignEvents\MWEntity\CampaignsPageFormatter0%
MediaWiki\Extension\CampaignEvents\MWEntity\CentralUser0%
MediaWiki\Extension\CampaignEvents\MWEntity\CentralUserNotFoundException0%
MediaWiki\Extension\CampaignEvents\MWEntity\PageAuthorLookup0%
MediaWiki\Extension\CampaignEvents\MWEntity\HiddenCentralUserException0%
MediaWiki\Extension\CampaignEvents\MWEntity\MWPageProxy0%
MediaWiki\Extension\CampaignEvents\MWEntity\MWAuthorityProxy0%
MediaWiki\Extension\CampaignEvents\Special\AbstractEventRegistrationSpecialPage0%
MediaWiki\Extension\CampaignEvents\MWEntity\PageURLResolver22%
MediaWiki\Extension\CampaignEvents\Messaging\CampaignsUserMailer39%
MediaWiki\Extension\CampaignEvents\Hooks\Handlers\PageMoveAndDeleteHandler42%
MediaWiki\Extension\CampaignEvents\EventPage\EventPageCacheUpdater42%
MediaWiki\Extension\CampaignEvents\Event\PageEventLookup53%
MediaWiki\Extension\CampaignEvents\TrackingTool\TrackingToolRegistry54%
MediaWiki\Extension\CampaignEvents\PolicyMessagesLookup57%
MediaWiki\Extension\CampaignEvents\MWEntity\CampaignsCentralUserLookup60%
MediaWiki\Extension\CampaignEvents\MWEntity\CampaignsPageFactory64%
MediaWiki\Extension\CampaignEvents\Event\EventFactory78%
MediaWiki\Extension\CampaignEvents\Rest\FailStatusUtilTrait80%
MediaWiki\Extension\CampaignEvents\Rest\EmailUsersHandler81%
MediaWiki\Extension\CampaignEvents\Questions\EventQuestionsRegistry86%
MediaWiki\Extension\CampaignEvents\Rest\UpdateEventRegistrationHandler86%
MediaWiki\Extension\CampaignEvents\Permissions\PermissionChecker86%
MediaWiki\Extension\CampaignEvents\TrackingTool\TrackingToolUpdater86%
MediaWiki\Extension\CampaignEvents\Event\Store\EventStore88%
MediaWiki\Extension\CampaignEvents\Participants\UnregisterParticipantCommand89%
MediaWiki\Extension\CampaignEvents\Rest\SetOrganizersHandler89%

Project Risks

Class CRAP
MediaWiki\Extension\CampaignEvents\EventPage\EventPageDecorator8556
MediaWiki\Extension\CampaignEvents\Special\AbstractEventRegistrationSpecialPage7775
MediaWiki\Extension\CampaignEvents\FrontendModules\EventDetailsParticipantsModule4160
MediaWiki\Extension\CampaignEvents\Pager\EventsListPager1332
MediaWiki\Extension\CampaignEvents\FrontendModules\EventDetailsModule1332
MediaWiki\Extension\CampaignEvents\Pager\EventsTablePager812
MediaWiki\Extension\CampaignEvents\Special\SpecialRegisterForEvent650
MediaWiki\Extension\CampaignEvents\Notifications\RegistrationNotificationPresentationModel600
MediaWiki\Extension\CampaignEvents\FrontendModules\ResponseStatisticsModule552
MediaWiki\Extension\CampaignEvents\Special\SpecialEventDetails380
MediaWiki\Extension\CampaignEvents\Special\SpecialDeleteEventRegistration210
MediaWiki\Extension\CampaignEvents\Messaging\CampaignsUserMailer173
MediaWiki\Extension\CampaignEvents\MWEntity\PageURLResolver133
MediaWiki\Extension\CampaignEvents\Special\SpecialEditEventRegistration132
MediaWiki\Extension\CampaignEvents\Special\ChangeRegistrationSpecialPageBase132
MediaWiki\Extension\CampaignEvents\Event\EventFactory130
MediaWiki\Extension\CampaignEvents\Questions\EventQuestionsRegistry123
MediaWiki\Extension\CampaignEvents\TrackingTool\TrackingToolRegistry102
MediaWiki\Extension\CampaignEvents\Pager\EventPagerTrait90
MediaWiki\Extension\CampaignEvents\Special\SpecialCancelEventRegistration90
MediaWiki\Extension\CampaignEvents\MWEntity\UserLinker72
MediaWiki\Extension\CampaignEvents\MWEntity\MWAuthorityProxy56
MediaWiki\Extension\CampaignEvents\Event\Store\EventStore54
MediaWiki\Extension\CampaignEvents\MWEntity\CampaignsCentralUserLookup43
MediaWiki\Extension\CampaignEvents\Event\PageEventLookup42
MediaWiki\Extension\CampaignEvents\Special\SpecialAllEvents42
MediaWiki\Extension\CampaignEvents\MWEntity\PageAuthorLookup42
MediaWiki\Extension\CampaignEvents\Special\SpecialMyEvents42
MediaWiki\Extension\CampaignEvents\FrontendModules\ClickwrapFormModule30
MediaWiki\Extension\CampaignEvents\Messaging\EmailUsersJob30
MediaWiki\Extension\CampaignEvents\Permissions\PermissionChecker29
MediaWiki\Extension\CampaignEvents\Participants\UnregisterParticipantCommand22
MediaWiki\Extension\CampaignEvents\Hooks\Handlers\PageMoveAndDeleteHandler20
MediaWiki\Extension\CampaignEvents\Database\CampaignsDatabaseHelper20
MediaWiki\Extension\CampaignEvents\Notifications\UserNotifier20
MediaWiki\Extension\CampaignEvents\Questions\EventAggregatedAnswers20
MediaWiki\Extension\CampaignEvents\TrackingTool\TrackingToolUpdater19
MediaWiki\Extension\CampaignEvents\MWEntity\CampaignsPageFactory18
MediaWiki\Extension\CampaignEvents\Rest\EmailUsersHandler15
MediaWiki\Extension\CampaignEvents\Rest\SetOrganizersHandler14
MediaWiki\Extension\CampaignEvents\Rest\UpdateEventRegistrationHandler13
MediaWiki\Extension\CampaignEvents\MWEntity\CampaignsPageFormatter12
MediaWiki\Extension\CampaignEvents\Widget\TextWithIconWidget12
MediaWiki\Extension\CampaignEvents\EventPage\EventPageCacheUpdater9
MediaWiki\Extension\CampaignEvents\MWEntity\PageNotFoundException6
MediaWiki\Extension\CampaignEvents\Hooks\ResourceLoaderCallbacks6
MediaWiki\Extension\CampaignEvents\Rest\FailStatusUtilTrait2

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
getRegisteredAt0%
getPolicyMessageForRegistrationForm0%
getAggregationTimestamp0%
getFirstAnswerTimestamp0%
getAnswers0%
isPrivateRegistration0%
getParticipantID0%
getUser0%
getQuestionDBID0%
__construct0%
getSubqueryInfo0%
getModules0%
getModuleStyles0%
getCellAttrs0%
getTableClass0%
isFieldSortable0%
__construct0%
getOption0%
getIndexField0%
getQuestionName0%
alterForm0%
getParticipantQuestionsFields0%
getFormFields0%
outputErrorBox0%
execute0%
__construct0%
__construct0%
getText0%
dbIDToName0%
getQuestionOptionsForStats0%
getQuestionLabelForStats0%
__construct0%
getData0%
getQuestionData0%
addEntry0%
getDefaultSort0%
getFieldNames0%
onSubmit0%
makeLink0%
getOrganizerID0%
getRoles0%
getUser0%
__construct0%
notifyRegistration0%
__construct0%
getDBConnection0%
__construct0%
getPrimaryLink0%
gerOrganizersBodySection0%
getTypeBodySection0%
getDatesBodySection0%
getBodyMessage0%
getHeaderMessage0%
getSubjectMessage0%
getClickwrapAcceptance0%
getRow0%
formatValue0%
offsetTimestamp0%
__construct0%
newListPager0%
newTablePager0%
__construct0%
getDateRangeCond0%
buildQueryInfo0%
getSubqueryInfo0%
getDayFromTimestamp0%
getLimitSelectList0%
getMonthFromTimestamp0%
getYearFromTimestamp0%
getMeetingTypeMsg0%
getNavigationBar0%
getIndexField0%
formatRow0%
isHeaderRowNeeded0%
parseSubmittedTimezone0%
getTimezone0%
canRender0%
execute0%
addParticipantQuestionFields0%
getFormFields0%
getForm0%
__construct0%
getGroupName0%
showFormAndEvents0%
__construct0%
onSubmit0%
getGroupName0%
createTab0%
outputErrorBox0%
execute0%
__construct0%
getValidationFlags0%
getFormMessages0%
alterForm0%
onSuccess0%
getShowAlways0%
dbSyncStatusToConst0%
getEventPageFromRow0%
preprocessResults0%
getQueryInfo0%
getSubqueryInfo0%
__construct0%
getWikiIDString0%
syncStatusToDB0%
getShowAlways0%
__construct0%
getConfiguredPEDashboardData0%
__construct0%
logToolFailure0%
getExpectedBaseURL0%
__construct0%
__construct0%
__construct0%
getValidationFlags0%
getOrganizerUsernames0%
getDisplayFormat0%
showFormAndEvents0%
execute0%
__construct0%
getMessagePrefix0%
doesWrites0%
getGroupName0%
checkRegistrationPrecondition0%
__construct0%
execute0%
__construct0%
getMessagePrefix0%
doesWrites0%
getGroupName0%
getDisplayFormat0%
onSuccess0%
getGroupName0%
checkRegistrationPrecondition0%
execute0%
alterForm0%
getFormMessages0%
__construct0%
doesWrites0%
getGroupName0%
getDisplayFormat0%
onSuccess0%
onSubmit0%
getFormFields0%
getFormFields0%
userCanExecute0%
execute0%
__construct0%
requiresUnblock0%
onSuccess0%
onSubmit0%
alterForm0%
getIconType0%
getSecondaryLinks0%
__construct0%
getFooter0%
getFooter0%
makeSection0%
__construct0%
createContent0%
getPrimaryHeader0%
getParticipantsTable0%
getEmptyStateElement0%
getSearchBar0%
getTableHeaders0%
getParticipantRows0%
getCurUserParticipantRow0%
getParticipantRow0%
addNonPIIParticipantAnswers0%
getQuestionAnswer0%
getHeaderControls0%
getLocationSection0%
getMeetingTypeFromDBVal0%
newClickwrapFormModule0%
newResponseStatisticsModule0%
newEmailParticipantsModule0%
newEventDetailsParticipantsModule0%
__construct0%
getStatus0%
meetingTypeToDBVal0%
__construct0%
getEventStatusDBVal0%
getEventStatusFromDBVal0%
__construct0%
purgeEventPageCache0%
run0%
newEventDetailsModule0%
getTrackingToolsSection0%
getOrganizersColumn0%
getLastEditTimestamp0%
getDetailsDialogContent0%
getDetailsDialogParticipants0%
getDetailsDialogChat0%
getDetailsDialogLocation0%
getDetailsDialogDates0%
getDetailsDialogEventInfo0%
getDetailsDialogOrganizers0%
getEventInfoHeaderRow0%
getActionElement0%
getParticipantNoticeRow0%
getHeaderElement0%
getEventQuestionsData0%
addRegistrationHeader0%
getEnableRegistrationHeader0%
maybeAddEnableRegistrationHeader0%
getParticipantRows0%
getUserStatus0%
getInfoColumn0%
processInput0%
getHeader0%
createContent0%
__construct0%
getEmailForm0%
createContent0%
__construct0%
createForm0%
getParticipantFooter0%
createContent0%
__construct0%
newDecorator0%
__construct0%
makeDetailsDialogSection0%
getParticipantRow0%
__construct0%
__construct0%
decoratePage0%
getNamespace0%
__construct0%
getAuthor0%
__construct0%
validateMeetingInfo0%
getPageIdentity0%
getPrefixedText0%
getDBkey0%
getFullUrl0%
getWikiId0%
__construct0%
getLocalUserID0%
getName0%
isNamed0%
isSitewideBlocked0%
waitForReplication0%
getCanonicalUrl0%
__construct0%
preloadUserLinks0%
__construct0%
getFromAndReplyTo0%
validateSender0%
getMessageWithFooter0%
__construct0%
__construct0%
getUserPagePath0%
getCacheKey0%
generateUserLinkWithFallback0%
generateUserLink0%
__construct0%
__construct0%
__construct0%
__construct0%
hasRight0%
getErrorMsgParams0%
getCreationTimestamp0%
newFromUserIdentity0%
getID0%
createContent0%
makeContentWithAggregates0%
makeQuestionCategorySectionContainer0%
makeQuestionCategorySection0%
makeQuestionSection0%
makeAnswerTable0%
onBeforeCreateEchoEvent0%
onPageMoveComplete0%
onLoadExtensionSchemaUpdates0%
__construct0%
getParticipantQuestions0%
validateParticipantQuestions0%
getErrorMsgKey0%
getEventPageData0%
newFromAuthority0%
__construct0%
__construct0%
existsAndIsVisible0%
existsLocally0%
isValidLocalUsername0%
newPageFromDB0%
newFromLocalMediaWikiPage0%
__construct0%
getText0%
newFromLocalUsername0%
__construct0%
__construct0%
getCentralID0%
equals0%
getCanonicalPage25%
validateTarget31%
getSuccessResponse33%
getRegistrationForLocalPage50%
isPlaceholderValue50%
validate55%
getRegistrationForPage58%
getQuestionsForHTMLForm62%
run63%
getBodyValidator66%
execute66%
getBodyValidator66%
userCanEnableRegistration66%
userCanEditRegistration71%
removeParticipantsUnsafe73%
updateTrackingTools73%
getUrl77%
newAnswerFromAPI79%
exitWithStatus80%
getEventByPage80%
getSuccessResponse81%
getQuestionAnswer81%
checkOrganizerNotRemovingTheCreator82%
newAnswerFromHTMLForm82%
getUser83%
getUserBatch83%
getRegistry85%
makeErrorStatus86%
saveRegistration87%
getBodyValidator87%
getBodyValidator87%
doEditUnsafe88%
isValidURL88%
deleteAllAnswers88%
getEventByID88%
newEvent89%

Project Risks

Method CRAP
getFormFields756
onSubmit462
execute240
createContent210
getDetailsDialogLocation182
getUserStatus182
validateMeetingInfo182
getLocationSection132
formatValue132
getParticipantRow110
getInfoColumn72
getDetailsDialogChat72
getTableHeaders72
getActionElement72
execute56
getParticipantRows56
makeAnswerTable56
getEventQuestionsData56
addParticipantQuestionFields56
getTrackingToolsSection56
execute42
addNonPIIParticipantAnswers42
getTypeBodySection42
getTimezone42
validateTarget35
getPrimaryHeader30
createContent30
execute30
getParticipantQuestionsFields30
alterForm30
execute30
getAuthor30
getFooter30
makeContentWithAggregates30
getCanonicalUrl30
getEventInfoHeaderRow30
getSubqueryInfo30
getMeetingTypeMsg30
getConfiguredPEDashboardData30
buildQueryInfo30
getDateRangeCond20
getFullUrl20
preprocessResults20
getOrganizerUsernames20
validateParticipantQuestions20
getQuestionOptionsForStats20
getCellAttrs20
getForm20
parseSubmittedTimezone20
gerOrganizersBodySection20
getHeaderControls20
getDetailsDialogParticipants20
decoratePage20
getLimitSelectList20
getCanonicalPage15
doEditUnsafe15
getQuestionsForHTMLForm15
newAnswerFromHTMLForm12
newEvent12
newAnswerFromAPI12
isHeaderRowNeeded12
dbIDToName12
validateSender12
getNavigationBar12
getRow12
generateUserLinkWithFallback12
notifyRegistration12
canRender12
__construct12
getQuestionLabelForStats12
getFromAndReplyTo12
onSuccess12
getParticipantRow12
__construct12
getMeetingTypeFromDBVal12
meetingTypeToDBVal12
onSuccess12
showFormAndEvents12
onSubmit12
getParticipantNoticeRow12
getDetailsDialogOrganizers12
addRegistrationHeader12
alterForm12
getFormFields12
newPageFromDB12
checkRegistrationPrecondition12
showFormAndEvents12
getQuestionAnswer12
getParticipantRows12
getOrganizersColumn12
getHeader12
run11
isPlaceholderValue10
makeErrorStatus10
isValidURL10
execute8
getRegistrationForPage8
deleteAllAnswers7
syncStatusToDB6
dbSyncStatusToConst6
getWikiIDString6
getQueryInfo6
getEventPageFromRow6
getDBConnection6
addEntry6
makeQuestionCategorySection6
newFromLocalMediaWikiPage6
existsAndIsVisible6
newFromLocalUsername6
newFromUserIdentity6
getEventPageData6
onPageMoveComplete6
makeQuestionSection6
getEmptyStateElement6
__construct6
processInput6
getHeaderElement6
maybeAddEnableRegistrationHeader6
purgeEventPageCache6
getEventStatusFromDBVal6
getEventStatusDBVal6
getRegistrationForLocalPage6
isSitewideBlocked6
getText6
preloadUserLinks6
getMessageWithFooter6
run6
getHeaderMessage6
getSubqueryInfo6
getSecondaryLinks6
getCacheKey6
getSuccessResponse5
removeParticipantsUnsafe5
checkOrganizerNotRemovingTheCreator5
getUserBatch5
userCanEnableRegistration4
userCanEditRegistration4
getUrl4
saveRegistration4
validate3
getEventByPage3
getQuestionAnswer3
getUser3
getRegistry3
getEventByID3
getBodyValidator2
getBodyValidator2
updateTrackingTools2
exitWithStatus2
getSuccessResponse2
getBodyValidator2
getBodyValidator2