Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
ContentTranslation\ActionApi\ApiContentTranslationDelete0%
ContentTranslation\ActionApi\ApiContentTranslationFavoriteSuggestions0%
ContentTranslation\ActionApi\ApiContentTranslationPublish0%
ContentTranslation\ActionApi\ApiContentTranslationSave0%
ContentTranslation\ActionApi\ApiContentTranslationSplit0%
ContentTranslation\ActionApi\ApiContentTranslationToken0%
ContentTranslation\ActionApi\ApiContentTranslationUnreviewedCheck0%
ContentTranslation\ActionApi\ApiQueryAutomaticTranslationDenseLanguages0%
ContentTranslation\ActionApi\ApiQueryContentTranslation0%
ContentTranslation\ActionApi\ApiQueryContentTranslationConfig0%
ContentTranslation\ActionApi\ApiQueryContentTranslationCorpora0%
ContentTranslation\ActionApi\ApiQueryContentTranslationFavoriteSuggestions0%
ContentTranslation\ActionApi\ApiQueryDeletedTranslations0%
ContentTranslation\ActionApi\ApiQueryLangLinksCount0%
ContentTranslation\ActionApi\ApiQueryPublishedTranslations0%
ContentTranslation\ActionApi\ApiQueryTranslatorStats0%
ContentTranslation\ActionApi\ApiSectionTranslationDelete0%
ContentTranslation\ActionApi\ApiSectionTranslationPublish0%
ContentTranslation\ActionApi\ApiSectionTranslationSave0%
ContentTranslation\ArticleCountriesDefinition0%
ContentTranslation\ArticleTopicsDefinition0%
ContentTranslation\CategoryStore0%
ContentTranslation\ConnectionProvider0%
ContentTranslation\DTO\AbstractTranslationDTO0%
ContentTranslation\DTO\CXDraftTranslationDTO0%
ContentTranslation\DTO\DraftTranslationDTO0%
ContentTranslation\DTO\PublishedSectionTranslationDTO0%
ContentTranslation\DTO\PublishedTranslationDTO0%
ContentTranslation\DTO\TranslationUnitDTO0%
ContentTranslation\DraftNotificationPresentationModel0%
ContentTranslation\EchoNotificationPresentationModel0%
ContentTranslation\Entity\RecentSignificantEdit0%
ContentTranslation\Entity\SectionTranslation0%
ContentTranslation\Entity\TranslationUnit0%
ContentTranslation\Events\SignificantEditEventIngress0%
ContentTranslation\Exception\InvalidNotificationTitleException0%
ContentTranslation\HookHandler\AxArticleFooterEntrypointRegistrationHandler0%
ContentTranslation\HookHandler\MfLanguageSearcherEntrypointsRegistrationHandler0%
ContentTranslation\HookHandler\RecentEditEntrypointRegistrationHandler0%
ContentTranslation\HookHandler\RecentTranslationEntrypointRegistrationHandler0%
ContentTranslation\HookHandler\ULSQuickActionEntrypointRegistrationHandler0%
ContentTranslation\HookHandler\ULSRelevantLanguagesEntrypointRegistrationHandler0%
ContentTranslation\JsonDumpFormatter0%
ContentTranslation\Manager\TranslationCorporaManager0%
ContentTranslation\Notification0%
ContentTranslation\PreferenceHelper0%
ContentTranslation\SchemaHooks0%
ContentTranslation\SectionTranslationBeforePublishHandler0%
ContentTranslation\Service\CxServerClient0%
ContentTranslation\Service\SectionContentEvaluator0%
ContentTranslation\Service\SectionMappingFetcher0%
ContentTranslation\Service\TranslationTargetUrlCreator0%
ContentTranslation\Service\TranslatorService0%
ContentTranslation\Service\UserService0%
ContentTranslation\Service\WikidataIdFetcher0%
ContentTranslation\SiteMapper0%
ContentTranslation\Special\SpecialAutomaticTranslation0%
ContentTranslation\Special\SpecialContentTranslation0%
ContentTranslation\Store\FavoriteSuggestionStore0%
ContentTranslation\Store\RecentSignificantEditStore0%
ContentTranslation\Store\SectionTranslationStore0%
ContentTranslation\Store\TranslationCorporaStore0%
ContentTranslation\Store\TranslationStore0%
ContentTranslation\Store\TranslatorStore0%
ContentTranslation\Suggestion0%
ContentTranslation\SuggestionList0%
ContentTranslation\TmxDumpFormatter0%
ContentTranslation\Translation0%
ContentTranslation\Validator\TranslationUnitValidator0%
ContentTranslation\SectionAction0%
ContentTranslation\Hooks18%
ContentTranslation\DirectParsoidClient23%
ContentTranslation\Service\SandboxTitleMaker57%
ContentTranslation\Service\SectionTitleFetcher70%
ContentTranslation\Service\EditedSectionFinder81%
ContentTranslation\Service\SectionPositionCalculator86%

