Code Analysis: PTAPS – Post Type Archive Pages and Permalink Settings 1.4

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\WordPress::redirectPostTypeSlugToArchivePage()
A
49 16 28
Ptatap\Compatibility\Wpml::setIcLsLanguages()
A
43 14 46
Ptatap\Compatibility\Wpml::setRewriteRulesArray()
A
45 13 38
Ptatap\Features\OptionsPermalinksPostTypes::renderOptionsSettingsField()
A
45 8 41
Ptatap\Compatibility\WordPress::addPostTypeRewriteRule()
A
52 9 25
Ptatap\Compatibility\Wpml::setTaxonomyTranslationStrings()
A
54 9 19
Ptatap\Compatibility\WordPress::postUpdated()
A
56 8 18
Ptatap\Features\OptionsReadingPostTypes::renderSettings()
S
46 5 41
Ptatap\Compatibility\Yoast::addAdminNoticeOnCustomArchivePage()
S
50 6 26
Ptatap\Compatibility\Wpml::redirectTo404IfArchivePageNotFoundInCurrentLanguage()
S
52 6 25
Ptatap\Compatibility\WordPress::addAdminBarEditLink()
S
53 6 23
Ptatap\Compatibility\WordPress::addPostStateLabel()
S
54 6 22
Ptatap\Features\OptionsPermalinksTaxonomies::addSettings()
S
49 5 33
Ptatap\Features\OptionsPermalinksPostTypes::addSettings()
S
49 5 33
Ptatap\Features\OptionsPermalinksTaxonomies::renderOptionsSettingsField()
S
49 5 32
Ptatap\Compatibility\Wpml::getPostTypeLink()
S
57 6 15
Ptatap\Compatibility\Yoast::removeYoastMetaBoxOnCustomArchivePage()
S
60 6 13
Ptatap\Compatibility\WordPress::updateTaxonomyRewriteRulesOrder()
S
55 5 19
Ptatap\Compatibility\WordPress::recursiveAddAncestor()
S
58 5 16
Ptatap\Compatibility\Wpml::setWpmlLsLanguageUrls()
S
57 5 16
Ptatap\Compatibility\Wpml::setWpmlAlternateHrefLang()
S
57 5 16
Ptatap\Compatibility\Wpml::getPostTypeArchiveLink()
S
62 6 10
Ptatap\Compatibility\Wpml::getWpmlObjectId()
S
62 6 10
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\OptionsPermalinksPostTypes::isOptionsEmpty()
S
64 4 11
Ptatap\Features\OptionsPermalinksTaxonomies::isOptionsEmpty()
S
64 4 11
Ptatap\Features\OptionsReadingPostTypes::isOptionsEmpty()
S
64 4 11
Ptatap\Plugin::createInstances()
S
56 3 17
Ptatap\Features\SetArchivesAndSlugs::setPostTypeArgs()
S
61 3 13
Ptatap\Features\OptionsReadingPostTypes::addSettings()
S
58 2 17
Ptatap\Compatibility\Wpml::__construct()
S
58 2 14
Ptatap\Compatibility\Wpml::getPageForArchiveUri()
S
60 2 12
Ptatap\Features\OptionsPermalinksTaxonomies::getOptions()
S
72 2 6
Ptatap\Features\FlushRewriteRules::getInstance()
S
70 2 6
Ptatap\Features\OptionsReadingPostTypes::getOptions()
S
69 2 7
Ptatap\Features\OptionsReadingPostTypes::maybeFlushRewriteRules()
S
72 2 6
Ptatap\Compatibility\WordPress::updateCustomArchiveTitle()
S
65 2 9
Ptatap\Features\SupportedTaxonomies::getInstance()
S
70 2 6
Ptatap\Features\SupportedPostTypes::getPostTypes()
S
79 2 3
Ptatap\Compatibility\WordPress::updateTaxonomyTitle()
S
65 2 9
Ptatap\Features\OptionsReadingPostTypes::getInstance()
S
70 2 6
Ptatap\Features\OptionsPermalinksPostTypes::getInstance()
S
70 2 6
Ptatap\Features\SupportedPostTypes::getInstance()
S
70 2 6
Ptatap\Compatibility\Timber::maybeAddArchivePageToContext()
S
63 2 10
Ptatap\Compatibility\Yoast::__construct()
S
69 2 6
Ptatap\Features\OptionsPermalinksPostTypes::getOptions()
S
72 2 6
Ptatap\Features\SetArchivesAndSlugs::setTaxonomyArgs()
S
68 2 7
Ptatap\Features\SupportedTaxonomies::getTaxonomies()
S
79 2 3
Ptatap\Features\OptionsPermalinksTaxonomies::getInstance()
S
70 2 6
Ptatap\Plugin::init()
S
66 2 9
Ptatap\Features\FlushRewriteRules::maybeFlushRewriteRules()
S
75 2 5
Ptatap\Features\SupportedTaxonomies::getSupportedTaxonomies()
S
63 1 11
Ptatap\Features\SupportedPostTypes::getSupportedPostTypes()
S
63 1 11
Ptatap\Compatibility\WordPress::__construct()
S
61 1 11
Ptatap\Plugin::onPluginActivation()
S
81 1 3
Ptatap\Features\PluginActionLinks::addActionLinks()
S
71 1 5
Ptatap\Features\SupportedTaxonomies::__construct()
S
79 1 3
Ptatap\Features\OptionsReadingPostTypes::__construct()
S
71 1 5
Ptatap\Features\OptionsPermalinksTaxonomies::__construct()
S
74 1 4
Ptatap\Features\SupportedPostTypes::__construct()
S
79 1 3
Ptatap\Features\OptionsReadingPostTypes::deleteOptions()
S
80 1 3
Ptatap\Features\SetArchivesAndSlugs::__construct()
S
74 1 4
Ptatap\Features\FlushRewriteRules::__construct()
S
79 1 3
Ptatap\Features\PluginActionLinks::__construct()
S
78 1 3
Ptatap\Compatibility\Timber::__construct()
S
79 1 3
Ptatap\Features\OptionsPermalinksPostTypes::__construct()
S
74 1 4
Ptatap\Features\OptionsPermalinksTaxonomies::deleteOptions()
S
80 1 3
Ptatap\Plugin::onPluginDeactivation()
S
81 1 3
Ptatap\Features\OptionsPermalinksPostTypes::deleteOptions()
S
80 1 3
Ptatap\Features\FlushRewriteRules::setup()
S
80 1 3