Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
MediaWiki\Extension\SecurePoll\Api\ApiSecurePollAuth0%
MediaWiki\Extension\SecurePoll\Pages\UnarchivePage0%
MediaWiki\Extension\SecurePoll\Pages\DumpPage0%
MediaWiki\Extension\SecurePoll\Pages\ElectionPager0%
MediaWiki\Extension\SecurePoll\Pages\EntryPage0%
MediaWiki\Extension\SecurePoll\Api\ApiStrikeVote0%
MediaWiki\Extension\SecurePoll\Pages\ListPager0%
MediaWiki\Extension\SecurePoll\Pages\LoginPage0%
MediaWiki\Extension\SecurePoll\Pages\MainElectionsPager0%
MediaWiki\Extension\SecurePoll\Pages\MessageDumpPage0%
MediaWiki\Extension\SecurePoll\Pages\StatusException0%
MediaWiki\Extension\SecurePoll\Pages\StrikePager0%
MediaWiki\Extension\SecurePoll\Pages\TallyPage0%
MediaWiki\Extension\SecurePoll\Pages\TranslatePage0%
MediaWiki\Extension\SecurePoll\Pages\VoterEligibilityPage0%
MediaWiki\Extension\SecurePoll\Pages\CreatePage0%
MediaWiki\Extension\SecurePoll\SecurePollContent0%
MediaWiki\Extension\SecurePoll\SecurePollContentHandler0%
MediaWiki\Extension\SecurePoll\SpecialSecurePoll0%
MediaWiki\Extension\SecurePoll\Store\DBStore0%
MediaWiki\Extension\SecurePoll\Store\FormStore0%
MediaWiki\Extension\SecurePoll\Store\MemoryStore0%
MediaWiki\Extension\SecurePoll\Store\XMLStore0%
MediaWiki\Extension\SecurePoll\Talliers\CommentDumper0%
MediaWiki\Extension\SecurePoll\Talliers\ElectionTallier0%
MediaWiki\Extension\SecurePoll\User\Auth0%
MediaWiki\Extension\SecurePoll\User\LocalAuth0%
MediaWiki\Extension\SecurePoll\User\RemoteMWAuth0%
MediaWiki\Extension\SecurePoll\User\Voter0%
MediaWiki\Extension\SecurePoll\Pages\DetailsPage0%
MediaWiki\Extension\SecurePoll\Pages\ListPage0%
MediaWiki\Extension\SecurePoll\Pages\ArchivedPager0%
MediaWiki\Extension\SecurePoll\HookHandler\InstallHandler0%
MediaWiki\Extension\SecurePoll\Ballots\BallotStatus0%
MediaWiki\Extension\SecurePoll\Ballots\RadioRangeCommentBallot0%
MediaWiki\Extension\SecurePoll\Context0%
MediaWiki\Extension\SecurePoll\Crypt\Crypt0%
MediaWiki\Extension\SecurePoll\Pages\ArchivedPage0%
MediaWiki\Extension\SecurePoll\Entities\Entity0%
MediaWiki\Extension\SecurePoll\Entities\Option0%
MediaWiki\Extension\SecurePoll\Entities\Question0%
MediaWiki\Extension\SecurePoll\Crypt\Random0%
MediaWiki\Extension\SecurePoll\HookHandler\LogoutHandler0%
MediaWiki\Extension\SecurePoll\Jobs\PopulateVoterListJob0%
MediaWiki\Extension\SecurePoll\Pages\ArchivePage0%
MediaWiki\Extension\SecurePoll\HookHandler\SetupHandler0%
MediaWiki\Extension\SecurePoll\Jobs\UnarchiveElectionJob0%
MediaWiki\Extension\SecurePoll\Jobs\TallyElectionJob0%
MediaWiki\Extension\SecurePoll\Pages\ActionPage0%
MediaWiki\Extension\SecurePoll\Jobs\LogAdminActionJob0%
MediaWiki\Extension\SecurePoll\VoteRecord0%
MediaWiki\Extension\SecurePoll\Jobs\ArchiveElectionJob0%
MediaWiki\Extension\SecurePoll\HtmlForm\HTMLFormRadioRangeColumnLabels0%
MediaWiki\Extension\SecurePoll\SpecialSecurePollLog3%
MediaWiki\Extension\SecurePoll\Ballots\ChooseBallot9%
MediaWiki\Extension\SecurePoll\DumpElection17%
MediaWiki\Extension\SecurePoll\Pages\VotePage18%
MediaWiki\Extension\SecurePoll\Talliers\PluralityTallier19%
MediaWiki\Extension\SecurePoll\Ballots\ApprovalBallot19%
MediaWiki\Extension\SecurePoll\Ballots\RadioRangeBallot20%
MediaWiki\Extension\SecurePoll\Ballots\PreferentialBallot27%
MediaWiki\Extension\SecurePoll\Ballots\Ballot35%
MediaWiki\Extension\SecurePoll\Rest\SetTranslationHandler37%
MediaWiki\Extension\SecurePoll\Entities\Election37%
MediaWiki\Extension\SecurePoll\Talliers\HistogramRangeTallier46%
MediaWiki\Extension\SecurePoll\SecurePollLogPager49%
MediaWiki\Extension\SecurePoll\Crypt\OpenSslCrypt62%
MediaWiki\Extension\SecurePoll\Talliers\SchulzeTallier63%
MediaWiki\Extension\SecurePoll\TranslationRepo79%
MediaWiki\Extension\SecurePoll\Talliers\Tallier81%
MediaWiki\Extension\SecurePoll\Talliers\STVTallier81%
MediaWiki\Extension\SecurePoll\Talliers\PairwiseTallier83%
MediaWiki\Extension\SecurePoll\Talliers\STVFormatter\HtmlFormatter87%

