Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
MediaWiki\Extension\WikiLambda\AWStorage\AWArticleStore0%
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractContentEditAction0%
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractContentHistoryAction0%
MediaWiki\Extension\WikiLambda\ActionAPI\ApiSupportedProgrammingLanguages0%
MediaWiki\Extension\WikiLambda\Fields\HTMLZLanguageSelectField0%
MediaWiki\Extension\WikiLambda\Fields\HTMLZTypeSelectField0%
MediaWiki\Extension\WikiLambda\HookHandler\CommunityConfigurationHooks0%
MediaWiki\Extension\WikiLambda\Pagers\BasicZObjectPager0%
MediaWiki\Extension\WikiLambda\ParserFunction\ParsoidWrappingParserOutputProvider0%
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsPFragment0%
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsPFragmentRenderer0%
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsPendingFragment0%
MediaWiki\Extension\WikiLambda\Special\DuplicateObjectLabelsPager0%
MediaWiki\Extension\WikiLambda\Special\SpecialCreateObject0%
MediaWiki\Extension\WikiLambda\Special\SpecialListDuplicateObjectNames0%
MediaWiki\Extension\WikiLambda\Special\SpecialListMissingLabels0%
MediaWiki\Extension\WikiLambda\Special\SpecialListObjectsByType0%
MediaWiki\Extension\WikiLambda\Special\SpecialRunFunction0%
MediaWiki\Extension\WikiLambda\Special\SpecialViewObject0%
MediaWiki\Extension\WikiLambda\ZErrorException0%
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectContentDifferenceEngine0%
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectEditAction0%
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectHistoryAction0%
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectSlotDiffRenderer0%
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectEditingPageTrait0%
MediaWiki\Extension\WikiLambda\HookHandler\ClientHooks23%
MediaWiki\Extension\WikiLambda\ActionAPI\ApiFunctionCall44%
MediaWiki\Extension\WikiLambda\RESTAPI\FetchHandler47%
MediaWiki\Extension\WikiLambda\WikifunctionCallException47%
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractContentUtils48%
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsCallDefaultValues48%
MediaWiki\Extension\WikiLambda\HookHandler\RepoHooks56%
MediaWiki\Extension\WikiLambda\PublicAPI\PublicApiRun56%
MediaWiki\Extension\WikiLambda\HookHandler\PagePostSaveHandler58%
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractContentEditPageTrait60%
MediaWiki\Extension\WikiLambda\Registry\ZTypeRegistry66%
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectPage66%
MediaWiki\Extension\WikiLambda\ZObjects\ZResponseEnvelope70%
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractWikiContent70%
MediaWiki\Extension\WikiLambda\ActionAPI\WikiLambdaApiBase71%
MediaWiki\Extension\WikiLambda\ActionAPI\ApiQueryZFunctionReference71%
MediaWiki\Extension\WikiLambda\HookHandler\PageRenderingHandler72%
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsPFragmentHandler72%
MediaWiki\Extension\WikiLambda\HookHandler\PageEditingHandler72%
MediaWiki\Extension\WikiLambda\ZObjects\ZMultiLingualString73%
MediaWiki\Extension\WikiLambda\Cache\MemcachedWrapper75%
MediaWiki\Extension\WikiLambda\Jobs\WikifunctionsClientRequestJob75%
MediaWiki\Extension\WikiLambda\ZObjectFactory75%
MediaWiki\Extension\WikiLambda\ActionAPI\ApiPerformTest77%
MediaWiki\Extension\WikiLambda\ActionAPI\ApiZObjectEditor79%
MediaWiki\Extension\WikiLambda\ActionAPI\ApiQueryZLanguages80%
MediaWiki\Extension\WikiLambda\ActionAPI\ApiQueryFunctions80%
MediaWiki\Extension\WikiLambda\RESTAPI\FunctionCallHandler80%
MediaWiki\Extension\WikiLambda\Pagers\AbstractZObjectPager81%
MediaWiki\Extension\WikiLambda\ZObjects\ZObject82%
MediaWiki\Extension\WikiLambda\ActionAPI\ApiQueryZObjectLabels82%
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectSecondaryDataRemoval83%
MediaWiki\Extension\WikiLambda\Diff\DiffMatrix85%
MediaWiki\Extension\WikiLambda\Jobs\WikifunctionsClientUsageUpdateJob85%
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectContentHandler86%
MediaWiki\Extension\WikiLambda\ZObjects\ZFunction86%
MediaWiki\Extension\WikiLambda\Authorization\ZObjectFilterIsAttached88%
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractWikiContentHandler88%
MediaWiki\Extension\WikiLambda\ZObjects\ZNaturalLanguage88%
MediaWiki\Extension\WikiLambda\ZObjectStore88%
MediaWiki\Extension\WikiLambda\ActionAPI\ApiZObjectFetcher88%
MediaWiki\Extension\WikiLambda\Authorization\ZObjectAuthorization88%
MediaWiki\Extension\WikiLambda\ActionAPI\ApiQueryZObjects88%
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectContent89%
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsPFragmentSanitiserTokenHandler89%
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectSecondaryDataUpdate89%

