Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
ContentTranslation\ActionApi\ApiContentTranslationDelete0%
ContentTranslation\Service\TranslatorService0%
ContentTranslation\ActionApi\ApiContentTranslationPublish0%
ContentTranslation\HookHandler\MfLanguageSearcherEntrypointsRegistrationHandler0%
ContentTranslation\HookHandler\RecentEditEntrypointRegistrationHandler0%
ContentTranslation\HookHandler\RecentTranslationEntrypointRegistrationHandler0%
ContentTranslation\HookHandler\ULSQuickActionEntrypointRegistrationHandler0%
ContentTranslation\HookHandler\ULSRelevantLanguagesEntrypointRegistrationHandler0%
ContentTranslation\JsonDumpFormatter0%
ContentTranslation\LoadBalancer0%
ContentTranslation\Manager\TranslationCorporaManager0%
ContentTranslation\Notification0%
ContentTranslation\PreferenceHelper0%
ContentTranslation\SchemaHooks0%
ContentTranslation\SectionTranslationBeforePublishHandler0%
ContentTranslation\Service\TranslationTargetUrlCreator0%
ContentTranslation\Service\UserService0%
ContentTranslation\Exception\InvalidNotificationTitleException0%
ContentTranslation\Store\TranslationStore0%
ContentTranslation\Translator0%
ContentTranslation\Translation0%
ContentTranslation\TmxDumpFormatter0%
ContentTranslation\SuggestionListManager0%
ContentTranslation\SuggestionList0%
ContentTranslation\Suggestion0%
ContentTranslation\Store\TranslationCorporaStore0%
ContentTranslation\Service\WikidataIdFetcher0%
ContentTranslation\Store\SectionTranslationStore0%
ContentTranslation\Store\RecentSignificantEditStore0%
ContentTranslation\Special\SpecialContentTranslationStats0%
ContentTranslation\Special\SpecialContentTranslation0%
ContentTranslation\Special\SpecialAutomaticTranslation0%
ContentTranslation\SiteMapper0%
ContentTranslation\HookHandler\AxArticleFooterEntrypointRegistrationHandler0%
ContentTranslation\HookHandler\MfFrequentLanguagesEntrypointRegistrationHandler0%
ContentTranslation\Events\SignificantEditSubscriber0%
ContentTranslation\ActionApi\ApiQueryContentTranslationLanguageTrend0%
ContentTranslation\ActionApi\ApiSectionTranslationDelete0%
ContentTranslation\ActionApi\ApiQueryTranslatorStats0%
ContentTranslation\ActionApi\ApiQueryPublishedTranslations0%
ContentTranslation\ActionApi\ApiQueryLangLinksCount0%
ContentTranslation\ActionApi\ApiQueryDeletedTranslations0%
ContentTranslation\ActionApi\ApiQueryContentTranslationSuggestions0%
ContentTranslation\ActionApi\ApiQueryContentTranslationStats0%
ContentTranslation\ActionApi\ApiQueryContentTranslationCorpora0%
ContentTranslation\ActionApi\ApiSectionTranslationSave0%
ContentTranslation\ActionApi\ApiQueryContentTranslation0%
ContentTranslation\ActionApi\ApiQueryAutomaticTranslationDenseLanguages0%
ContentTranslation\ActionApi\ApiContentTranslationUnreviewedCheck0%
ContentTranslation\ActionApi\ApiContentTranslationToken0%
ContentTranslation\ActionApi\ApiContentTranslationSuggestionList0%
ContentTranslation\ActionApi\ApiContentTranslationSplit0%
ContentTranslation\ActionApi\ApiContentTranslationSave0%
ContentTranslation\ActionApi\ApiSectionTranslationPublish0%
ContentTranslation\Validator\TranslationUnitValidator0%
ContentTranslation\Entity\TranslationUnit0%
ContentTranslation\DTO\PublishedTranslationDTO0%
ContentTranslation\Entity\SectionTranslation0%
ContentTranslation\Entity\RecentSignificantEdit0%
ContentTranslation\EchoNotificationPresentationModel0%
ContentTranslation\DraftNotificationPresentationModel0%
ContentTranslation\DTO\TranslationUnitDTO0%
ContentTranslation\DTO\PublishedSectionTranslationDTO0%
ContentTranslation\DTO\DraftTranslationDTO0%
ContentTranslation\DTO\CXDraftTranslationDTO0%
ContentTranslation\DTO\AbstractTranslationDTO0%
ContentTranslation\CategoriesStorageManager0%
ContentTranslation\ArticleTopicsDefinition0%
ContentTranslation\Hooks22%
ContentTranslation\DirectParsoidClient23%
ContentTranslation\Service\SectionPositionCalculator61%
ContentTranslation\Service\SandboxTitleMaker62%
ContentTranslation\Service\SectionTitleFetcher77%
ContentTranslation\Service\EditedSectionFinder81%

