Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
ContentTranslation\ActionApi\ApiContentTranslationDelete0%
ContentTranslation\Service\TranslatorService0%
ContentTranslation\HookHandler\RecentEditEntrypointRegistrationHandler0%
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\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\ActionApi\ApiContentTranslationPublish0%
ContentTranslation\HookHandler\MfLanguageSearcherEntrypointsRegistrationHandler0%
ContentTranslation\HookHandler\AxArticleFooterEntrypointRegistrationHandler0%
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\ApiQueryAutomaticTranslationDenseLanguages0%
ContentTranslation\ActionApi\ApiContentTranslationUnreviewedCheck0%
ContentTranslation\ActionApi\ApiContentTranslationToken0%
ContentTranslation\ActionApi\ApiContentTranslationSuggestionList0%
ContentTranslation\ActionApi\ApiContentTranslationSplit0%
ContentTranslation\ActionApi\ApiContentTranslationSave0%
ContentTranslation\ActionApi\ApiSectionTranslationDelete0%
ContentTranslation\ActionApi\ApiSectionTranslationSave0%
ContentTranslation\Exception\InvalidNotificationTitleException0%
ContentTranslation\DTO\PublishedTranslationDTO0%
ContentTranslation\Entity\TranslationUnit0%
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\Hooks8556
ContentTranslation\Special\SpecialContentTranslation2450
ContentTranslation\ActionApi\ApiContentTranslationPublish1640
ContentTranslation\ActionApi\ApiQueryContentTranslation1260
ContentTranslation\ActionApi\ApiQueryContentTranslationSuggestions1190
ContentTranslation\Store\TranslationStore1056
ContentTranslation\Store\SectionTranslationStore992
ContentTranslation\Translation992
ContentTranslation\SuggestionListManager992
ContentTranslation\ActionApi\ApiSectionTranslationPublish812
ContentTranslation\ActionApi\ApiContentTranslationSave756
ContentTranslation\DTO\TranslationUnitDTO600
ContentTranslation\ActionApi\ApiSectionTranslationSave552
ContentTranslation\Manager\TranslationCorporaManager506
ContentTranslation\ActionApi\ApiQueryAutomaticTranslationDenseLanguages506
ContentTranslation\SuggestionList506
ContentTranslation\HookHandler\AxArticleFooterEntrypointRegistrationHandler380
ContentTranslation\Store\TranslationCorporaStore380
ContentTranslation\ActionApi\ApiContentTranslationSuggestionList272
ContentTranslation\Store\RecentSignificantEditStore240
ContentTranslation\ActionApi\ApiQueryContentTranslationLanguageTrend240
ContentTranslation\SiteMapper182
ContentTranslation\DraftNotificationPresentationModel182
ContentTranslation\PreferenceHelper156
ContentTranslation\Translator156
ContentTranslation\ActionApi\ApiContentTranslationSplit156
ContentTranslation\HookHandler\RecentEditEntrypointRegistrationHandler156
ContentTranslation\TmxDumpFormatter132
ContentTranslation\HookHandler\MfLanguageSearcherEntrypointsRegistrationHandler132
ContentTranslation\HookHandler\RecentTranslationEntrypointRegistrationHandler132
ContentTranslation\ActionApi\ApiQueryTranslatorStats132
ContentTranslation\SectionTranslationBeforePublishHandler132
ContentTranslation\ActionApi\ApiContentTranslationDelete110
ContentTranslation\CategoriesStorageManager110
ContentTranslation\ActionApi\ApiQueryPublishedTranslations110
ContentTranslation\DirectParsoidClient100
ContentTranslation\Validator\TranslationUnitValidator90
ContentTranslation\JsonDumpFormatter90
ContentTranslation\ActionApi\ApiSectionTranslationDelete90
ContentTranslation\Service\WikidataIdFetcher72
ContentTranslation\ActionApi\ApiContentTranslationToken72
ContentTranslation\ActionApi\ApiQueryDeletedTranslations72
ContentTranslation\ActionApi\ApiContentTranslationUnreviewedCheck56
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%
__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%
isMobileView0%
onSaveUserOptions0%
onEditPage__showEditForm_initial0%
registerTags0%
onChangeTagsListActive0%
onListDefinedTags0%
onResourceLoaderRegisterModules0%
onSpecialContributionsBeforeMainOutput0%
onGetBetaFeaturePreferences0%
addModules0%
isPotentialTranslator0%
isSXEnabled0%
addMobileNewByTranslationInvitation0%
onEchoGetBundleRules0%
addSXPublishingFollowupModule0%
onBeforePageDisplay0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
__construct0%
onRevisionFromEditComplete0%
__construct0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
onBeforeCreateEchoEvent0%
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%
onBeforePageDisplay0%
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%
__construct0%
isCXEntrypointEnabled0%
getAllowedParams0%
executeGenerator0%
execute0%
__construct0%
getExamplesMessages0%
execute0%
__construct0%
getExamplesMessages0%
getAllowedParams0%
addMissingDates0%
execute0%
__construct0%
execute0%
getOngoingTranslations0%
__construct0%
getExamplesMessages0%
addUnitsAndCategoriesToTranslation0%
getAllowedParams0%
serveTranslationCorporaUnits0%
serveDesktopEditorDraft0%
serveUnifiedDashboardTranslations0%
run0%
executeGenerator0%
execute0%
__construct0%
run0%
getExistingTitles0%
getAllowedParams0%
getExamplesMessages0%
getExamplesMessages0%
isWriteMode0%
needsToken0%
getAllowedParams0%
execute0%
__construct0%
getExamplesMessages0%
getAllowedParams0%
addMissingMonths0%
execute0%
__construct0%
getAllowedParams0%
filterSuggestions0%
execute0%
__construct0%
getExamplesMessages0%
execute0%
isInternal0%
getExamplesMessages0%
getAllowedParams0%
execute0%
__construct0%
getExamplesMessages0%
getAllowedParams0%
removeInvalidSuggestions0%
getExamplesMessages0%
run0%
getParsoidClient0%
notifyTranslator0%
needsToken0%
getAllowedParams0%
saveCategories0%
isValidCategoriesJSON0%
saveTranslation0%
execute0%
__construct0%
isInternal0%
isWriteMode0%
needsToken0%
getAllowedParams0%
publish0%
isInternal0%
execute0%
removeApiCategoryNamespacePrefix0%
getCategories0%
getTags0%
saveWikitext0%
getParsoidClient0%
__construct0%
getExamplesMessages0%
isWriteMode0%
needsToken0%
getAllowedParams0%
isWriteMode0%
__construct0%
executeGenerator0%
needsToken0%
execute0%
getArticleSizeInformation0%
getArticleSiteLinks0%
getWikipediaSites0%
fetchWikipediaSites0%
__construct0%
isInternal0%
execute0%
validateRequest0%
__construct0%
getExamplesMessages0%
execute0%
validateRequest0%
getExamplesMessages0%
isWriteMode0%
needsToken0%
getAllowedParams0%
createList0%
execute0%
__construct0%
isInternal0%
isWriteMode0%
needsToken0%
getAllowedParams0%
execute0%
__construct0%
getPublishSummary0%
isMobileView0%
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%
submitEditAction0%
__construct0%
__construct0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
onSkinAfterContent0%
shouldDisplayFooterEntrypoint0%
isDisambiguationPage0%
isDiffPage0%
isEntrypointAllowedOnSkin0%
__construct0%
getTitle0%
getValidate0%
getTargetSectionTitle0%
getContent0%
getTimestamp0%
getOrigin0%
getSequenceId0%
getSectionId0%
getTranslationId0%
__construct0%
setProgress0%
getProgress0%
getTranslationStatus0%
setTranslationStatus0%
setTargetSectionTitle0%
fakeRESTbaseHTMLResponse0%
validateContent0%
makeFakeRevision0%
createNewTranslationFromPayload0%
__construct0%
exists0%
save0%
create0%
update0%
isInternal0%
isWriteMode0%
needsToken0%
getAllowedParams0%
saveSectionTranslation0%
saveTranslation0%
execute0%
__construct0%
validateRequest0%
__construct0%
isInternal0%
isWriteMode0%
needsToken0%
getAllowedParams0%
updateTranslation0%
storeTags0%
prependSectionTitle0%
saveWikitext0%
publish0%
execute0%
getLastUpdatedTimestamp0%
createFromTranslation0%
hasSourceBlob0%
__construct0%
getMwSectionNumber0%
getRevision0%
toCorporaDumpArray0%
getHtmlOutputRendererHelper0%
getHtmlInputTransformHelper0%
toCustomArray0%
toArray0%
hasUserBlob0%
getMtBlob0%
getUserBlob0%
toArray0%
setBlobForType0%
__construct0%
toArray0%
__construct0%
toArray0%
__construct0%
toArray0%
__construct0%
getBaseSectionId0%
fetchAppendixTitles16%
makeSandboxTitle50%
convertWikitextToHtml71%
validateMwSectionNumbers75%
fetchSectionTitles76%
convertHtmlToWikitext83%

Project Risks

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