Project Risks

Class CRAP
MediaWiki\Extension\WikiLambda\Special\SpecialViewObject506
MediaWiki\Extension\WikiLambda\Special\SpecialListMissingLabels306
MediaWiki\Extension\WikiLambda\HookHandler\RepoHooks305
MediaWiki\Extension\WikiLambda\Special\SpecialListObjectsByType272
MediaWiki\Extension\WikiLambda\HookHandler\PageRenderingHandler267
MediaWiki\Extension\WikiLambda\ZObjectStore233
MediaWiki\Extension\WikiLambda\HookHandler\ClientHooks199
MediaWiki\Extension\WikiLambda\RESTAPI\FetchHandler192
MediaWiki\Extension\WikiLambda\ActionAPI\ApiPerformTest183
MediaWiki\Extension\WikiLambda\Special\SpecialCreateObject182
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectEditAction182
MediaWiki\Extension\WikiLambda\HookHandler\PagePostSaveHandler152
MediaWiki\Extension\WikiLambda\ZObjectFactory132
MediaWiki\Extension\WikiLambda\Special\SpecialRunFunction132
MediaWiki\Extension\WikiLambda\ActionAPI\WikiLambdaApiBase99
MediaWiki\Extension\WikiLambda\Special\DuplicateObjectLabelsPager90
MediaWiki\Extension\WikiLambda\Special\SpecialListDuplicateObjectNames90
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractWikiContent83
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsPFragmentHandler82
MediaWiki\Extension\WikiLambda\Registry\ZTypeRegistry80
MediaWiki\Extension\WikiLambda\ActionAPI\ApiFunctionCall73
MediaWiki\Extension\WikiLambda\Jobs\WikifunctionsClientRequestJob72
MediaWiki\Extension\WikiLambda\RESTAPI\FunctionCallHandler67
MediaWiki\Extension\WikiLambda\ZObjects\ZResponseEnvelope63
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractContentEditAction56
MediaWiki\Extension\WikiLambda\ActionAPI\ApiSupportedProgrammingLanguages56
MediaWiki\Extension\WikiLambda\HookHandler\PageEditingHandler55
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsPFragmentSanitiserTokenHandler53
MediaWiki\Extension\WikiLambda\ZObjects\ZObject50
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectContent49
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectSecondaryDataUpdate49
MediaWiki\Extension\WikiLambda\Authorization\ZObjectAuthorization48
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectContentHandler48
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsPFragmentRenderer42
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsCallDefaultValues41
MediaWiki\Extension\WikiLambda\ActionAPI\ApiQueryZObjects38
MediaWiki\Extension\WikiLambda\WikifunctionCallException37
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractContentUtils36
MediaWiki\Extension\WikiLambda\ZObjects\ZFunction36
MediaWiki\Extension\WikiLambda\Cache\MemcachedWrapper33
MediaWiki\Extension\WikiLambda\Pagers\BasicZObjectPager30
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectEditingPageTrait30
MediaWiki\Extension\WikiLambda\ZObjects\ZMultiLingualString28
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractWikiContentHandler26
MediaWiki\Extension\WikiLambda\PublicAPI\PublicApiRun23
MediaWiki\Extension\WikiLambda\ActionAPI\ApiQueryFunctions22
MediaWiki\Extension\WikiLambda\Diff\DiffMatrix21
MediaWiki\Extension\WikiLambda\ActionAPI\ApiQueryZObjectLabels20
MediaWiki\Extension\WikiLambda\Fields\HTMLZLanguageSelectField20
MediaWiki\Extension\WikiLambda\Fields\HTMLZTypeSelectField20
MediaWiki\Extension\WikiLambda\HookHandler\CommunityConfigurationHooks20
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectHistoryAction20
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectSlotDiffRenderer20
MediaWiki\Extension\WikiLambda\Pagers\AbstractZObjectPager18
MediaWiki\Extension\WikiLambda\ActionAPI\ApiQueryZFunctionReference16
MediaWiki\Extension\WikiLambda\ActionAPI\ApiZObjectEditor15
MediaWiki\Extension\WikiLambda\ActionAPI\ApiQueryZLanguages14
MediaWiki\Extension\WikiLambda\ActionAPI\ApiZObjectFetcher14
MediaWiki\Extension\WikiLambda\ZObjects\ZNaturalLanguage12
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractContentHistoryAction12
MediaWiki\Extension\WikiLambda\ParserFunction\ParsoidWrappingParserOutputProvider12
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsPendingFragment12
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectContentDifferenceEngine12
MediaWiki\Extension\WikiLambda\AbstractContent\AbstractContentEditPageTrait11
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectPage10
MediaWiki\Extension\WikiLambda\Authorization\ZObjectFilterIsAttached6
MediaWiki\Extension\WikiLambda\ParserFunction\WikifunctionsPFragment6
MediaWiki\Extension\WikiLambda\Jobs\WikifunctionsClientUsageUpdateJob5
MediaWiki\Extension\WikiLambda\ZObjectContent\ZObjectSecondaryDataRemoval3

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
createMissingSectionBlock0%
getName0%
show0%
getPageTitleMsg0%
getRestriction0%
doesWrites0%
getPageTitle0%
resolveAbstractLabel0%
getTextForSearchIndex0%
getWikitextForTransclusion0%
getTextForSummary0%
getNativeData0%
getSize0%
copy0%
convert0%
isCountable0%
getSecondaryDataUpdates0%
getDeletionUpdates0%
createDifferenceEngine0%
getSlotDiffRendererWithOptions0%
isInternal0%
isInternal0%
isInternal0%
__construct0%
run0%
isInternal0%
isInternal0%
run0%
setLogger0%
getLogger0%
makeMemcachedKey0%
getEditCountByRow0%
getEditCountByCol0%
__toString0%
__construct0%
getOptions0%
__construct0%
getOptions0%
getOptionName0%
__construct0%
onCommunityConfigurationProvider_initList0%
abstractContentSave0%
getAbstractUserPermissionsErrors0%
roundTripJson0%
matchRepoAndAbstractRoutes0%
onWebRequestPathInfoRouter0%
onParserGetVariableValueSwitch0%
onSpecialStatsAddExtra0%
fetchAbstractModeLabel0%
onLoadExtensionSchemaUpdates0%
initializeZObjectJoinTable0%
ignoreDuplicates0%
getDeduplicationInfo0%
getEmptyBody0%
formatRow0%
__construct0%
getQueryInfo0%
getEmptyBody0%
__construct0%
getParserOutput0%
getWikidataItem0%
asDom0%
fetchFunctionFromWikifunctionsApi0%
__construct0%
render0%
loadBlockedDomains0%
__construct0%
fallbackContent0%
getTypeDependencies0%
applyCacheControl0%
needsWriteAccess0%
applyCacheControl0%
needsWriteAccess0%
instanceOfZErrorType0%
__construct0%
getFieldNames0%
formatValue0%
getQueryInfo0%
getTableClass0%
getIndexField0%
getDefaultSort0%
isFieldSortable0%
getGroupName0%
isListed0%
__construct0%
getRestriction0%
getGroupName0%
getDescription0%
isListed0%
userCanExecute0%
displayNotAvailableError0%
execute0%
__construct0%
getGroupName0%
getDescription0%
isListed0%
userCanExecute0%
execute0%
getGroupName0%
isListed0%
__construct0%
getGroupName0%
getDescription0%
isListed0%
userCanExecute0%
getParameters0%
execute0%
getHeaderTitle0%
getHeaderForm0%
__construct0%
getGroupName0%
getDescription0%
isListed0%
userCanExecute0%
getParameters0%
execute0%
getHeaderTitle0%
getHeaderForm0%
__construct0%
getRestriction0%
getGroupName0%
getDescription0%
isListed0%
userCanExecute0%
execute0%
getGroupName0%
__construct0%
getRestriction0%
getGroupName0%
getDescription0%
userCanExecute0%
execute0%
redirectToMain0%
getRobotPolicy0%
getMessageKey0%
getErrorCode0%
getZErrorType0%
fromArray0%
__construct0%
getZError0%
getZErrorMessage0%
getZErrorType0%
getLogger0%
getWikitextForTransclusion0%
getTextForSummary0%
getNativeData0%
convert0%
generateContentDiffBody0%
getName0%
getTargetZObjectWithLabels0%
getTargetZObject0%
getZObjectEditPageHTMLTitle0%
getZObjectEditTitle0%
show0%
getRestriction0%
doesWrites0%
getPageTitle0%
getTitle0%
getDiff0%
toDiffArray0%
searchFunctions0%
getFunctionZidOrNull0%
resolveZObjectLabel0%
getArgumentDeclarations0%
getValueAsList0%
isValid0%
getAbstractContentForTitle0%
generateZObjectPayload0%
onResourceLoaderRegisterModules1%
ensureZObjectStoreIsPresent11%
extractInnerObject16%
register19%
setMonoLingualString21%
getErrors23%
makeRequest24%
getTesterObject25%
getImplementationObject26%
pushZObject32%
submitMetricsEvent33%
loadProviderList38%
newSiteMatrix40%
getZid40%
filterMatches41%
run41%
run43%
getFunctionDefinition46%
setUp50%
isUrlSpamBlocked50%
run54%
getAssociatedZids55%
set56%
executeFunctionCall57%
onRecentChange_save58%
__construct59%
updateZObject61%
getErrorDescriptors62%
fetchZObject63%
isValid64%
validateRequestedObject66%
dieWithZError66%
makeTitleForPossiblyRemoteZObject66%
fetchRepoModeLabel66%
getIndexField66%
getDefaultDirections66%
getDefaultLanguage66%
decodeHtmlFragmentValue66%
userCanExecute66%
getAliases66%
getAliasesForLanguageCode66%
run68%
extractObjectType69%
fillEmptyArgsWithDefaultValues69%
onGetUserPermissionsErrors70%
run71%
isValid71%
updateSecondaryTables72%
run73%
isValid74%
isAssociative75%
onParserFirstCallInit75%
getClientTargetUrl75%
singleton75%
serializeContent75%
trackSelfReference75%
isValid75%
remoteCall75%
getRelatedZObjectsOfInstance76%
getSerialized76%
run76%
create77%
createInitialContent77%
onNamespaceIsMovable77%
isZObjectKeyKnown77%
isValid77%
fillParserOutput78%
getTargetFunction78%
getTargetTitle78%
isValid78%
makeKey80%
getDefaultDate80%
getMatchingDomains80%
getReturnType80%
isValid80%
run80%
run80%
createPersistentContent80%
run80%
fetchLanguageCodeFromZid81%
isValid81%
doUpdate81%
insertContentObject82%
validatePersistentKeys82%
run82%
doUpdate82%
generateSafeFragment82%
getNumericMetadataValue83%
registerExtension83%
getExternalRepresentation83%
getSecondaryDataUpdates83%
getReturnType83%
isValid83%
generateAbstractContentPayload83%
onHtmlPageLinkRendererEnd84%
fetchContent85%
run85%
getDiffOpForElement85%
getQueryInfo85%
sanitiseAttributes85%
createKeyValues86%
onGetMagicVariableIDs87%
getDescription87%
pass88%
__construct88%
run88%
executeGenerator88%
onMultiContentSave88%
getZObjectViewPageHTMLTitle88%
removeReferenceFromFunction88%
run89%
sourceToFragment89%

