Code Analysis: AuthLDAP 3.1.1

Function Rating Maintainability Complexity Lines of code
Org_Heigl\AuthLdap\LoggedInUserToWpUser::__invoke()
B
32 18 109
Org_Heigl\AuthLdap\LdapUri::__construct()
B
41 17 56
authLdap_options_panel()
B
35 15 78
Org_Heigl\AuthLdap\Authorize::__invoke()
B
41 16 56
authLdap_load_options()
A
39 11 71
Org_Heigl\AuthLdap\Authorize::groupmap()
A
41 10 57
Org_Heigl\AuthLdap\Authenticate::__invoke()
S
47 6 40
authLdap_login()
S
42 5 54
Org_Heigl\AuthLdap\UserRoleHandler::addRolesToUser()
S
55 7 20
Org_Heigl\AuthLdap\Manager\Ldap::bind()
S
55 5 21
Org_Heigl\AuthLdap\Manager\Ldap::search()
S
57 5 17
Org_Heigl\AuthLdap\LdapList::bind()
S
58 4 16
authLdap_set_options()
S
59 4 15
FeatureContext::anLdapUserWithNamePasswordAndEmailExists()
S
47 2 45
authLdap_get_server()
S
54 3 22
FeatureContext::anLdapGroupExists()
S
52 2 32
Org_Heigl\AuthLdap\Authorize::getUserRoles()
S
57 3 17
authLdap_get_option()
S
64 4 10
Org_Heigl\AuthLdap\Manager\Ldap::authenticate()
S
62 4 10
Org_Heigl\AuthLdap\Authorize::sortRolesByCapabilities()
S
58 3 15
Org_Heigl\AuthLdap\Value\Password::fromMixed()
S
62 3 11
authLdap_addmenu()
S
58 2 20
FeatureContext::aWordpressUserWithNameEmailAndPasswordExists()
S
58 2 19
FeatureContext::aWordpressUserWithNameAndEmailExists()
S
58 2 18
authLdap_get_uid()
S
60 2 15
Org_Heigl\AuthLdap\LdapList::search()
S
64 3 10
authLdap_show_password_fields()
S
66 3 9
Org_Heigl\AuthLdap\Value\Username::fromMixed()
S
65 3 9
Org_Heigl\AuthLdap\Wrapper\Ldap::bind()
S
70 3 6
Org_Heigl\AuthLdap\LdapUri::isAnonymous()
S
67 3 9
Org_Heigl\AuthLdap\Logger::log()
S
65 3 9
authLdap_allow_password_reset()
S
66 3 9
Org_Heigl\AuthLdap\LdapList::authenticate()
S
63 3 10
FeatureContext::aWordpressRoleExists()
S
63 2 12
FeatureContext::configurationValueIsSetToAnd()
S
61 2 12
FeatureContext::beforeSuite()
S
62 2 11
FeatureContext::ldapUserIsMemberOfLdapGroup()
S
61 1 16
FeatureContext::ldapUserIsNotMemberOfLdapGroup()
S
61 1 16
Org_Heigl\AuthLdap\Value\Groups::get()
S
71 2 6
Org_Heigl\AuthLdap\Value\MailAttribute::__toString()
S
72 2 6
Org_Heigl\AuthLdap\Value\NameAttribute::__toString()
S
72 2 6
Org_Heigl\AuthLdap\Manager\Ldap::connect()
S
64 2 10
Org_Heigl\AuthLdap\Value\ReadLdapAsUser::__toString()
S
80 2 3
Org_Heigl\AuthLdap\Manager\Ldap::disconnect()
S
69 2 7
Org_Heigl\AuthLdap\Value\SecondNameAttribute::__toString()
S
72 2 6
Org_Heigl\AuthLdap\Value\UidAttribute::__toString()
S
71 2 6
authLdap_debug()
S
73 2 5
Org_Heigl\AuthLdap\Value\UserFilter::__toString()
S
72 2 6
Org_Heigl\AuthLdap\Value\WebAttribute::__toString()
S
72 2 6
Org_Heigl\AuthLdap\Value\CachePassword::__toString()
S
80 2 3
Org_Heigl\AuthLdap\Value\DoNotOverwriteNonLdapUsers::__toString()
S
80 2 3
authLdap_get_post()
S
78 2 3
Org_Heigl\AuthLdap\Value\Enabled::__toString()
S
80 2 3
Org_Heigl\AuthLdap\Value\GroupAttribute::__toString()
S
71 2 6
Org_Heigl\AuthLdap\Logger::__destruct()
S
72 2 6
Org_Heigl\AuthLdap\OptionFactory::fromJson()
S
66 2 8
authLdap_send_change_email()
S
71 2 6
Org_Heigl\AuthLdap\Options::get()
S
70 2 6
Org_Heigl\AuthLdap\Value\GroupEnabled::__toString()
S
80 2 3
Org_Heigl\AuthLdap\Options::set()
S
70 2 6
Org_Heigl\AuthLdap\Value\GroupFilter::__toString()
S
70 2 6
Org_Heigl\AuthLdap\Exception\Error::__construct()
S
71 2 6
Org_Heigl\AuthLdap\Value\GroupOverUser::__toString()
S
80 2 3
Org_Heigl\AuthLdap\Value\GroupSeparator::__toString()
S
72 2 6
Org_Heigl\AuthLdap\Value\Groups::__construct()
S
73 2 5
Org_Heigl\AuthLdap\Value\Groups::fromArray()
S
68 2 7
FeatureContext::userLogsInWithPassword()
S
60 1 14
Org_Heigl\AuthLdap\Authorize::__construct()
S
59 1 14
FeatureContext::aNewWordpressUserWasCreatedWithNameAndEmail()
S
59 1 14
Org_Heigl\AuthLdap\LoggedInUserToWpUser::__construct()
S
60 1 13
FeatureContext::aDefaultConfiguration()
S
60 1 13
FeatureContext::theWordpressUserIsNotMemberOfRole()
S
61 1 12
FeatureContext::theWordpressUserIsMemberOfRole()
S
61 1 12
Org_Heigl\AuthLdap\Wrapper\Ldap::search()
S
65 1 11
Org_Heigl\AuthLdap\Value\DefaultRole::__toString()
S
82 1 3
Org_Heigl\AuthLdap\Exception\UnknownOption::withKey()
S
72 1 6
Org_Heigl\AuthLdap\Manager\Ldap::__construct()
S
71 1 6
Org_Heigl\AuthLdap\Value\Username::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\WebAttribute::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Wrapper\Ldap::error()
S
72 1 5
Org_Heigl\AuthLdap\Wrapper\LdapFactory::createFromLdapUri()
S
80 1 3
Org_Heigl\AuthLdap\Wrapper\Ldap::setOption()
S
79 1 3
Org_Heigl\AuthLdap\LdapUri::injectEnvironmentVariables()
S
72 1 5
Org_Heigl\AuthLdap\Value\CachePassword::fromString()
S
78 1 3
Org_Heigl\AuthLdap\Value\CachePassword::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\UserFilter::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\DefaultRole::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\DefaultRole::fromString()
S
80 1 3
Org_Heigl\AuthLdap\LdapUri::getUsername()
S
82 1 3
Org_Heigl\AuthLdap\Value\DoNotOverwriteNonLdapUsers::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\DoNotOverwriteNonLdapUsers::fromString()
S
78 1 3
Org_Heigl\AuthLdap\Value\DoNotOverwriteNonLdapUsers::isEnabled()
S
82 1 3
Org_Heigl\AuthLdap\LdapUri::getBaseDn()
S
82 1 3
Org_Heigl\AuthLdap\Value\Enabled::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\Enabled::fromString()
S
78 1 3
Org_Heigl\AuthLdap\Value\Enabled::isEnabled()
S
82 1 3
FeatureContext::aWordpressFilterWithImplementation()
S
71 1 5
Org_Heigl\AuthLdap\Authenticate::__construct()
S
74 1 5
Org_Heigl\AuthLdap\Value\GroupFilter::withDn()
S
79 1 3
Org_Heigl\AuthLdap\Wrapper\Ldap::__construct()
S
80 1 3
Org_Heigl\AuthLdap\Value\GroupSeparator::fromString()
S
80 1 3
Org_Heigl\AuthLdap\Value\MailAttribute::fromString()
S
80 1 3
Org_Heigl\AuthLdap\Wrapper\Ldap::escape()
S
78 1 3
Org_Heigl\AuthLdap\Value\GroupAttribute::fromString()
S
80 1 3
Org_Heigl\AuthLdap\Value\GroupAttribute::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Exception\MissingValidLdapConnection::get()
S
74 1 5
Org_Heigl\AuthLdap\Value\GroupAssignment::getGroups()
S
82 1 3
Org_Heigl\AuthLdap\Value\GroupAssignment::__construct()
S
77 1 4
Org_Heigl\AuthLdap\LdapUri::getPassword()
S
82 1 3
Org_Heigl\AuthLdap\LdapUri::fromString()
S
80 1 3
Org_Heigl\AuthLdap\Value\GroupEnabled::fromString()
S
78 1 3
Org_Heigl\AuthLdap\Value\GroupOverUser::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\UserFilter::fromString()
S
80 1 3
Org_Heigl\AuthLdap\Value\LoggedInUser::__construct()
S
77 1 4
Org_Heigl\AuthLdap\Exception\InvalidLdapUri::noSchema()
S
72 1 6
Org_Heigl\AuthLdap\Value\Groups::has()
S
79 1 3
Org_Heigl\AuthLdap\LdapList::addLdap()
S
80 1 3
Org_Heigl\AuthLdap\Exception\InvalidLdapUri::invalidSearchBaseProvided()
S
72 1 6
FeatureContext::theLoginSuceeds()
S
71 1 5
Org_Heigl\AuthLdap\Value\GroupBase::__toString()
S
82 1 3
FeatureContext::configurationValueIsSetTo()
S
69 1 7
Org_Heigl\AuthLdap\Value\Username::__toString()
S
82 1 3
Org_Heigl\AuthLdap\Value\GroupEnabled::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\GroupBase::fromString()
S
80 1 3
Org_Heigl\AuthLdap\Exception\SearchUnsuccessfull::fromSearchFilter()
S
72 1 6
Org_Heigl\AuthLdap\Value\LoggedInUser::getPassword()
S
82 1 3
Org_Heigl\AuthLdap\Value\ReadLdapAsUser::fromString()
S
78 1 3
Org_Heigl\AuthLdap\Value\GroupAssignment::getRole()
S
82 1 3
Org_Heigl\AuthLdap\Value\ReadLdapAsUser::isEnabled()
S
82 1 3
Org_Heigl\AuthLdap\Value\Password::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Options::has()
S
79 1 3
Org_Heigl\AuthLdap\Value\GroupAssignment::fromKeyValue()
S
78 1 3
Org_Heigl\AuthLdap\Value\GroupBase::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\UidAttribute::__construct()
S
81 1 3
FeatureContext::aWordpressUserDoesNotExist()
S
72 1 6
Org_Heigl\AuthLdap\Wrapper\Ldap::startTls()
S
80 1 3
Org_Heigl\AuthLdap\Value\NameAttribute::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Exception\InvalidLdapUri::noEnvironmentVariableSet()
S
72 1 6
Org_Heigl\AuthLdap\Value\SecondNameAttribute::fromString()
S
80 1 3
Org_Heigl\AuthLdap\Exception\InvalidLdapUri::wrongSchema()
S
72 1 6
Org_Heigl\AuthLdap\Value\GroupEnabled::isEnabled()
S
82 1 3
FeatureContext::wordpressUserHasRole()
S
71 1 7
Org_Heigl\AuthLdap\Value\GroupSeparator::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Wrapper\Ldap::unbind()
S
80 1 3
Org_Heigl\AuthLdap\Value\LoggedInUser::getUsername()
S
82 1 3
Org_Heigl\AuthLdap\Value\GroupFilter::fromString()
S
80 1 3
Org_Heigl\AuthLdap\Value\GroupOverUser::fromString()
S
78 1 3
Org_Heigl\AuthLdap\Value\LoggedInUser::fromUsernameAndPassword()
S
78 1 3
Org_Heigl\AuthLdap\Options::toArray()
S
82 1 3
Org_Heigl\AuthLdap\Value\MailAttribute::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\GroupOverUser::isEnabled()
S
82 1 3
Org_Heigl\AuthLdap\Value\UidAttribute::fromString()
S
80 1 3
Org_Heigl\AuthLdap\Value\ReadLdapAsUser::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\GroupFilter::__construct()
S
75 1 4
Org_Heigl\AuthLdap\Wrapper\Ldap::errno()
S
80 1 3
Org_Heigl\AuthLdap\Exception\InvalidLdapUri::noServerProvided()
S
72 1 6
Org_Heigl\AuthLdap\Exception\InvalidLdapUri::cannotparse()
S
72 1 6
Org_Heigl\AuthLdap\Logger::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\WebAttribute::fromString()
S
80 1 3
Org_Heigl\AuthLdap\LdapUri::toString()
S
78 1 3
Org_Heigl\AuthLdap\Value\Password::__toString()
S
82 1 3
Org_Heigl\AuthLdap\Wrapper\LdapFactory::escape()
S
79 1 3
Org_Heigl\AuthLdap\Wrapper\Ldap::getEntries()
S
79 1 3
Org_Heigl\AuthLdap\Value\NameAttribute::fromString()
S
80 1 3
Org_Heigl\AuthLdap\Exception\InvalidLdapUri::noSearchBaseProvided()
S
72 1 6
Org_Heigl\AuthLdap\LdapUri::__toString()
S
81 1 3
Org_Heigl\AuthLdap\Value\SecondNameAttribute::__construct()
S
81 1 3
Org_Heigl\AuthLdap\Value\CachePassword::isEnabled()
S
82 1 3
FeatureContext::__construct()
S
74 1 5
FeatureContext::theLoginFails()
S
75 1 4