Project Risks

Class CRAP
MediaWiki\Extension\SecurePoll\Pages\CreatePage19460
MediaWiki\Extension\SecurePoll\Pages\VoterEligibilityPage15500
MediaWiki\Extension\SecurePoll\Store\XMLStore2862
MediaWiki\Extension\SecurePoll\Pages\VotePage2839
MediaWiki\Extension\SecurePoll\Context2550
MediaWiki\Extension\SecurePoll\Entities\Entity1482
MediaWiki\Extension\SecurePoll\Store\FormStore1406
MediaWiki\Extension\SecurePoll\Entities\Election1327
MediaWiki\Extension\SecurePoll\Pages\TallyPage1260
MediaWiki\Extension\SecurePoll\Talliers\ElectionTallier1260
MediaWiki\Extension\SecurePoll\Ballots\RadioRangeBallot1164
MediaWiki\Extension\SecurePoll\Pages\ListPager1122
MediaWiki\Extension\SecurePoll\Jobs\PopulateVoterListJob992
MediaWiki\Extension\SecurePoll\Store\DBStore992
MediaWiki\Extension\SecurePoll\SecurePollContentHandler812
MediaWiki\Extension\SecurePoll\User\Voter650
MediaWiki\Extension\SecurePoll\Pages\TranslatePage552
MediaWiki\Extension\SecurePoll\Store\MemoryStore552
MediaWiki\Extension\SecurePoll\HtmlForm\HTMLFormRadioRangeColumnLabels506
MediaWiki\Extension\SecurePoll\Crypt\OpenSslCrypt482
MediaWiki\Extension\SecurePoll\DumpElection431
MediaWiki\Extension\SecurePoll\User\Auth420
MediaWiki\Extension\SecurePoll\Pages\MainElectionsPager380
MediaWiki\Extension\SecurePoll\VoteRecord306
MediaWiki\Extension\SecurePoll\User\LocalAuth306
MediaWiki\Extension\SecurePoll\SpecialSecurePollLog275
MediaWiki\Extension\SecurePoll\User\RemoteMWAuth272
MediaWiki\Extension\SecurePoll\Pages\ElectionPager272
MediaWiki\Extension\SecurePoll\Ballots\BallotStatus240
MediaWiki\Extension\SecurePoll\Talliers\PluralityTallier231
MediaWiki\Extension\SecurePoll\Ballots\Ballot225
MediaWiki\Extension\SecurePoll\Pages\ArchivedPager210
MediaWiki\Extension\SecurePoll\Ballots\PreferentialBallot203
MediaWiki\Extension\SecurePoll\Pages\ListPage182
MediaWiki\Extension\SecurePoll\Pages\DumpPage182
MediaWiki\Extension\SecurePoll\Ballots\RadioRangeCommentBallot182
MediaWiki\Extension\SecurePoll\Ballots\ApprovalBallot166
MediaWiki\Extension\SecurePoll\Ballots\ChooseBallot159
MediaWiki\Extension\SecurePoll\Pages\DetailsPage156
MediaWiki\Extension\SecurePoll\Crypt\Random156
MediaWiki\Extension\SecurePoll\Jobs\TallyElectionJob156
MediaWiki\Extension\SecurePoll\Pages\ActionPage132
MediaWiki\Extension\SecurePoll\Talliers\CommentDumper132
MediaWiki\Extension\SecurePoll\SpecialSecurePoll110
MediaWiki\Extension\SecurePoll\Pages\StrikePager110
MediaWiki\Extension\SecurePoll\Api\ApiStrikeVote110
MediaWiki\Extension\SecurePoll\HookHandler\SetupHandler90
MediaWiki\Extension\SecurePoll\Talliers\SchulzeTallier74
MediaWiki\Extension\SecurePoll\Api\ApiSecurePollAuth72
MediaWiki\Extension\SecurePoll\SecurePollLogPager66
MediaWiki\Extension\SecurePoll\Talliers\HistogramRangeTallier61
MediaWiki\Extension\SecurePoll\Pages\ArchivePage56
MediaWiki\Extension\SecurePoll\Pages\UnarchivePage56
MediaWiki\Extension\SecurePoll\Pages\MessageDumpPage56
MediaWiki\Extension\SecurePoll\Entities\Question56
MediaWiki\Extension\SecurePoll\Talliers\STVTallier53
MediaWiki\Extension\SecurePoll\Talliers\PairwiseTallier41
MediaWiki\Extension\SecurePoll\Talliers\STVFormatter\HtmlFormatter29
MediaWiki\Extension\SecurePoll\Pages\EntryPage20
MediaWiki\Extension\SecurePoll\Pages\LoginPage20
MediaWiki\Extension\SecurePoll\Talliers\Tallier19
MediaWiki\Extension\SecurePoll\TranslationRepo18
MediaWiki\Extension\SecurePoll\Jobs\UnarchiveElectionJob12
MediaWiki\Extension\SecurePoll\Jobs\ArchiveElectionJob12
MediaWiki\Extension\SecurePoll\HookHandler\InstallHandler12
MediaWiki\Extension\SecurePoll\Rest\SetTranslationHandler11

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
getAutoCommitPrimaryConnectionForWiki0%
processConfig0%
checkListEditsEndDate0%
checkEditsBetweenCount0%
checkEditsBeforeCount0%
checkCentralBlockThreshold0%
checkMin0%
checkRequired0%
parseDate0%
executeConfig0%
saveList0%
fetchList0%
saveProperties0%
executeClear0%
execute0%
__construct0%
populateUsersActiveWikiOptions0%
createMostActiveWikiDropdownWidget0%
showJumpForm0%
getOptionMessages0%
getQuestionMessage0%
getVoteDataFromRecord0%
logVote0%
doSubmit0%
getBallot0%
executeEdit0%
run0%
getTitle0%
execute0%
getMessages0%
__construct0%
checkIfElectionExists0%
onSubmit0%
alterForm0%
setFormDefaults0%
getFormFields0%
getDisplayFormat0%
requiresWrite0%
setSubtitle0%
getSubpage0%
doesWrites0%
__construct0%
__construct0%
getEmptyBody0%
getEndBody0%
getStartBody0%
formatRow0%
getDefaultQuery0%
getContentClass0%
canBeUsedOn0%
makeContentFromElection0%
getDataFromElection0%
__construct0%
showForm0%
execute0%
getProperties0%
isFieldSortable0%
execute0%
getLogLink0%
getLinks0%
getQueryInfo0%
__construct0%
execute0%
getTitle0%
getRowClass0%
getFieldNames0%
getDefaultSort0%
formatValue0%
getQueryInfo0%
__construct0%
__construct0%
getTitle0%
strike0%
execute0%
__construct0%
getTitle0%
execute0%
__construct0%
execute0%
getFieldNames0%
getDefaultSort0%
__construct0%
getQueryInfo0%
__construct0%
submitForm0%
execute0%
__construct0%
doSubmit0%
showLanguageSelector0%
getTitle0%
execute0%
__construct0%
getTitle0%
updateContextForCrypt0%
submitJob0%
submitUpload0%
getCryptDescriptors0%
formatValue0%
createForm0%
showTallyResult0%
showTallyStatus0%
isTallyEnqueued0%
showTallyError0%
execute0%
__construct0%
isFieldSortable0%
getTitle0%
getFieldNames0%
getDefaultSort0%
getLangList0%
getElectionInfo0%
formatValue0%
autoLogin0%
getCentralLists0%
getLists0%
getUserParamsFast0%
getUserParams0%
autoLogin0%
__construct0%
newRequestedSession0%
newAutoSession0%
getVoter0%
getVoterFromSession0%
requestLogin0%
__construct0%
getCreateDescriptors0%
getCreateDescriptors0%
factory0%
getCreateDescriptors0%
getTextResult0%
getHtmlResult0%
loadJSONResult0%
getRanks0%
getTextResult0%
getHtmlResult0%
getJSONResult0%
loadJSONResult0%
getCentralBlockCount0%
requestLogin0%
getCandidateName0%
isRemote0%
getComment0%
getBallotData0%
newFromBallotData0%
newFromOldBlob0%
newFromJson0%
newFromBlob0%
readBlob0%
addCookieDup0%
doCookieCheck0%
encodeProperties0%
decodeProperties0%
getProperty0%
encodeToken0%
getLanguage0%
getElectionId0%
getUrl0%
getDomain0%
getType0%
getName0%
getId0%
createVoter0%
newFromRow0%
newFromId0%
__construct0%
getLastEliminated0%
formatForNumParams0%
getElectionInfoByTitle0%
getMessages0%
__construct0%
getEntityType0%
callbackValidVotes0%
setForcePrimary0%
getDB0%
decodeElectionRow0%
getQuestionInfo0%
getElectionInfoByTitle0%
getElectionInfo0%
getProperties0%
getLangList0%
getAllElectionIds0%
doTopLevel0%
getAdminsList0%
getWikiList0%
getWikiName0%
processFormData0%
setFormData0%
getEntityType0%
callbackValidVotes0%
getQuestionInfo0%
setForcePrimary0%
getDB0%
decodeElectionRow0%
readFile0%
doElection0%
__construct0%
getJSONResult0%
getRanks0%
getTextResult0%
getHtmlResult0%
loadJSONResult0%
addVote0%
getTextResult0%
getHtmlResult0%
loadJSONResult0%
getTextResult0%
getHtmlResult0%
loadJSONResult0%
addRecord0%
readEntity0%
execute0%
setupTalliers0%
__construct0%
getTextResult0%
getHtmlResult0%
addRecord0%
execute0%
__construct0%
callbackValidVotes0%
readStringElement0%
addParentIds0%
formatRow0%
getTitle0%
getRowClass0%
createVoter0%
newCrypt0%
newOption0%
newQuestion0%
newElection0%
getDB0%
getMessage0%
getMessages0%
setLanguages0%
getRandom0%
getVoter0%
newVoterFromRow0%
newBallot0%
newElectionFromRow0%
getElectionByTitle0%
getElection0%
getEntityType0%
setStore0%
getSpecialTitle0%
getStore0%
getParserOptions0%
newFromXmlFile0%
convertScores0%
getTallyTypes0%
newTallier0%
getBallotTypesForTally0%
unpackRecord0%
checkKeyInternal0%
ensureDoubleQuoted0%
createBltVoteRows0%
generateBlt0%
isFieldSortable0%
shuffle0%
getInt0%
close0%
open0%
cleanupDbForTallyJob0%
updateDbForTallyJob0%
updateTallyContext0%
checkPrivateKey0%
getBallotTypesForVote0%
checkPublicKey0%
getTallyDescriptors0%
getCreateDescriptors0%
getCreateDescriptors0%
factory0%
getCryptTypes0%
getResourceUrl0%
varDump0%
newElectionTallier0%
newVoter0%
newAuth0%
readComment0%
submitForm0%
getElection0%
getQuestionForm0%
initRequest0%
getUserLang0%
msg0%
getMessageLocalizer0%
getRequest0%
getMessageNames0%
getCreateDescriptors0%
getTallyTypes0%
convertScores0%
unpackRecord0%
getTallyTypes0%
convertRecord0%
getExamplesMessages0%
getAllowedParams0%
needsToken0%
isWriteMode0%
mustBePosted0%
execute0%
__construct0%
isInternal0%
mustBePosted0%
getExamplesMessages0%
getAllowedParams0%
submitForm0%
factory0%
getForm0%
unpackRecord0%
convertScores0%
unpackRecord0%
getQuestionForm0%
addSign0%
getMessageNames0%
getColumnLabels0%
getScoresLeftToRight0%
getColumnDirection0%
getCreateDescriptors0%
getTallyTypes0%
convertScores0%
getQuestionForm0%
errorLocationIndicator0%
getCreateDescriptors0%
getTallyTypes0%
convertScores0%
unpackRecord0%
getQuestionForm0%
getCreateDescriptors0%
getTallyTypes0%
spGetMessageText0%
spGetHTML0%
getIds0%
spFatal0%
getMessageNames0%
getBlob0%
getStartDate0%
run0%
setLanguageFallback0%
setUserOptionsLookup0%
getUserLang0%
initLanguage0%
__construct0%
run0%
__construct0%
markAsFailed0%
postRun0%
preRun0%
doRun0%
allowRetries0%
__construct0%
__construct0%
fetchJobKey0%
run0%
__construct0%
pushJobsForElection0%
run0%
__construct0%
run0%
__construct0%
getInputHTML0%
validate0%
loadDataFromRequest0%
msg0%
execute0%
onSpecialPage_initList0%
savePropertiesAndMessages0%
__construct0%
getFormatFromRequest0%
sendHeaders0%
execute0%
getTitle0%
detailEntry0%
execute0%
checkRequired0%
checkElectionEndDate0%
checkEditPollRight0%
unprocessFormData0%
processFormItems0%
insertEntity0%
__construct0%
getFormDataFromElection0%
logAdminChanges0%
recordElectionToNamespace0%
processInput0%
processInputDuringElection0%
execute0%
__construct0%
getLinks0%
getQueryInfo0%
__construct0%
getTitle0%
execute0%
getEndDate0%
onTitleQuickPermissions0%
loadMessages0%
getId0%
parseMessageInline0%
parseMessage0%
getMessage0%
getRawMessage0%
loadProperties0%
onCanonicalNamespaces0%
getDescendants0%
getChildren0%
getElection0%
getMessageNames0%
dumpVotesToCallback0%
getType0%
__construct0%
getTallyFromDb0%
tally0%
getAuth0%
getLanguage0%
getCrypt0%
getTallyType0%
getPropertyDumpExclusion0%
getLangList0%
getProperty0%
getAllProperties0%
getConfXml0%
isStarted0%
isFinished0%
__construct0%
getVotesCount0%
onUserLogout0%
onLoadExtensionSchemaUpdates0%
getBallot0%
getConfXml0%
getOptions0%
getConfXml0%
getChildren0%
getMessageNames0%
__construct0%
getMessageNames0%
isAdmin0%
hasVoted0%
allowChange0%
__construct0%
getPropertyDumpExclusion0%
getConfXmlEntityStuff0%
getFilterConds50%
execute50%
numberOfSeatsReached66%
addVote66%
finishTally71%
getOptionAbbreviations73%
__construct75%
getPathStrengths75%
decrypt77%
setTranslation78%
createXMLDump80%
setupKeys82%
getSummaryOfVotes83%
getErrorStatus83%
__construct83%
createBLTDump83%
getMinMax87%