Project Risks

Class CRAP
ContentTranslation\Hooks4448
ContentTranslation\Special\SpecialContentTranslation2352
ContentTranslation\Store\TranslationStore2352
ContentTranslation\ActionApi\ApiContentTranslationPublish2070
ContentTranslation\ActionApi\ApiSectionTranslationPublish1056
ContentTranslation\Store\SectionTranslationStore992
ContentTranslation\ActionApi\ApiQueryContentTranslation870
ContentTranslation\ActionApi\ApiContentTranslationSave812
ContentTranslation\ActionApi\ApiQueryAutomaticTranslationDenseLanguages600
ContentTranslation\ActionApi\ApiSectionTranslationSave600
ContentTranslation\DTO\TranslationUnitDTO600
ContentTranslation\Manager\TranslationCorporaManager506
ContentTranslation\SuggestionList506
ContentTranslation\Store\TranslationCorporaStore420
ContentTranslation\HookHandler\AxArticleFooterEntrypointRegistrationHandler380
ContentTranslation\Service\SectionContentEvaluator272
ContentTranslation\ActionApi\ApiContentTranslationFavoriteSuggestions240
ContentTranslation\Store\RecentSignificantEditStore240
ContentTranslation\PreferenceHelper210
ContentTranslation\DraftNotificationPresentationModel182
ContentTranslation\HookHandler\RecentEditEntrypointRegistrationHandler182
ContentTranslation\SiteMapper182
ContentTranslation\ActionApi\ApiContentTranslationSplit156
ContentTranslation\HookHandler\MfLanguageSearcherEntrypointsRegistrationHandler156
ContentTranslation\SectionAction156
ContentTranslation\ActionApi\ApiQueryTranslatorStats132
ContentTranslation\CategoryStore132
ContentTranslation\HookHandler\RecentTranslationEntrypointRegistrationHandler132
ContentTranslation\HookHandler\ULSRelevantLanguagesEntrypointRegistrationHandler132
ContentTranslation\SectionTranslationBeforePublishHandler132
ContentTranslation\TmxDumpFormatter132
ContentTranslation\Translation132
ContentTranslation\ActionApi\ApiContentTranslationDelete110
ContentTranslation\DirectParsoidClient102
ContentTranslation\ActionApi\ApiSectionTranslationDelete90
ContentTranslation\JsonDumpFormatter90
ContentTranslation\Service\SectionMappingFetcher90
ContentTranslation\Validator\TranslationUnitValidator90
ContentTranslation\ActionApi\ApiContentTranslationToken72
ContentTranslation\ActionApi\ApiQueryDeletedTranslations72
ContentTranslation\HookHandler\ULSQuickActionEntrypointRegistrationHandler72
ContentTranslation\Service\WikidataIdFetcher72
ContentTranslation\Store\FavoriteSuggestionStore72
ContentTranslation\ActionApi\ApiContentTranslationUnreviewedCheck56
ContentTranslation\EchoNotificationPresentationModel56
ContentTranslation\Events\SignificantEditEventIngress56
ContentTranslation\ActionApi\ApiQueryContentTranslationFavoriteSuggestions42
ContentTranslation\ActionApi\ApiQueryPublishedTranslations42
ContentTranslation\Notification42
ContentTranslation\ActionApi\ApiQueryContentTranslationConfig30
ContentTranslation\Service\CxServerClient30
ContentTranslation\Service\UserService30
ContentTranslation\Service\SectionPositionCalculator22
ContentTranslation\ActionApi\ApiQueryLangLinksCount20
ContentTranslation\ArticleTopicsDefinition20
ContentTranslation\Service\TranslationTargetUrlCreator20
ContentTranslation\Service\EditedSectionFinder18
ContentTranslation\Service\SectionTitleFetcher12
ContentTranslation\DTO\DraftTranslationDTO12
ContentTranslation\Service\TranslatorService12
ContentTranslation\SchemaHooks6
ContentTranslation\Service\SandboxTitleMaker5

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
execute0%
getAllowedParams0%
needsToken0%
isWriteMode0%
getExamplesMessages0%
__construct0%
execute0%
validateLanguages0%
getAllowedParams0%
needsToken0%
isWriteMode0%
isInternal0%
getExamplesMessages0%
__construct0%
getParsoidClient0%
saveWikitext0%
getTags0%
getCategories0%
removeApiCategoryNamespacePrefix0%
execute0%
publish0%
notifyTranslator0%
getAllowedParams0%
needsToken0%
isWriteMode0%
isInternal0%
__construct0%
execute0%
saveTranslation0%
isValidCategoriesJSON0%
saveCategories0%
getAllowedParams0%
needsToken0%
isWriteMode0%
isInternal0%
getLogParams0%
__construct0%
validateRequest0%
execute0%
getAllowedParams0%
needsToken0%
isWriteMode0%
isInternal0%
execute0%
needsToken0%
getExamplesMessages0%
__construct0%
validateRequest0%
execute0%
isInternal0%
__construct0%
fetchWikipediaSites0%
getWikipediaSites0%
getArticleSiteLinks0%
getArticleSizeInformation0%
execute0%
getAllowedParams0%
getExamplesMessages0%
__construct0%
execute0%
serveUnifiedDashboardTranslations0%
serveDesktopEditorDraft0%
serveTranslationCorporaUnits0%
getAllowedParams0%
addUnitsAndCategoriesToTranslation0%
getExamplesMessages0%
__construct0%
execute0%
getExamplesMessages0%
__construct0%
execute0%
getAllowedParams0%
__construct0%
execute0%
getAllowedParams0%
getExamplesMessages0%
__construct0%
execute0%
getAllowedParams0%
getExamplesMessages0%
isInternal0%
execute0%
getExamplesMessages0%
__construct0%
execute0%
getAllowedParams0%
getExamplesMessages0%
__construct0%
execute0%
addMissingMonths0%
getAllowedParams0%
getExamplesMessages0%
__construct0%
execute0%
getAllowedParams0%
needsToken0%
isWriteMode0%
getExamplesMessages0%
__construct0%
getPublishSummary0%
submitEditAction0%
execute0%
publish0%
saveWikitext0%
storeTags0%
isSandbox0%
updateTranslation0%
getAllowedParams0%
needsToken0%
isWriteMode0%
isInternal0%
__construct0%
validateRequest0%
execute0%
createNewTranslationFromPayload0%
saveTranslation0%
saveSectionTranslation0%
getAllowedParams0%
needsToken0%
isWriteMode0%
isInternal0%
getCountries0%
getTopics0%
__construct0%
save0%
update0%
create0%
exists0%
__construct0%
getPrimaryDatabase0%
getReplicaDatabase0%
commitAndWaitForReplication0%
getEmptyTransactionTicket0%
__construct0%
getLastUpdatedTimestamp0%
__construct0%
createFromTranslation0%
toArray0%
__construct0%
toArray0%
__construct0%
toArray0%
__construct0%
toArray0%
__construct0%
setBlobForType0%
toArray0%
getUserBlob0%
getMtBlob0%
hasUserBlob0%
hasSourceBlob0%
toCustomArray0%
toCorporaDumpArray0%
getRevision0%
getMwSectionNumber0%
getBaseSectionId0%
__construct0%
getHtmlOutputRendererHelper0%
getHtmlInputTransformHelper0%
makeFakeRevision0%
fakeRESTbaseHTMLResponse0%
fakeRESTbaseError0%
getIconType0%
getPrimaryLink0%
getHeaderMessage0%
getCompactHeaderMessage0%
getSecondaryLinks0%
getYourTranslationsLink0%
getIconType0%
getPrimaryLink0%
getHeaderMessageKey0%
getHeaderMessage0%
__construct0%
setId0%
getId0%
getUserId0%
getPageWikidataId0%
getPageTitle0%
getLanguage0%
getSectionTitles0%
getTimestamp0%
mergeSectionTitles0%
__construct0%
getId0%
setId0%
getSectionId0%
getTranslationId0%
getSourceSectionTitle0%
getTargetSectionTitle0%
setTargetSectionTitle0%
setTranslationStatus0%
getTranslationStatus0%
getProgress0%
setProgress0%
__construct0%
getTranslationId0%
getSectionId0%
getSequenceId0%
getOrigin0%
getTimestamp0%
getContent0%
getValidate0%
__construct0%
handlePageLatestRevisionChangedEvent0%
__construct0%
getTitle0%
__construct0%
isEntrypointAllowedOnSkin0%
isDiffPage0%
isDisambiguationPage0%
shouldDisplayFooterEntrypoint0%
onSkinAfterContent0%
onBeforePageDisplay0%
__construct0%
isMobileView0%
isCXEntrypointEnabled0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
__construct0%
onBeforePageDisplay0%
getWikipediaList0%
onBeforePageDisplay0%
addSXPublishingFollowupModule0%
addMobileNewByTranslationInvitation0%
isMobileView0%
isSXEnabled0%
isPotentialTranslator0%
addModules0%
onGetBetaFeaturePreferences0%
onSpecialContributionsBeforeMainOutput0%
onResourceLoaderRegisterModules0%
onListDefinedTags0%
onChangeTagsListActive0%
registerTags0%
onEditPage__showEditForm_initial0%
onSaveUserOptions0%
onGetPreferences0%
devModeCallback0%
onContributeCards0%
format0%
close0%
getHeader0%
getFooter0%
formatEntry0%
indent0%
__construct0%
getCorporaDumpArraysByTranslationId0%
getUnitsAndCategoriesByTranslationId0%
saveTranslationUnits0%
getFilteredCorporaUnits0%
createTranslationUnitsFromContent0%
getTranslationUnitDTOsByTranslationId0%
getTranslationUnitDTOsAndCategoriesByTranslationId0%
createDTOsFromTranslationUnits0%
firstTranslation0%
tenthTranslation0%
hundredthTranslation0%
suggestionsAvailable0%
draftNotification0%
__construct0%
isBetaFeatureEnabled0%
isEnabledForUser0%
setGlobalPreference0%
getGlobalPreference0%
isCXEntrypointDisabled0%
onLoadExtensionSchemaUpdates0%
__construct0%
onSectionTranslationBeforePublish0%
doAPIRequest0%
getPageContent0%
__construct0%
get0%
findEditedSectionsBetweenRevisions0%
__construct0%
calculateSectionContent0%
getSectionBodyWikitext0%
__construct0%
fetchSectionMapping0%
isValidSectionMappingResponse0%
__construct0%
createUrlForSXRedirection0%
createTargetUrl0%
__construct0%
isTranslator0%
__construct0%
getGlobalUserId0%
getUsernameAndGender0%
__construct0%
getQuery0%
getWikidataId0%
getDomainCode0%
getCurrentLanguageCode0%
getLanguageCodeFromDomain0%
getCXUrl0%
getApiURL0%
getPageURL0%
__construct0%
execute0%
getInitialLanguagesData0%
getHtml0%
getDescription0%
__construct0%
getDescription0%
execute0%
isListed0%
enableCXBetaFeature0%
isValidCampaign0%
encodeURIComponent0%
isTargetEqualToCurrentDomain0%
redirectToTargetCX0%
hasValidToken0%
canUserProceed0%
onDesktopTranslationView0%
isMobileSite0%
initModules0%
addJsConfigVars0%
afterExecute0%
__construct0%
createList0%
findListIdByUser0%
addSuggestion0%
removeSuggestion0%
getFavoriteSuggestions0%
__construct0%
isCurrentWikiFamilySupported0%
insert0%
update0%
deleteOldEditsByUser0%
findEditsByUser0%
findExistingEdit0%
findEditsForPotentialSuggestions0%
createEditFromRow0%
normalizeEdit0%
__construct0%
insertTranslation0%
insertMultipleTranslations0%
updateTranslation0%
updateTranslationStatusById0%
findTranslation0%
findTranslationBySectionTitle0%
createTranslationFromRow0%
getStatusIndexByStatus0%
doFindTranslationsByUser0%
findDraftSectionTranslationsByUser0%
findPublishedSectionTranslationsByUser0%
deleteTranslationById0%
translationToDBRow0%
__construct0%
updateTranslationUnit0%
insertTranslationUnit0%
deleteTranslationData0%
deleteTranslationDataBySectionId0%
countByTranslationId0%
deleteTranslationDataGently0%
findByTranslationId0%
countTranslatedSubSectionsByTranslationId0%
save0%
doFind0%
createTranslationUnitFromRow0%
__construct0%
unlinkTranslationFromTranslator0%
deleteTranslation0%
findTranslationByUser0%
findRecentTranslationByUser0%
findByUserAndId0%
findByPublishedTitle0%
findTranslationByTitle0%
findTranslationsByTitles0%
findConflictingDraftTranslations0%
getAllTranslationsByUserId0%
insertTranslation0%
updateTranslation0%
saveTranslation0%
getAllPublishedTranslations0%
getPublishedCondition0%
getTrendByStatus0%
__construct0%
linkTranslationToTranslator0%
getTranslationCountForTranslator0%
__construct0%
newFromRow0%
getTitle0%
getSourceLanguage0%
getTargetLanguage0%
__toString0%
__construct0%
newFromRow0%
getId0%
getName0%
getDisplayNameMessage0%
getInfo0%
getOwner0%
isPublic0%
getStartTime0%
getEndTime0%
getType0%
__toString0%
__construct0%
format0%
begin0%
close0%
formatEntry0%
__construct0%
isNew0%
setIsNew0%
getTranslationId0%
getSourceTitle0%
getSourceLanguage0%
getTargetLanguage0%
getStatus0%
getData0%
newFromRow0%
__construct0%
getParsoidClient0%
validateTranslationUnitsForTitleUser0%
validateContent0%
fromData0%
isExpandAction0%
isNewLeadSection0%
isNewNumberedSection0%
isSandboxAction0%
needsSectionTitlePrepending0%
fetchAppendixTitles20%
makeSandboxTitle50%
convertWikitextToHtml66%
fetchSectionTitles68%
compress75%
validateMwSectionNumbers75%
convertHtmlToWikitext83%