Project Risks

Class CRAP
ContentTranslation\Hooks4103
ContentTranslation\Special\SpecialContentTranslation2450
ContentTranslation\ActionApi\ApiContentTranslationPublish1640
ContentTranslation\ActionApi\ApiQueryContentTranslation1260
ContentTranslation\ActionApi\ApiQueryContentTranslationSuggestions1190
ContentTranslation\Store\TranslationStore1056
ContentTranslation\Translation992
ContentTranslation\Store\SectionTranslationStore992
ContentTranslation\SuggestionListManager992
ContentTranslation\ActionApi\ApiSectionTranslationPublish812
ContentTranslation\ActionApi\ApiContentTranslationSave756
ContentTranslation\DTO\TranslationUnitDTO600
ContentTranslation\ActionApi\ApiQueryAutomaticTranslationDenseLanguages600
ContentTranslation\ActionApi\ApiSectionTranslationSave552
ContentTranslation\Manager\TranslationCorporaManager506
ContentTranslation\SuggestionList506
ContentTranslation\Store\TranslationCorporaStore380
ContentTranslation\HookHandler\AxArticleFooterEntrypointRegistrationHandler380
ContentTranslation\ActionApi\ApiContentTranslationSuggestionList272
ContentTranslation\ActionApi\ApiQueryContentTranslationLanguageTrend240
ContentTranslation\Store\RecentSignificantEditStore240
ContentTranslation\DraftNotificationPresentationModel182
ContentTranslation\SiteMapper182
ContentTranslation\PreferenceHelper156
ContentTranslation\ActionApi\ApiContentTranslationSplit156
ContentTranslation\Translator156
ContentTranslation\HookHandler\RecentEditEntrypointRegistrationHandler156
ContentTranslation\ActionApi\ApiQueryTranslatorStats132
ContentTranslation\HookHandler\MfLanguageSearcherEntrypointsRegistrationHandler132
ContentTranslation\SectionTranslationBeforePublishHandler132
ContentTranslation\TmxDumpFormatter132
ContentTranslation\HookHandler\RecentTranslationEntrypointRegistrationHandler132
ContentTranslation\ActionApi\ApiContentTranslationDelete110
ContentTranslation\ActionApi\ApiQueryPublishedTranslations110
ContentTranslation\CategoriesStorageManager110
ContentTranslation\DirectParsoidClient100
ContentTranslation\Validator\TranslationUnitValidator90
ContentTranslation\JsonDumpFormatter90
ContentTranslation\ActionApi\ApiSectionTranslationDelete90
ContentTranslation\ActionApi\ApiContentTranslationToken72
ContentTranslation\ActionApi\ApiQueryDeletedTranslations72
ContentTranslation\Service\WikidataIdFetcher72
ContentTranslation\ActionApi\ApiContentTranslationUnreviewedCheck56
ContentTranslation\EchoNotificationPresentationModel56
ContentTranslation\HookHandler\ULSRelevantLanguagesEntrypointRegistrationHandler56
ContentTranslation\Events\SignificantEditSubscriber56
ContentTranslation\HookHandler\ULSQuickActionEntrypointRegistrationHandler56
ContentTranslation\HookHandler\MfFrequentLanguagesEntrypointRegistrationHandler42
ContentTranslation\Notification42
ContentTranslation\ArticleTopicsDefinition30
ContentTranslation\Service\UserService30
ContentTranslation\Service\TranslationTargetUrlCreator20
ContentTranslation\SchemaHooks20
ContentTranslation\ActionApi\ApiQueryLangLinksCount20
ContentTranslation\Service\EditedSectionFinder18
ContentTranslation\Service\SectionPositionCalculator15
ContentTranslation\Service\TranslatorService12
ContentTranslation\DTO\DraftTranslationDTO12
ContentTranslation\LoadBalancer12
ContentTranslation\Service\SectionTitleFetcher11
ContentTranslation\Service\SandboxTitleMaker4

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
__construct0%
getPageURL0%
getApiURL0%
getRestApiURL0%
getCXServerURL0%
getCurrentLanguageCode0%
getDomainCode0%
getWikidataId0%
getQuery0%
__construct0%
getUsernameAndGender0%
getGlobalUserId0%
isTranslator0%
execute0%
__construct0%
createTargetUrl0%
createUrlForSXRedirection0%
__construct0%
findEditedSectionsBetweenRevisions0%
getPageContent0%
doAPIRequest0%
onSectionTranslationBeforePublish0%
__construct0%
onLoadExtensionSchemaUpdates0%
isCXEntrypointDisabled0%
__construct0%
getInitialLanguagesData0%
setGlobalPreference0%
isUnifiedDashboard0%
insert0%
isCurrentWikiFamilySupported0%
__construct0%
addJsConfigVars0%
initModules0%
getDescription0%
execute0%
__construct0%
afterExecute0%
addJsConfigVars0%
initModules0%
isMobileSite0%
getHtml0%
onTranslationView0%
canUserProceed0%
hasValidToken0%
encodeURIComponent0%
isValidCampaign0%
enableCXBetaFeature0%
isListed0%
execute0%
getDescription0%
__construct0%
getDescription0%
getGlobalPreference0%
isEnabledForUser0%
deleteOldEditsByUser0%
addSXPublishingFollowupModule0%
registerTags0%
onChangeTagsListActive0%
onListDefinedTags0%
onResourceLoaderRegisterModules0%
onSpecialContributionsBeforeMainOutput0%
onGetBetaFeaturePreferences0%
addModules0%
isPotentialTranslator0%
isSXEnabled0%
isMobileView0%
addMobileNewByTranslationInvitation0%
onBeforePageDisplay0%
onSaveUserOptions0%
getWikipediaList0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
isCXEntrypointEnabled0%
onEditPage__showEditForm_initial0%
onGetPreferences0%
isBetaFeatureEnabled0%
saveTranslationUnits0%
__construct0%
draftNotification0%
suggestionsAvailable0%
hundredthTranslation0%
tenthTranslation0%
firstTranslation0%
createDTOsFromTranslationUnits0%
getTranslationUnitDTOsAndCategoriesByTranslationId0%
getTranslationUnitDTOsByTranslationId0%
createTranslationUnitsFromContent0%
getFilteredCorporaUnits0%
getUnitsAndCategoriesByTranslationId0%
devModeCallback0%
getCorporaDumpArraysByTranslationId0%
__construct0%
getConnection0%
__construct0%
indent0%
formatEntry0%
getFooter0%
getHeader0%
close0%
format0%
onContributeCards0%
update0%
findEditsByUser0%
__construct0%
getDiscardedSuggestions0%
begin0%
format0%
__construct0%
getSuggestionsInList0%
getSuggestionsByType0%
getPublicSuggestions0%
doesSuggestionExist0%
removeSuggestions0%
addSuggestions0%
getSuggestionsByListName0%
getFavoriteSuggestions0%
getListById0%
formatEntry0%
getListByName0%
getListByConds0%
removeTitles0%
deleteList0%
insertList0%
__toString0%
getType0%
getEndTime0%
getStartTime0%
isPublic0%
getOwner0%
close0%
__construct0%
getDisplayNameMessage0%
__construct0%
validateTranslationUnitsForTitleUser0%
getParsoidClient0%
__construct0%
getTotalTranslatorsCount0%
getTranslatorsCount0%
getStats0%
getTranslationsCount0%
getLanguages0%
addTranslation0%
getUser0%
getGlobalUserId0%
newFromRow0%
isNew0%
getAllPublishedTranslations0%
getPublishedCondition0%
getData0%
getTargetLanguage0%
getSourceLanguage0%
getSourceTitle0%
getTranslationId0%
getTrendByStatus0%
getDeletionTrend0%
getStats0%
setIsNew0%
getInfo0%
getName0%
findExistingEdit0%
doFindTranslationsByUser0%
deleteTranslationDataGently0%
countByTranslationId0%
deleteTranslationDataBySectionId0%
deleteTranslationData0%
insertTranslationUnit0%
updateTranslationUnit0%
__construct0%
translationToDBRow0%
deleteTranslationById0%
findPublishedSectionTranslationsByUser0%
findDraftSectionTranslationsByUser0%
getStatusIndexByStatus0%
countTranslatedSubSectionsByTranslationId0%
createTranslationFromRow0%
findTranslationBySectionTitle0%
findTranslation0%
updateTranslationStatusById0%
updateTranslation0%
insertMultipleTranslations0%
insertTranslation0%
__construct0%
normalizeEdit0%
createEditFromRow0%
findEditsForPotentialSuggestions0%
findByTranslationId0%
save0%
getId0%
insertTranslation0%
newFromRow0%
__construct0%
__toString0%
getTargetLanguage0%
getSourceLanguage0%
getTitle0%
getListId0%
newFromRow0%
__construct0%
saveTranslation0%
updateTranslation0%
getAllTranslationsByUserId0%
doFind0%
findConflictingDraftTranslations0%
findTranslationsByTitles0%
findTranslationByTitle0%
findByPublishedTitle0%
findByUserAndId0%
findRecentTranslationByUser0%
findTranslationByUser0%
deleteTranslation0%
unlinkTranslationFromTranslator0%
__construct0%
createTranslationUnitFromRow0%
execute0%
isMobileView0%
onBeforePageDisplay0%
__construct0%
run0%
executeGenerator0%
execute0%
__construct0%
getExamplesMessages0%
execute0%
__construct0%
getExamplesMessages0%
getAllowedParams0%
addMissingDates0%
execute0%
getAllowedParams0%
getExistingTitles0%
execute0%
__construct0%
getExamplesMessages0%
addUnitsAndCategoriesToTranslation0%
getAllowedParams0%
serveTranslationCorporaUnits0%
serveDesktopEditorDraft0%
serveUnifiedDashboardTranslations0%
run0%
executeGenerator0%
execute0%
getOngoingTranslations0%
filterSuggestions0%
getExamplesMessages0%
__construct0%
__construct0%
getExamplesMessages0%
isWriteMode0%
needsToken0%
getAllowedParams0%
execute0%
__construct0%
getExamplesMessages0%
getAllowedParams0%
addMissingMonths0%
execute0%
getExamplesMessages0%
removeInvalidSuggestions0%
getAllowedParams0%
execute0%
__construct0%
getExamplesMessages0%
execute0%
isInternal0%
getExamplesMessages0%
getAllowedParams0%
execute0%
__construct0%
getExamplesMessages0%
getAllowedParams0%
__construct0%
getAllowedParams0%
getPublishSummary0%
getAllowedParams0%
isWriteMode0%
needsToken0%
getAllowedParams0%
saveCategories0%
isValidCategoriesJSON0%
saveTranslation0%
execute0%
__construct0%
isInternal0%
isWriteMode0%
needsToken0%
notifyTranslator0%
__construct0%
publish0%
execute0%
removeApiCategoryNamespacePrefix0%
getCategories0%
getTags0%
saveWikitext0%
getParsoidClient0%
__construct0%
getExamplesMessages0%
isWriteMode0%
needsToken0%
getAllowedParams0%
isInternal0%
validateRequest0%
run0%
getExamplesMessages0%
executeGenerator0%
execute0%
getArticleSizeInformation0%
getArticleSiteLinks0%
getWikipediaSites0%
fetchWikipediaSites0%
__construct0%
isInternal0%
execute0%
validateRequest0%
__construct0%
needsToken0%
execute0%
execute0%
getExamplesMessages0%
isWriteMode0%
needsToken0%
getAllowedParams0%
createList0%
execute0%
__construct0%
isInternal0%
isWriteMode0%
needsToken0%
getAllowedParams0%
getParsoidClient0%
submitEditAction0%
__construct0%
setId0%
setId0%
getId0%
__construct0%
mergeSectionTitles0%
getTimestamp0%
getSectionTitles0%
getLanguage0%
getPageTitle0%
getPageWikidataId0%
getUserId0%
getId0%
__construct0%
getTranslationId0%
getHeaderMessage0%
getHeaderMessageKey0%
getPrimaryLink0%
getIconType0%
getYourTranslationsLink0%
getSecondaryLinks0%
getCompactHeaderMessage0%
getHeaderMessage0%
getPrimaryLink0%
getIconType0%
fakeRESTbaseError0%
getSectionId0%
getSourceSectionTitle0%
execute0%
getValidate0%
onBeforePageDisplay0%
onSkinAfterContent0%
shouldDisplayFooterEntrypoint0%
isDisambiguationPage0%
isDiffPage0%
isEntrypointAllowedOnSkin0%
__construct0%
getTitle0%
__construct0%
handlePageUpdatedEventAfterCommit0%
__construct0%
getContent0%
getTargetSectionTitle0%
getTimestamp0%
getOrigin0%
getSequenceId0%
getSectionId0%
getTranslationId0%
__construct0%
setProgress0%
getProgress0%
getTranslationStatus0%
setTranslationStatus0%
setTargetSectionTitle0%
fakeRESTbaseHTMLResponse0%
validateContent0%
makeFakeRevision0%
isWriteMode0%
getHtmlInputTransformHelper0%
__construct0%
getLastUpdatedTimestamp0%
__construct0%
exists0%
save0%
create0%
update0%
getTopics0%
isInternal0%
needsToken0%
toArray0%
getAllowedParams0%
saveSectionTranslation0%
saveTranslation0%
createNewTranslationFromPayload0%
execute0%
validateRequest0%
__construct0%
isInternal0%
isWriteMode0%
needsToken0%
getAllowedParams0%
createFromTranslation0%
__construct0%
storeTags0%
toArray0%
publish0%
getHtmlOutputRendererHelper0%
__construct0%
getBaseSectionId0%
getMwSectionNumber0%
getRevision0%
toCorporaDumpArray0%
toCustomArray0%
saveWikitext0%
prependSectionTitle0%
hasSourceBlob0%
hasUserBlob0%
getMtBlob0%
getUserBlob0%
toArray0%
setBlobForType0%
__construct0%
toArray0%
__construct0%
toArray0%
__construct0%
updateTranslation0%
fetchAppendixTitles16%
makeSandboxTitle50%
convertWikitextToHtml71%
validateMwSectionNumbers75%
fetchSectionTitles76%
convertHtmlToWikitext83%
onEchoGetBundleRules85%