Project Risks

Method CRAP
execute2070
processInput600
processConfig506
getDataFromElection506
executeConfig420
getFormDataFromElection380
formatValue380
setFormData342
execute272
readEntity272
run272
getLinks272
unprocessFormData210
requestLogin210
saveList182
pushJobsForElection182
execute182
execute156
doElection156
processFormData156
getLinks156
processFormItems110
execute110
unpackRecord110
saveProperties90
executeClear90
spGetHTML90
validate90
createBltVoteRows72
executeEdit72
varDump72
readStringElement72
logVote72
doTopLevel72
generateBlt72
loadDataFromRequest72
execute72
addRecord72
execute72
addRecord56
execute56
savePropertiesAndMessages56
unpackRecord56
fetchList56
getConfXmlEntityStuff42
newFromJson42
execute42
convertScores42
getVoterFromSession42
getHtmlResult42
convertScores42
execute42
getMessageNames42
getTextResult42
showJumpForm42
getOptionMessages42
getHtmlResult42
getTextResult42
populateUsersActiveWikiOptions30
execute30
getInputHTML30
initLanguage30
getFieldNames30
decodeElectionRow30
getMessages30
doCookieCheck30
getCentralBlockCount30
execute30
createForm30
formatValue30
convertScores30
getQuestionInfo30
addVote30
checkKeyInternal30
callbackValidVotes30
logAdminChanges30
showForm30
ensureDoubleQuoted30
callbackValidVotes30
setupKeys28
decrypt27
getSummaryOfVotes20
getFormatFromRequest20
submitUpload20
submitForm20
processInputDuringElection20
formatValue20
execute20
onSubmit20
onTitleQuickPermissions20
getLangList20
unpackRecord20
spGetMessageText20
newRequestedSession20
convertScores20
getColumnDirection20
getRanks20
getColumnLabels20
getQuestionForm20
loadJSONResult20
execute20
getAutoCommitPrimaryConnectionForWiki20
addParentIds20
open20
execute20
getInt20
dumpVotesToCallback20
setFormDefaults20
getMessage20
getWikiList20
setTranslation17
getFilterConds16
getPathStrengths15
checkEditsBeforeCount12
parseDate12
__construct12
getCentralLists12
checkCentralBlockThreshold12
autoLogin12
setupTalliers12
checkEditsBetweenCount12
getCryptDescriptors12
checkIfElectionExists12
getAllElectionIds12
checkListEditsEndDate12
run12
getJSONResult12
callbackValidVotes12
execute12
getRowClass12
isStarted12
run12
onLoadExtensionSchemaUpdates12
parseMessage12
loadMessages12
getConfXml12
isFinished12
checkPublicKey12
checkEditPollRight12
factory12
getElection12
addSign12
unpackRecord12
unpackRecord12
submitForm12
postRun12
getBlob12
getFieldNames12
strike12
getOptionAbbreviations9
getCryptTypes6
newFromXmlFile6
getParserOptions6
getStore6
showTallyResult6
getElectionByTitle6
getRandom6
getMessage6
getBallotTypesForVote6
checkElectionEndDate6
execute6
getHtmlResult6
checkPrivateKey6
getEntityType6
updateDbForTallyJob6
close6
getMessages6
shuffle6
recordElectionToNamespace6
getCreateDescriptors6
getScoresLeftToRight6
showTallyStatus6
getUserParamsFast6
getQuestionForm6
newFromBlob6
readBlob6
getRequest6
decodeProperties6
newFromId6
getMessageLocalizer6
factory6
errorLocationIndicator6
getUserParams6
formatRow6
getQuestionForm6
showTallyError6
newAutoSession6
getVoter6
getQuestionForm6
factory6
isTallyEnqueued6
getLastEliminated6
formatForNumParams6
getWikiName6
getElectionInfoByTitle6
getEntityType6
showLanguageSelector6
getTallyFromDb6
doSubmit6
getElection6
getDescendants6
updateContextForCrypt6
loadProperties6
getRawMessage6
doRun6
checkRequired6
makeContentFromElection6
getLangList6
getProperty6
checkMin6
checkRequired6
getAllProperties6
__construct6
getConfXml6
getTitle6
onCanonicalNamespaces6
getQuestionMessage6
run6
run6
getAuth6
getRowClass6
getBallot6
getDB6
isAdmin6
__construct6
getElectionInfo6
getProperties6
getLangList6
getMessages6
doSubmit6
canBeUsedOn6
getUserLang6
getCrypt6
submitJob6
setSubtitle6
getPropertyDumpExclusion6
getEndBody6
getStartBody6
formatRow6
tally6
onSpecialPage_initList6
addVote3
numberOfSeatsReached3
finishTally3
createXMLDump3
createBLTDump3
__construct2
__construct2
getErrorStatus2
getMinMax2