Project Risks

Method CRAP
addModules306
execute210
onEditPage__showEditForm_initial210
publish156
execute156
onBeforePageDisplay156
publish110
onBeforePageDisplay110
getSectionBodyWikitext110
validateRequest90
shouldDisplayFooterEntrypoint72
onBeforePageDisplay72
getTrendByStatus72
__construct72
getCategories56
execute56
fetchWikipediaSites56
getArticleSizeInformation56
execute56
onBeforePageDisplay56
addMobileNewByTranslationInvitation56
isPotentialTranslator56
onSpecialContributionsBeforeMainOutput56
onSaveUserOptions56
canUserProceed56
fromData56
execute42
notifyTranslator42
execute42
serveDesktopEditorDraft42
handlePageLatestRevisionChangedEvent42
createTranslationUnitsFromContent42
getWikidataId42
execute42
findPublishedSectionTranslationsByUser42
getAllTranslationsByUserId42
formatEntry42
execute30
validateRequest30
getArticleSiteLinks30
serveUnifiedDashboardTranslations30
execute30
onBeforePageDisplay30
createDTOsFromTranslationUnits30
getPageContent30
calculateSectionContent30
isValidSectionMappingResponse30
hasValidToken30
afterExecute30
doFindTranslationsByUser30
saveTranslation30
validateTranslationUnitsForTitleUser30
execute20
execute20
addMissingMonths20
execute20
getTopics20
create20
setBlobForType20
toCustomArray20
toCorporaDumpArray20
getHeaderMessage20
isCXEntrypointEnabled20
addSXPublishingFollowupModule20
onResourceLoaderRegisterModules20
findEditedSectionsBetweenRevisions20
isValidCampaign20
initModules20
save20
findTranslationByUser20
validateLanguages12
saveWikitext12
saveTranslation12
isValidCategoriesJSON12
execute12
execute12
execute12
execute12
execute12
saveWikitext12
save12
getHtmlOutputRendererHelper12
fakeRESTbaseError12
getIconType12
getPrimaryLink12
isDiffPage12
registerTags12
onContributeCards12
getTranslationUnitDTOsAndCategoriesByTranslationId12
isEnabledForUser12
setGlobalPreference12
getGlobalPreference12
onSectionTranslationBeforePublish12
get12
fetchSectionMapping12
getCurrentLanguageCode12
getLanguageCodeFromDomain12
getCXUrl12
isTargetEqualToCurrentDomain12
addJsConfigVars12
insertMultipleTranslations12
findDraftSectionTranslationsByUser12
deleteTranslationDataGently12
insertTranslation12
updateTranslation12
getAllPublishedTranslations12
fetchSectionTitles11
fetchAppendixTitles7
getTags6
removeApiCategoryNamespacePrefix6
saveCategories6
execute6
validateRequest6
serveTranslationCorporaUnits6
getPublishSummary6
submitEditAction6
saveTranslation6
saveSectionTranslation6
update6
__construct6
getRevision6
getMwSectionNumber6
getBaseSectionId6
getPrimaryLink6
getSecondaryLinks6
getHeaderMessage6
isDisambiguationPage6
onSkinAfterContent6
onBeforePageDisplay6
isMobileView6
getWikipediaList6
isMobileView6
isSXEnabled6
onGetBetaFeaturePreferences6
onGetPreferences6
devModeCallback6
format6
close6
formatEntry6
getCorporaDumpArraysByTranslationId6
saveTranslationUnits6
draftNotification6
isBetaFeatureEnabled6
isCXEntrypointDisabled6
onLoadExtensionSchemaUpdates6
doAPIRequest6
__construct6
createTargetUrl6
isTranslator6
getGlobalUserId6
getUsernameAndGender6
getApiURL6
onDesktopTranslationView6
isMobileSite6
findListIdByUser6
getFavoriteSuggestions6
update6
deleteOldEditsByUser6
findEditsByUser6
findExistingEdit6
findEditsForPotentialSuggestions6
findTranslation6
findTranslationBySectionTitle6
createTranslationFromRow6
getStatusIndexByStatus6
updateTranslationUnit6
findByTranslationId6
doFind6
findRecentTranslationByUser6
findByUserAndId6
findByPublishedTitle6
findTranslationByTitle6
findTranslationsByTitles6
findConflictingDraftTranslations6
getDisplayNameMessage6
getOwner6
getType6
format6
newFromRow6
validateContent6
makeSandboxTitle4
validateMwSectionNumbers3
convertWikitextToHtml2
compress2
convertHtmlToWikitext2