Project Risks

Method CRAP
addModules342
run210
onEditPage__showEditForm_initial210
run182
execute182
onBeforePageDisplay132
onBeforePageDisplay110
validateRequest90
hasValidToken72
shouldDisplayFooterEntrypoint72
serveUnifiedDashboardTranslations72
__construct72
execute72
getTrendByStatus72
publish72
canUserProceed56
getExistingTitles56
addMobileNewByTranslationInvitation56
isPotentialTranslator56
onSpecialContributionsBeforeMainOutput56
getCategories56
execute56
onSaveUserOptions56
publish42
execute42
handlePageUpdatedEventAfterCommit42
getAllTranslationsByUserId42
getWikidataId42
initModules42
serveDesktopEditorDraft42
getOngoingTranslations42
onBeforePageDisplay42
createTranslationUnitsFromContent42
execute42
notifyTranslator42
formatEntry42
execute42
fetchWikipediaSites42
getArticleSizeInformation42
findPublishedSectionTranslationsByUser42
execute42
addMissingDates42
onBeforePageDisplay30
createDTOsFromTranslationUnits30
isUnifiedDashboard30
getPageContent30
afterExecute30
doFindTranslationsByUser30
execute30
validateRequest30
getArticleSiteLinks30
validateTranslationUnitsForTitleUser30
getTopics30
getAllPublishedTranslations30
getDeletionTrend30
getCurrentLanguageCode20
onBeforePageDisplay20
getSuggestionsByListName20
onBeforePageDisplay20
isCXEntrypointEnabled20
execute20
create20
execute20
addMissingMonths20
execute20
findEditedSectionsBetweenRevisions20
addSXPublishingFollowupModule20
execute20
getHeaderMessage20
isValidCampaign20
execute20
onResourceLoaderRegisterModules20
toCorporaDumpArray20
toCustomArray20
setBlobForType20
onLoadExtensionSchemaUpdates20
fetchAppendixTitles13
getTranslationUnitDTOsAndCategoriesByTranslationId12
getSuggestionsInList12
isEnabledForUser12
getLanguages12
getSuggestionsByType12
deleteTranslationDataGently12
addSuggestions12
onSectionTranslationBeforePublish12
insertList12
getCXServerURL12
saveTranslation12
updateTranslation12
findTranslationByUser12
insertMultipleTranslations12
saveWikitext12
findDraftSectionTranslationsByUser12
save12
onContributeCards12
saveWikitext12
registerTags12
execute12
execute12
isDiffPage12
createList12
getHtmlOutputRendererHelper12
getIconType12
fakeRESTbaseError12
saveCategories12
isValidCategoriesJSON12
saveTranslation12
save12
getPrimaryLink12
fetchSectionTitles10
findTranslationsByTitles6
findTranslationByTitle6
findConflictingDraftTranslations6
saveTranslation6
findByPublishedTitle6
onGetPreferences6
findByUserAndId6
findRecentTranslationByUser6
doFind6
update6
findByTranslationId6
updateTranslationUnit6
__construct6
getRevision6
saveSectionTranslation6
getDisplayNameMessage6
insertTranslation6
removeSuggestions6
getTags6
getTranslatorsCount6
removeApiCategoryNamespacePrefix6
newFromRow6
getStats6
execute6
format6
validateRequest6
serveTranslationCorporaUnits6
submitEditAction6
getFavoriteSuggestions6
getDiscardedSuggestions6
getListByConds6
removeTitles6
getType6
getOwner6
getStatusIndexByStatus6
getPublishSummary6
getMwSectionNumber6
findEditsForPotentialSuggestions6
createTranslationFromRow6
isBetaFeatureEnabled6
onBeforePageDisplay6
doAPIRequest6
isMobileView6
getWikipediaList6
isCXEntrypointDisabled6
getGlobalPreference6
setGlobalPreference6
isMobileView6
draftNotification6
findTranslationBySectionTitle6
isSXEnabled6
onGetBetaFeaturePreferences6
saveTranslationUnits6
getCorporaDumpArraysByTranslationId6
getConnection6
formatEntry6
close6
format6
onSkinAfterContent6
isDisambiguationPage6
validateContent6
isMobileSite6
devModeCallback6
findExistingEdit6
findEditsByUser6
deleteOldEditsByUser6
update6
addJsConfigVars6
createTargetUrl6
getPrimaryLink6
findTranslation6
getSecondaryLinks6
getRestApiURL6
getHeaderMessage6
getDomainCode6
getUsernameAndGender6
getGlobalUserId6
isTranslator6
getBaseSectionId6
makeSandboxTitle4
onEchoGetBundleRules4
validateMwSectionNumbers3
convertWikitextToHtml2
convertHtmlToWikitext2