Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
ContentTranslation\ActionApi\ApiContentTranslationDelete0%
ContentTranslation\Service\TranslatorService0%
ContentTranslation\HookHandler\RecentTranslationEntrypointRegistrationHandler0%
ContentTranslation\HookHandler\SignificantEditCreationHandler0%
ContentTranslation\HookHandler\ULSQuickActionEntrypointRegistrationHandler0%
ContentTranslation\HookHandler\ULSRelevantLanguagesEntrypointRegistrationHandler0%
ContentTranslation\Hooks0%
ContentTranslation\JsonDumpFormatter0%
ContentTranslation\LoadBalancer0%
ContentTranslation\Manager\TranslationCorporaManager0%
ContentTranslation\Notification0%
ContentTranslation\PreferenceHelper0%
ContentTranslation\SchemaHooks0%
ContentTranslation\SectionTranslationBeforePublishHandler0%
ContentTranslation\Service\TranslationTargetUrlCreator0%
ContentTranslation\Service\UserService0%
ContentTranslation\HookHandler\MfFrequentLanguagesEntrypointRegistrationHandler0%
ContentTranslation\Service\WikidataIdFetcher0%
ContentTranslation\SiteMapper0%
ContentTranslation\Special\SpecialContentTranslation0%
ContentTranslation\Special\SpecialContentTranslationStats0%
ContentTranslation\Store\RecentSignificantEditStore0%
ContentTranslation\Store\SectionTranslationStore0%
ContentTranslation\Store\TranslationCorporaStore0%
ContentTranslation\Store\TranslationStore0%
ContentTranslation\Suggestion0%
ContentTranslation\SuggestionList0%
ContentTranslation\SuggestionListManager0%
ContentTranslation\TmxDumpFormatter0%
ContentTranslation\Translation0%
ContentTranslation\Translator0%
ContentTranslation\ActionApi\ApiContentTranslationPublish0%
ContentTranslation\HookHandler\RecentEditEntrypointRegistrationHandler0%
ContentTranslation\Exception\InvalidNotificationTitleException0%
ContentTranslation\ActionApi\ApiQueryContentTranslationLanguageTrend0%
ContentTranslation\ActionApi\ApiQueryTranslatorStats0%
ContentTranslation\ActionApi\ApiQueryPublishedTranslations0%
ContentTranslation\ActionApi\ApiQueryLangLinksCount0%
ContentTranslation\ActionApi\ApiQueryDeletedTranslations0%
ContentTranslation\ActionApi\ApiQueryContentTranslationSuggestions0%
ContentTranslation\ActionApi\ApiQueryContentTranslationStats0%
ContentTranslation\ActionApi\ApiQueryContentTranslationCorpora0%
ContentTranslation\ActionApi\ApiSectionTranslationPublish0%
ContentTranslation\ActionApi\ApiQueryContentTranslation0%
ContentTranslation\ActionApi\ApiContentTranslationUnreviewedCheck0%
ContentTranslation\ActionApi\ApiContentTranslationToken0%
ContentTranslation\ActionApi\ApiContentTranslationSuggestionList0%
ContentTranslation\ActionApi\ApiContentTranslationSplit0%
ContentTranslation\ActionApi\ApiContentTranslationSave0%
ContentTranslation\ActionApi\ApiSectionTranslationDelete0%
ContentTranslation\ActionApi\ApiSectionTranslationSave0%
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\Validator\TranslationUnitValidator0%
ContentTranslation\DirectParsoidClient23%
ContentTranslation\Service\SectionPositionCalculator61%
ContentTranslation\Service\SandboxTitleMaker62%
ContentTranslation\Service\SectionTitleFetcher77%
ContentTranslation\Service\EditedSectionFinder81%

Project Risks

