Code Analysis: PTAPS - Post Type Archive Pages and Permalink Settings 2.0.0

Function Rating Maintainability Complexity Lines of code
Ptatap\Compatibility\WordPress::updateNavMenuObjects()
B
41 21 51
Ptatap\Compatibility\Wpml::setPostTypeTranslationStrings()
B
38 16 73
Ptatap\Compatibility\Wpml::setIcLsLanguages()
A
43 15 46
Ptatap\Compatibility\Yoast::wpseoAdjacentRelUrl()
A
46 15 35
Ptatap\Compatibility\Wpml::setRewriteRulesArray()
A
45 13 41
Ptatap\Compatibility\Wpml::setOptionValueToDefaultLanguage()
A
45 11 45
Ptatap\Compatibility\WordPress::handle404()
A
49 12 28
Ptatap\Compatibility\Wpml::getPostTypeLink()
A
48 9 33
Ptatap\Features\OptionsPermalinksPostTypes::renderOptionsSettingsField()
A
45 8 41
Ptatap\Compatibility\WordPress::postUpdated()
A
54 9 22
Ptatap\Compatibility\Wpml::setTaxonomyTranslationStrings()
A
54 9 19
Ptatap\Compatibility\Yoast::renderBlockEditorNotice()
A
48 8 33
Ptatap\Features\OptionsReadingPostTypes::renderSettings()
S
46 5 41
Ptatap\Compatibility\Wpml::redirectTo404IfArchivePageNotFoundInCurrentLanguage()
S
52 6 26
Ptatap\Compatibility\WordPress::addAdminBarEditLink()
S
53 6 23
Ptatap\Compatibility\WordPress::addPostStateLabel()
S
54 6 22
Ptatap\Features\OptionsPermalinksPostTypes::addSettings()
S
48 5 36
Ptatap\Features\OptionsPermalinksTaxonomies::addSettings()
S
48 5 36
Ptatap\Compatibility\Wpml::getPostTypeArchiveLink()
S
55 6 19
Ptatap\Features\OptionsPermalinksTaxonomies::renderOptionsSettingsField()
S
49 5 32
Ptatap\Compatibility\Yoast::renderAdminNoticeClassicEditor()
S
56 6 16
Ptatap\Compatibility\Wpml::setWpmlLsLanguageUrls()
S
56 6 16
Ptatap\Compatibility\Wpml::setWpmlAlternateHrefLang()
S
57 6 16
Ptatap\Compatibility\WordPress::updateTaxonomyRewriteRulesOrder()
S
55 5 19
Ptatap\Compatibility\Yoast::fixRelLink()
S
57 5 17
Ptatap\Compatibility\WordPress::recursiveAddAncestor()
S
58 5 16
Ptatap\Compatibility\Yoast::wpseoCanonical()
S
57 5 15
Ptatap\Compatibility\Wpml::getWpmlObjectId()
S
62 6 10
Ptatap\Compatibility\Yoast::getQueriedArchiveUrl()
S
50 4 29
Ptatap\Compatibility\Yoast::wpseoNextRelLink()
S
59 5 13
Ptatap\Compatibility\Yoast::wpseoPrevRelLink()
S
59 5 13
Ptatap\Compatibility\WordPress::updateTitle()
S
62 5 12
Ptatap\Compatibility\Wpml::setTranslatedPostTypeReadingSettings()
S
61 5 11
Ptatap\Compatibility\WordPress::getArchivePagePostTypeName()
S
59 4 14
Ptatap\Features\OptionsReadingPostTypes::isOptionsEmpty()
S
64 4 11
Ptatap\Features\OptionsPermalinksPostTypes::isOptionsEmpty()
S
64 4 11
Ptatap\Features\OptionsPermalinksTaxonomies::isOptionsEmpty()
S
64 4 11
Ptatap\Plugin::createInstances()
S
56 3 17
Ptatap\Compatibility\Wpml::addTrailingSlashToIcLsLanguagesUrls()
S
64 4 9
Ptatap\Compatibility\Yoast::__construct()
S
59 3 13
Ptatap\Features\SetArchivesAndSlugs::setPostTypeArgs()
S
61 3 13
Ptatap\Compatibility\Yoast::getAdminNoticeContent()
S
53 2 23
Ptatap\Features\OptionsReadingPostTypes::addSettings()
S
58 2 17
Ptatap\Compatibility\Yoast::maybeAddQueryStringToUrl()
S
63 3 10
Ptatap\Compatibility\Wpml::__construct()
S
57 2 15
Ptatap\Compatibility\Wpml::getPageForArchiveUri()
S
60 2 12
Ptatap\Features\OptionsPermalinksTaxonomies::getInstance()
S
70 2 6
Ptatap\Features\SupportedTaxonomies::getTaxonomies()
S
79 2 3
Ptatap\Compatibility\Wpml::isWpmlActive()
S
70 2 6
Ptatap\Features\FlushRewriteRules::maybeFlushRewriteRules()
S
75 2 5
Ptatap\Features\SupportedPostTypes::getInstance()
S
70 2 6
Ptatap\Compatibility\Wpml::getTranslatedPermalinkBaseUri()
S
64 2 9
Ptatap\Features\SupportedTaxonomies::getInstance()
S
70 2 6
Ptatap\Compatibility\Timber::maybeAddArchivePageToContext()
S
63 2 10
Ptatap\Features\OptionsPermalinksPostTypes::getOptions()
S
72 2 6
Ptatap\Compatibility\WordPress::updateTaxonomyTitle()
S
65 2 9
Ptatap\Features\OptionsReadingPostTypes::getOptions()
S
69 2 7
Ptatap\Features\OptionsReadingPostTypes::maybeFlushRewriteRules()
S
71 2 6
Ptatap\Features\FlushRewriteRules::getInstance()
S
70 2 6
Ptatap\Features\OptionsReadingPostTypes::getInstance()
S
70 2 6
Ptatap\Features\SetArchivesAndSlugs::setTaxonomyArgs()
S
68 2 7
Ptatap\Features\OptionsPermalinksTaxonomies::getOptions()
S
72 2 6
Ptatap\Plugin::init()
S
66 2 9
Ptatap\Features\SupportedPostTypes::getPostTypes()
S
79 2 3
Ptatap\Compatibility\WordPress::updateCustomArchiveTitle()
S
65 2 9
Ptatap\Features\OptionsPermalinksPostTypes::getInstance()
S
70 2 6
Ptatap\Features\SupportedTaxonomies::getSupportedTaxonomies()
S
63 1 11
Ptatap\Features\SupportedPostTypes::getSupportedPostTypes()
S
63 1 11
Ptatap\Features\FlushRewriteRules::setup()
S
80 1 3
Ptatap\Features\OptionsReadingPostTypes::__construct()
S
71 1 5
Ptatap\Features\FlushRewriteRules::__construct()
S
79 1 3
Ptatap\Features\OptionsPermalinksTaxonomies::deleteOptions()
S
80 1 3
Ptatap\Features\PluginActionLinks::__construct()
S
78 1 3
Ptatap\Compatibility\WordPress::__construct()
S
62 1 10
Ptatap\Features\SupportedPostTypes::__construct()
S
79 1 3
Ptatap\Features\SetArchivesAndSlugs::__construct()
S
74 1 4
Ptatap\Features\OptionsPermalinksPostTypes::__construct()
S
74 1 4
Ptatap\Features\OptionsReadingPostTypes::deleteOptions()
S
80 1 3
Ptatap\Plugin::onPluginActivation()
S
81 1 3
Ptatap\Plugin::onPluginDeactivation()
S
81 1 3
Ptatap\Features\OptionsPermalinksPostTypes::deleteOptions()
S
80 1 3
Ptatap\Features\PluginActionLinks::addActionLinks()
S
71 1 5
Ptatap\Features\OptionsPermalinksTaxonomies::__construct()
S
74 1 4
Ptatap\Compatibility\Timber::__construct()
S
79 1 3
Ptatap\Features\SupportedTaxonomies::__construct()
S
79 1 3
Ptatap\Compatibility\Yoast::getAdminNoticeTitle()
S
79 1 3