Project Risks

Method CRAP
execute210
getErrors200
getTypeDependencies156
onRecentChange_save144
onLoadExtensionSchemaUpdates132
run60
getParameters56
remoteCall48
run46
executeFunctionCall43
makeRequest43
getParameters42
validateRequestedObject34
resolveAbstractLabel30
matchRepoAndAbstractRoutes30
getWikidataItem30
fetchFunctionFromWikifunctionsApi30
searchFunctions30
getFunctionZidOrNull30
resolveZObjectLabel30
isValid30
generateZObjectPayload30
onHtmlPageLinkRendererEnd28
run27
updateZObject27
create21
run20
userCanExecute20
userCanExecute20
getPageTitle20
getAbstractContentForTitle20
extractObjectType19
doUpdate18
loadProviderList18
register18
run17
isValid17
run17
pushZObject17
run16
insertContentObject16
getTesterObject15
isValid14
fillEmptyArgsWithDefaultValues14
getAssociatedZids13
run13
createKeyValues12
updateSecondaryTables12
sourceToFragment12
getPageTitleMsg12
getPageTitle12
convert12
makeMemcachedKey12
onCommunityConfigurationProvider_initList12
abstractContentSave12
onParserGetVariableValueSwitch12
getQueryInfo12
loadBlockedDomains12
applyCacheControl12
applyCacheControl12
execute12
execute12
convert12
generateContentDiffBody12
getZObjectEditPageHTMLTitle12
show12
getDiff12
createPersistentContent11
onResourceLoaderRegisterModules11
fillParserOutput11
run10
getImplementationObject10
run10
isValid9
generateSafeFragment9
ensureZObjectStoreIsPresent9
__construct9
__construct8
isValid8
fetchContent8
getDiffOpForElement8
fetchZObject7
getSerialized7
createInitialContent7
getTargetTitle7
isValid7
setMonoLingualString7
run7
isValid7
set7
onGetUserPermissionsErrors6
run6
onNamespaceIsMovable6
isZObjectKeyKnown6
isValid6
getErrorDescriptors6
getExternalRepresentation6
getQueryInfo6
pass6
removeReferenceFromFunction6
isCountable6
__toString6
__construct6
getOptions6
__construct6
getOptions6
getOptionName6
getAbstractUserPermissionsErrors6
onSpecialStatsAddExtra6
fetchAbstractModeLabel6
initializeZObjectJoinTable6
getParserOutput6
asDom6
render6
__construct6
instanceOfZErrorType6
formatValue6
userCanExecute6
userCanExecute6
execute6
userCanExecute6
execute6
execute6
userCanExecute6
getErrorCode6
getZErrorType6
fromArray6
getZObjectEditTitle6
getTitle6
getArgumentDeclarations6
getValueAsList6
getIndexField5
getDefaultDirections5
run5
trackSelfReference5
getRelatedZObjectsOfInstance5
getTargetFunction5
fetchLanguageCodeFromZid5
run5
sanitiseAttributes5
onMultiContentSave5
newSiteMatrix4
getZid4
filterMatches4
getFunctionDefinition4
extractInnerObject4
run4
validatePersistentKeys4
generateAbstractContentPayload4
getZObjectViewPageHTMLTitle4
makeTitleForPossiblyRemoteZObject3
getDefaultLanguage3
decodeHtmlFragmentValue3
getAliasesForLanguageCode3
submitMetricsEvent3
isAssociative3
isValid3
getDefaultDate3
getMatchingDomains3
getReturnType3
isValid3
getSecondaryDataUpdates3
getReturnType3
getDescription3
setUp2
isUrlSpamBlocked2
dieWithZError2
fetchRepoModeLabel2
userCanExecute2
getAliases2
onParserFirstCallInit2
getClientTargetUrl2
singleton2
serializeContent2
makeKey2
getNumericMetadataValue2
registerExtension2
doUpdate2
executeGenerator2
onGetMagicVariableIDs2