Class CRAP
ContentTranslation\Hooks8930
ContentTranslation\Special\SpecialContentTranslation2450
ContentTranslation\ActionApi\ApiContentTranslationPublish1640
ContentTranslation\ActionApi\ApiQueryContentTranslation1260
ContentTranslation\Translation1190
ContentTranslation\ActionApi\ApiQueryContentTranslationSuggestions1190
ContentTranslation\Store\TranslationStore1056
ContentTranslation\Store\SectionTranslationStore992
ContentTranslation\SuggestionListManager992
ContentTranslation\ActionApi\ApiSectionTranslationPublish812
ContentTranslation\ActionApi\ApiContentTranslationSave756
ContentTranslation\DTO\TranslationUnitDTO600
ContentTranslation\ActionApi\ApiSectionTranslationSave552
ContentTranslation\Manager\TranslationCorporaManager506
ContentTranslation\SuggestionList506
ContentTranslation\Store\TranslationCorporaStore380
ContentTranslation\ActionApi\ApiContentTranslationSuggestionList272
ContentTranslation\Store\RecentSignificantEditStore240
ContentTranslation\ActionApi\ApiQueryContentTranslationLanguageTrend240
ContentTranslation\DraftNotificationPresentationModel182
ContentTranslation\SiteMapper182
ContentTranslation\HookHandler\RecentEditEntrypointRegistrationHandler156
ContentTranslation\Translator156
ContentTranslation\PreferenceHelper156
ContentTranslation\ActionApi\ApiContentTranslationSplit156
ContentTranslation\TmxDumpFormatter132
ContentTranslation\ActionApi\ApiQueryTranslatorStats132
ContentTranslation\HookHandler\RecentTranslationEntrypointRegistrationHandler132
ContentTranslation\SectionTranslationBeforePublishHandler132
ContentTranslation\ActionApi\ApiQueryPublishedTranslations110
ContentTranslation\CategoriesStorageManager110
ContentTranslation\ActionApi\ApiContentTranslationDelete110
ContentTranslation\DirectParsoidClient100
ContentTranslation\Validator\TranslationUnitValidator90
ContentTranslation\JsonDumpFormatter90
ContentTranslation\ActionApi\ApiSectionTranslationDelete90
ContentTranslation\Service\WikidataIdFetcher72
ContentTranslation\ActionApi\ApiContentTranslationToken72
ContentTranslation\ActionApi\ApiContentTranslationUnreviewedCheck72
ContentTranslation\ActionApi\ApiQueryDeletedTranslations72
ContentTranslation\EchoNotificationPresentationModel56
ContentTranslation\HookHandler\SignificantEditCreationHandler56
ContentTranslation\HookHandler\ULSQuickActionEntrypointRegistrationHandler56
ContentTranslation\HookHandler\MfFrequentLanguagesEntrypointRegistrationHandler42
ContentTranslation\Notification42
ContentTranslation\Service\UserService30
ContentTranslation\HookHandler\ULSRelevantLanguagesEntrypointRegistrationHandler30
ContentTranslation\SchemaHooks20
ContentTranslation\Service\TranslationTargetUrlCreator20
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%
getWikidataId0%
isListed0%
execute0%
getDescription0%
__construct0%
getPageURL0%
getApiURL0%
getRestApiURL0%
getCXServerURL0%
getCurrentLanguageCode0%
getDomainCode0%
getQuery0%
isValidCampaign0%
__construct0%
getUsernameAndGender0%
getGlobalUserId0%
__construct0%
isTranslator0%
__construct0%
createTargetUrl0%
createUrlForSXRedirection0%
__construct0%
findEditedSectionsBetweenRevisions0%
enableCXBetaFeature0%
encodeURIComponent0%
doAPIRequest0%
__construct0%
__construct0%
normalizeEdit0%
createEditFromRow0%
findEditsForPotentialSuggestions0%
findExistingEdit0%
findEditsByUser0%
deleteOldEditsByUser0%
update0%
insert0%
isCurrentWikiFamilySupported0%
addJsConfigVars0%
hasValidToken0%
initModules0%
getDescription0%
execute0%
__construct0%
afterExecute0%
addJsConfigVars0%
initModules0%
isUnifiedDashboard0%
isMobileSite0%
onTranslationView0%
canUserProceed0%
getPageContent0%
onSectionTranslationBeforePublish0%
insertMultipleTranslations0%
onChangeTagsListActive0%
close0%
format0%
onContributeCards0%
devModeCallback0%
onGetPreferences0%
onEchoGetBundleRules0%
onBeforeCreateEchoEvent0%
onSaveUserOptions0%
onEditPage__showEditForm_initial0%
registerTags0%
onListDefinedTags0%
getFooter0%
onResourceLoaderRegisterModules0%
onSpecialContributionsBeforeMainOutput0%
onGetBetaFeaturePreferences0%
addModules0%
isPotentialTranslator0%
isSXEnabled0%
isMobileView0%
addMobileNewByTranslationInvitation0%
addSXPublishingFollowupModule0%
onBeforePageDisplay0%
getHeader0%
formatEntry0%
__construct0%
tenthTranslation0%
onLoadExtensionSchemaUpdates0%
isCXEntrypointDisabled0%
getGlobalPreference0%
setGlobalPreference0%
isEnabledForUser0%
isBetaFeatureEnabled0%
__construct0%
draftNotification0%
suggestionsAvailable0%
hundredthTranslation0%
firstTranslation0%
indent0%
createDTOsFromTranslationUnits0%
getTranslationUnitDTOsAndCategoriesByTranslationId0%
getTranslationUnitDTOsByTranslationId0%
createTranslationUnitsFromContent0%
getFilteredCorporaUnits0%
saveTranslationUnits0%
getUnitsAndCategoriesByTranslationId0%
getCorporaDumpArraysByTranslationId0%
__construct0%
getConnection0%
__construct0%
insertTranslation0%
updateTranslation0%
__construct0%
removeSuggestions0%
__construct0%
formatEntry0%
close0%
begin0%
format0%
__construct0%
getSuggestionsInList0%
getSuggestionsByType0%
getPublicSuggestions0%
doesSuggestionExist0%
addSuggestions0%
setIsNew0%
getSuggestionsByListName0%
getFavoriteSuggestions0%
getDiscardedSuggestions0%
getListById0%
getListByName0%
getListByConds0%
removeTitles0%
deleteList0%
insertList0%
__toString0%
isNew0%
getStats0%
getEndTime0%
getGlobalUserId0%
validateTranslationUnitsForTitleUser0%
getParsoidClient0%
__construct0%
getTotalTranslatorsCount0%
getTranslatorsCount0%
getStats0%
getTranslationsCount0%
getLanguages0%
addTranslation0%
getUser0%
__construct0%
getDraftStats0%
newFromRow0%
getAllPublishedTranslations0%
getPublishedCondition0%
getData0%
getTargetLanguage0%
getSourceLanguage0%
getSourceTitle0%
getTranslationId0%
getTrendByStatus0%
getDeletionTrend0%
getPublishedStats0%
getType0%
getStartTime0%
updateTranslationStatusById0%
insertTranslationUnit0%
__construct0%
createTranslationUnitFromRow0%
doFind0%
save0%
countTranslatedSubSectionsByTranslationId0%
findByTranslationId0%
deleteTranslationDataGently0%
countByTranslationId0%
deleteTranslationDataBySectionId0%
deleteTranslationData0%
updateTranslationUnit0%
deleteTranslation0%
__construct0%
translationToDBRow0%
deleteTranslationById0%
findPublishedSectionTranslationsByUser0%
findDraftSectionTranslationsByUser0%
doFindTranslationsByUser0%
getStatusIndexByStatus0%
createTranslationFromRow0%
findTranslationBySectionTitle0%
findTranslation0%
unlinkTranslationFromTranslator0%
findTranslationByUser0%
isPublic0%
getTitle0%
getOwner0%
getInfo0%
getDisplayNameMessage0%
getName0%
getId0%
newFromRow0%
__construct0%
__toString0%
getTargetLanguage0%
getSourceLanguage0%
getListId0%
findRecentTranslationByUser0%
newFromRow0%
__construct0%
saveTranslation0%
updateTranslation0%
insertTranslation0%
getAllTranslationsByUserId0%
findConflictingDraftTranslations0%
findTranslationsByTitles0%
findTranslationByTitle0%
findByPublishedTitle0%
findByUserAndId0%
execute0%
onBeforePageDisplay0%
onBeforePageDisplay0%
execute0%
getAllowedParams0%
removeInvalidSuggestions0%
filterSuggestions0%
getExistingTitles0%
getOngoingTranslations0%
run0%
executeGenerator0%
execute0%
__construct0%
getExamplesMessages0%
__construct0%
__construct0%
getExamplesMessages0%
getAllowedParams0%
addMissingDates0%
execute0%
__construct0%
getAllowedParams0%
execute0%
__construct0%
getExamplesMessages0%
addUnitsAndCategoriesToTranslation0%
getAllowedParams0%
getExamplesMessages0%
execute0%
serveDesktopEditorDraft0%
getExamplesMessages0%
submitEditAction0%
getPublishSummary0%
getParsoidClient0%
__construct0%
getExamplesMessages0%
isWriteMode0%
needsToken0%
getAllowedParams0%
execute0%
__construct0%
getAllowedParams0%
getAllowedParams0%
addMissingMonths0%
execute0%
__construct0%
getExamplesMessages0%
getAllowedParams0%
execute0%
__construct0%
getExamplesMessages0%
execute0%
isInternal0%
getExamplesMessages0%
serveTranslationCorporaUnits0%
serveUnifiedDashboardTranslations0%
publish0%
notifyTranslator0%
getAllowedParams0%
saveCategories0%
isValidCategoriesJSON0%
saveTranslation0%
execute0%
__construct0%
isInternal0%
isWriteMode0%
needsToken0%
getAllowedParams0%
publish0%
isWriteMode0%
execute0%
removeApiCategoryNamespacePrefix0%
getCategories0%
getTags0%
saveWikitext0%
getParsoidClient0%
__construct0%
getExamplesMessages0%
isWriteMode0%
needsToken0%
getAllowedParams0%
needsToken0%
isInternal0%
run0%
getExamplesMessages0%
executeGenerator0%
execute0%
__construct0%
isInternal0%
execute0%
validateRequest0%
__construct0%
getExamplesMessages0%
needsToken0%
execute0%
isWriteMode0%
__construct0%
needsToken0%
getAllowedParams0%
createList0%
execute0%
__construct0%
isInternal0%
isWriteMode0%
needsToken0%
getAllowedParams0%
execute0%
validateRequest0%
execute0%
saveWikitext0%
__construct0%
getId0%
setId0%
getId0%
__construct0%
mergeSectionTitles0%
getTimestamp0%
getSectionTitles0%
getLanguage0%
getPageTitle0%
getPageWikidataId0%
getUserId0%
setId0%
getTranslationId0%
__construct0%
getHeaderMessage0%
getHeaderMessageKey0%
getPrimaryLink0%
getIconType0%
getYourTranslationsLink0%
getSecondaryLinks0%
getCompactHeaderMessage0%
getHeaderMessage0%
getPrimaryLink0%
getIconType0%
getSectionId0%
getSourceSectionTitle0%
fakeRESTbaseHTMLResponse0%
getValidate0%
onRevisionFromEditComplete0%
__construct0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
__construct0%
getTitle0%
__construct0%
getContent0%
getTargetSectionTitle0%
getTimestamp0%
getOrigin0%
getSequenceId0%
getSectionId0%
getTranslationId0%
__construct0%
setProgress0%
getProgress0%
getTranslationStatus0%
setTranslationStatus0%
setTargetSectionTitle0%
fakeRESTbaseError0%
validateContent0%
prependSectionTitle0%
getAllowedParams0%
__construct0%
getLastUpdatedTimestamp0%
__construct0%
exists0%
save0%
create0%
update0%
isInternal0%
isWriteMode0%
needsToken0%
saveSectionTranslation0%
toArray0%
saveTranslation0%
createNewTranslationFromPayload0%
execute0%
validateRequest0%
__construct0%
isInternal0%
isWriteMode0%
needsToken0%
getAllowedParams0%
updateTranslation0%
storeTags0%
createFromTranslation0%
__construct0%
toCustomArray0%
hasSourceBlob0%
makeFakeRevision0%
getHtmlInputTransformHelper0%
getHtmlOutputRendererHelper0%
__construct0%
getBaseSectionId0%
getMwSectionNumber0%
getRevision0%
toCorporaDumpArray0%
toArray0%
hasUserBlob0%
getMtBlob0%
getUserBlob0%
toArray0%
setBlobForType0%
__construct0%
toArray0%
__construct0%
toArray0%
__construct0%
fetchAppendixTitles16%
makeSandboxTitle50%
convertWikitextToHtml71%
validateMwSectionNumbers75%
fetchSectionTitles76%
convertHtmlToWikitext83%

Project Risks

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