Code Analysis: Domain Mapping System 1.9.6

Function Rating Maintainability Complexity Lines of code
DMS::saveMapping()
D
2
127 394
DMS::catchQueriedObject()
D
29 41 108
DMS::run()
D
33 39 82
DMS::forceRedirect()
D
34 37 77
DMS_Mdm_Import::import()
C
32 26 94
DMS::getDMSOptions()
C
33 24 96
DMS_API::insertMapping()
B
35 22 78
DMS_API::insertMappingValues()
B
42 16 53
DMS_Seo_Yoast::rewriteEntry()
A
43 16 42
DMS_Wpcs::setTenantMainDomain()
A
38 14 64
DMS_Mdm_Import::getDmsRelatedKeys()
A
48 14 30
DMS::rewriteNavMenuLink()
A
51 14 23
DMS::preGetPosts()
A
38 10 80
DMS_Seo_Yoast::runSitemap()
A
44 11 48
DMS::uninstall()
A
40 9 66
DMS_Activate::migrateToCustomTables()
A
45 10 43
DMS::getRewrittenUrl()
A
50 11 28
DMS_Wpcs::getTenant()
A
46 10 38
DMS_Wpcs::deleteDomain()
A
47 10 34
DMS::rewriteTermLink()
A
55 11 16
DMS::prepareUriFilters()
A
37 5 104
DMS::showAdminNotice()
A
43 7 66
DMS::rewritePaginationLinks()
A
54 10 20
DMS::map()
A
45 8 48
DMS::rewriteHomeUrl()
A
57 10 15
DMS_Wpcs::getExternalDomains()
A
52 9 24
DMS_API::token()
A
45 8 39
DMS_Wpcs::addDomain()
A
47 8 35
DMS_Wpcs::getTenantDomains()
A
48 8 33
DMS_API::checkAccess()
A
54 9 18
DMS_Activate::upgraderProcessComplete()
A
51 8 25
DMS_Helper::includeFiles()
A
53 8 22
DMS::setCurrentDomain()
A
53 8 21
DMS::prepareMappingInsert()
S
49 7 30
DMS_Seo_Yoast::getTaxonomyTabContent()
S
49 7 28
DMS::getData()
S
51 7 25
DMS_Activate::activate()
S
53 7 23
DMS_Helper::compareFiles()
S
54 7 20
DMS_Wpcs::checkPossibleDomainsSubstitution()
S
54 7 19
DMS::postRewriteBack()
S
62 8 10
DMS::rewritePostLink()
S
63 8 9
DMS::rewritePostTypeLink()
S
63 8 9
DMS::rewritePageLink()
S
63 8 9
dms_get_site_by_host()
S
50 6 26
DMS_Helper::showSunriseNotices()
S
54 6 21
DMS_Wpcs::saveCredentials()
S
54 6 19
DMS_Helper::getHostPlusPath()
S
59 6 14
DMS_Activate::migrateTo1point6()
S
61 6 13
DMS::rewriteJetAjaxContent()
S
62 6 11
DMS_Activate::createDMSMuHelper()
S
51 4 38
DMS_Platform::saveExternalDomains()
S
54 5 19
DMS::addChildPagesDb()
S
57 5 17
DMS::getObjectPermalinkPathByValue()
S
57 5 17
DMS_Wpcs::deleteDomains()
S
59 5 15
DMS::redirectTo()
S
64 6 8
DMS_Activate::generateSecret()
S
58 5 15
DMS_Seo_Yoast::excludeSitemapTerms()
S
57 5 14
DMS_Activate::activateDeactivatePlan()
S
58 5 14
DMS_Wpcs::changeApiKeys()
S
59 5 13
DMS_Helper::revertHtaccess()
S
53 4 25
DMS_Wpcs::drawForm()
S
48 3 39
DMS_Helper::changeHtaccess()
S
50 3 35
DMS_Seo_Yoast::overrideHead()
S
55 4 18
DMS::rewriteImageSrcSet()
S
65 5 8
DMS::isTaxonomyTerm()
S
63 5 9
DMS_Seo_Yoast::init()
S
66 5 8
DMS_Helper::disableSaveButton()
S
59 4 15
DMS::rewriteHeaderImageMarkup()
S
63 4 11
DMS_Seo_Yoast::getPostTabContent()
S
54 3 21
DMS::checkVersion()
S
57 3 18
DMS_Activate::createTables()
S
53 2 33
DMS_Seo_Yoast::setupSitemapFilters()
S
50 2 32
DMS_Activate::migrateToArrayOption()
S
58 3 16
DMS::rewriteAdminUrlStatic()
S
62 4 10
DMS::replaceScriptStyleSrc()
S
65 4 9
DMS::rewriteAdminUrl()
S
69 4 6
DMS::rewriteAttachmentSrc()
S
69 4 6
DMS::doFavicon()
S
64 4 10
DMS::postDataReset()
S
67 4 8
DMS_Seo_Yoast::getData()
S
63 4 10
DMS::preventHomeRedirect()
S
68 4 7
DMS_Seo_Yoast::adminInit()
S
58 3 14
DMS_Activate::addConfigOptions()
S
61 3 12
dms_fs()
S
52 2 26
DMS::rewriteTheContent()
S
64 3 11
DMS::actualHostReplace()
S
62 3 11
DMS_Mdm_Import::hideImportNote()
S
62 3 11
DMS_Mdm_Import::show()
S
55 2 24
DMS::replaceHostOccurrence()
S
55 2 21
DMS::pluginsUrl()
S
64 3 10
DMS::rewriteStylesheetUri()
S
70 3 6
DMS::rewriteTemplateUri()
S
70 3 6
DMS::runSeoPlatforms()
S
73 3 5
DMS_Helper::checkIfBedrock()
S
66 3 7
DMS_Wpcs::isVersion()
S
67 3 7
DMS_Wpcs::checkSetCredentials()
S
69 3 6
DMS::startSession()
S
73 3 5
DMS_Wpcs::ifConfigsAreOk()
S
78 3 3
DMS::registerScripts()
S
50 1 30
DMS_Seo_Yoast::rewriteIndexLinks()
S
66 3 7
DMS::getCustomPostTypes()
S
59 2 15
DMS_Seo_Yoast::isSitemapRequested()
S
73 3 4
DMS::removePagedOneQueryParam()
S
61 2 13
DMS::upgraderProcessComplete()
S
62 2 12
DMS::includePlatforms()
S
62 2 11
DMS::strReplaceOnce()
S
64 2 11
DMS_Helper::getMappingByHostAndPath()
S
62 2 11
DMS::removePathOneQueryParam()
S
65 2 11
DMS_Seo_Yoast::getTabContent()
S
62 2 11
DMS_Seo_Yoast::admin_scripts()
S
55 1 20
DMS_Mdm_Import::removeMdmFilters()
S
57 1 17
DMS_Helper::getActualBaseHost()
S
70 2 6
DMS_Helper::endsWith()
S
68 2 7
DMS_Activate::deactivate()
S
70 2 7
DMS_Seo_Yoast::changeTwitDesc()
S
78 2 3
DMS::setBaseHttpHost()
S
74 2 5
DMS_Seo_Yoast::changeOgTitle()
S
78 2 3
DMS_Helper::isPagePostType()
S
78 2 3
DMS_Wpcs::drawSetTenantMainDomainButton()
S
66 2 8
DMS_Wpcs::isActive()
S
79 2 3
DMS_Helper::detectPlatform()
S
69 2 7
DMS_Seo_Yoast::changeDesc()
S
78 2 3
DMS_Helper::getShopPageAssociation()
S
78 2 3
DMS::detectMdmPresence()
S
71 2 6
DMS_Wpcs::showMappingForm()
S
72 2 6
DMS_Wpcs::showNavigation()
S
72 2 6
DMS_Seo_Yoast::excludeSitemapPosts()
S
73 2 4
DMS::getMappingValuesHighestOrder()
S
70 2 6
DMS_Seo_Yoast::changeTwitImage()
S
78 2 3
DMS_Seo_Yoast::getDataPost()
S
64 2 9
DMS::includeTemplate()
S
66 2 8
DMS_API::errorResponse()
S
65 2 9
DMS_Helper::removeDomainByMapId()
S
72 2 4
DMS_Seo_Yoast::changeTitle()
S
78 2 3
DMS_Wpcs::setApiUrl()
S
72 2 5
DMS_Seo_Yoast::changeTwitTitle()
S
78 2 3
DMS_Wpcs::isAllowedToSaveMapping()
S
76 2 3
DMS::getMainMapping()
S
71 2 6
DMS_Seo_Yoast::getInstance()
S
71 2 6
DMS_Seo_Yoast::getDataTaxonomy()
S
64 2 9
DMS_Activate::deleteDMSMuHelper()
S
71 2 6
DMS_Seo_Yoast::changeOgImage()
S
78 2 3
DMS_Helper::removeKnownPermalinkFilters()
S
74 2 5
DMS::getInstance()
S
71 2 6
DMS_Seo_Yoast::changeKeyword()
S
78 2 3
DMS_Activate::setVersion()
S
73 2 5
DMS::getTaxonomyTermFromValue()
S
66 2 8
DMS_Seo_Yoast::changeOgDesc()
S
78 2 3
DMS_Wpcs::showConfigForm()
S
72 2 6
DMS::showCustomHtml()
S
70 2 6
DMS_Helper::getBasePath()
S
73 2 4
DMS::getPostsByTaxonomyTermId()
S
60 1 14
DMS::adminMenu()
S
61 1 13
DMS_API::routes()
S
61 1 13
DMS_Wpcs::drawSetTenantDomainAsMainForm()
S
66 1 11
DMS::registerStyles()
S
64 1 11
DMS_Platform::isAllowedToSaveMapping()
S
100 1 0
DMS::getAllWooProducts()
S
67 1 8
DMS_Helper::getBaseHost()
S
78 1 3
DMS_Platform::getName()
S
100 1 0
DMS_Seo_Yoast::saveMetaForTaxonomy()
S
91 1 2
DMS::getMatch()
S
64 1 10
DMS_Seo_Yoast::__construct()
S
77 1 4
DMS_Wpcs::allowMappingSave()
S
80 1 3
DMS::getMappingsCount()
S
75 1 4
DMS::hookAfterSavePost()
S
80 1 3
DMS_Helper::getMatchingHostByAllParams()
S
71 1 5
DMS::getMatchingHostByPostName()
S
73 1 4
DMS::getPath()
S
82 1 3
DMS_Mdm_Import::showImportNote()
S
79 1 3
DMS_Platform::__construct()
S
100 1 0
DMS_Seo_Yoast::setFlags()
S
76 1 4
DMS_Platform::getMessages()
S
100 1 0
DMS::deactivate()
S
65 1 10
DMS::loadTextDomain()
S
74 1 4
DMS_Helper::getMapIdByDomain()
S
77 1 3
DMS_Helper::checkMdmPluginPresence()
S
80 1 3
DMS_Seo_Yoast::run()
S
72 1 5
DMS::addActions()
S
79 1 3
DMS_Seo_Yoast::isInteractingWithSitemap()
S
82 1 3
DMS_Platform::showConfigForm()
S
82 1 3
DMS_Platform::allowMappingSave()
S
100 1 0
DMS::checkHostExistence()
S
74 1 4
DMS::replaceElementorPreviewUrl()
S
82 1 3
DMS_API::response()
S
73 1 5
DMS::getDomainPathMatch()
S
82 1 3
DMS_Helper::getScheme()
S
78 1 3
DMS_Platform::deleteDomains()
S
100 1 0
Abstract_Seo::saveMetaForPost()
S
100 1 0
Abstract_Seo::getInstance()
S
100 1 0
DMS_Wpcs::getMessages()
S
68 1 8
DMS_Wpcs::__construct()
S
74 1 5
DMS_Helper::getMatchingHostByValuePermalinkPath()
S
72 1 5
DMS_Activate::__construct()
S
71 1 6
DMS::defineRewriteOption()
S
91 1 2
DMS_Platform::showNavigation()
S
82 1 3
DMS_Mdm_Import::addActions()
S
71 1 5
DMS_Helper::getDomainByMapId()
S
77 1 3
DMS::autoDetectPlatform()
S
80 1 3
DMS_Seo_Yoast::admin_styles()
S
66 1 10
DMS_Seo_Yoast::changeCanonical()
S
72 1 5
DMS_Helper::base64UrlEncode()
S
65 1 7
DMS_Seo_Yoast::saveMetaForPost()
S
91 1 2
DMS_Mdm_Import::__construct()
S
77 1 4
DMS_Helper::getMappingsByValue()
S
73 1 4
DMS_Helper::getChildPages()
S
69 1 7
DMS::setBaseOptions()
S
75 1 4
DMS_Seo_Yoast::getSitemapPerDomain()
S
82 1 3
DMS_Activate::checkTablesExistence()
S
74 1 4
DMS::includeSeoPlatforms()
S
75 1 4
DMS_Helper::getMatchingHostByValue()
S
72 1 5
DMS::adminInit()
S
71 1 6
DMS_Helper::getMainMappingDomain()
S
78 1 3
DMS_Platform::drawForm()
S
85 1 4
DMS_Platform::deleteDomain()
S
100 1 0
DMS_Helper::isSubDirectoryInstall()
S
79 1 3
DMS_Wpcs::getName()
S
81 1 3
DMS_Seo_Yoast::getOptionsPerDomain()
S
82 1 3
DMS_Wpcs::printGeneralNotice()
S
75 1 5
DMS_Wpcs::isTenant()
S
79 1 3
DMS::__construct()
S
91 1 2
DMS_Seo_Yoast::addTab()
S
67 1 7
dms_fs_custom_icon()
S
80 1 3
DMS_Platform::addDomain()
S
100 1 0
DMS_Platform::printGeneralNotice()
S
85 1 4
DMS::getDomain()
S
82 1 3
DMS_Mdm_Import::getMdmInstance()
S
81 1 3
Abstract_Seo::isSitemapRequested()
S
100 1 0
DMS::defineProperties()
S
63 1 10
DMS_Seo_Yoast::changeOgUrl()
S
72 1 5
DMS_Wpcs::addActions()
S
68 1 7
DMS::activate()
S
65 1 10
DMS_Platform::showMappingForm()
S
82 1 3