Code Analysis: Content4Subscribers 1.1

Function Rating Maintainability Complexity Lines of code
c4s_init()
D
28
43 117
c4s_admin()
B
34 16 118
c4s_shortcode_firstname()
A
53 12 22
c4s_shortcode_lastname()
A
53 12 22
c4s_shortcode_email()
A
53 12 22
OAuthApplication::request()
A
49 11 28
OAuthApplication::makeRequest()
A
45 9 39
c4s_signup()
S
51 7 30
AWeberEntry::__get()
S
56 7 17
MockOAuthAdapter::makeRequest()
S
49 6 29
AWeberCollection::_fetchCollectionData()
S
50 6 28
c4s_shortcode_signup()
S
53 6 21
Signup_Widget::widget()
S
53 6 20
c4s_shortcode_hide()
S
50 5 29
AWeberEntry::attrs()
S
59 6 14
c4s_shortcode_no_subscribers()
S
55 5 19
Login_Widget::widget()
S
54 5 19
AWeberCollection::_updatePageSize()
S
57 5 17
OAuthApplication::parseResponse()
S
59 5 15
MockData::load()
S
59 4 14
Signup_Widget::form()
S
52 3 26
Login_Widget::form()
S
55 3 21
AWeberResponse::__get()
S
65 4 9
OAuthApplication::createSignatureBase()
S
58 3 15
OAuthUser::getHighestPriorityToken()
S
70 4 6
AWeberCollection::offsetGet()
S
59 3 13
AWeberAPI::getAccount()
S
62 3 11
C4S_MailChimp::_raw_request()
S
56 2 16
OAuthApplication::_sendRequest()
S
57 2 16
require_template()
S
65 3 9
AWeberAPIBase::readResponse()
S
64 3 9
OAuthApplication::__construct()
S
65 3 9
OAuthApplication::requiredFromResponse()
S
69 3 7
OAuthApplication::_addParametersToUrl()
S
64 3 10
CurlResponse::__construct()
S
57 2 15
AWeberEntry::_type()
S
65 3 9
OAuthApplication::collapseDataForSignature()
S
64 3 9
OAuthUser::isAuthorized()
S
71 3 6
AWeberCollection::offsetExists()
S
71 3 6
AWeberEntry::_isChildCollection()
S
69 3 6
TestOAuthAppliation::testPrepareRequest()
S
58 2 14
OAuthApplication::getAccessToken()
S
60 2 13
AWeberEntry::move()
S
60 2 13
AWeberEntry::getParentEntry()
S
60 2 12
AWeberAPI::getDataFromAweberID()
S
61 2 12
AWeberCollection::getParentEntry()
S
61 2 11
C4S_CleverReach::addUser()
S
55 1 19
TestAWeberMoveEntry::testMoveWLastMessageNumberSent_Success()
S
57 1 16
TestOAuthAppliation::testGetOAuthRequestData()
S
58 1 16
OAuthApplication::getRequestToken()
S
64 2 9
OAuthApplication::parseAsError()
S
70 2 6
OAuthApplication::generateNonce()
S
73 2 4
OAuthApplication::createSignature()
S
68 2 7
TestAccountGetWebForms::testShouldHaveEntries()
S
73 2 5
OAuthApplication::buildData()
S
66 2 8
TestAccountGetWebForms::testShouldHaveFullURL()
S
72 2 5
TestAccountGetWebFormSplitTests::testShouldHaveEntries()
S
73 2 5
c4s_activate()
S
65 2 9
AWeberEntry::save()
S
68 2 7
TestAWeberAPI::test_should_raise_exception_if_auth_fails()
S
63 2 10
TestAccountGetWebFormSplitTests::testShouldHaveFullURL()
S
72 2 5
AWeberEntry::__set()
S
67 2 8
TestAWeberSubscriberEntry::testCanIterateOverCustomFields()
S
68 2 7
TestAWeberCollectionFind::testFind_ReturnsEntries()
S
58 1 15
TestAWeberCollectionFind::testFindDoesNot_ReturnsEntries()
S
58 1 15
TestOAuthAppliation::testUniqueNonce()
S
66 2 8
TestOAuthAppliation::testUniqueNonceSameTime()
S
63 2 10
AWeberEntry::_parseNamedOperation()
S
66 2 8
AWeberEntry::_methodFor()
S
74 2 4
TestOAuthAppliation::testSignRequest()
S
62 2 10
AWeberEntry::_getCollection()
S
66 2 8
TestAWeberCollection::testShouldAllowIteration()
S
67 2 8
AWeberAPI::_parseAWeberID()
S
68 2 7
AWeberAPI::getAuthorizeUrl()
S
69 2 7
AWeberAPI::setAdapter()
S
66 2 9
AWeberAPI::__get()
S
74 2 4
AWeberAPIException::__construct()
S
66 2 8
AWeberOAuthDataMissing::__construct()
S
69 2 6
AWeberEntryDataArray::valid()
S
71 2 6
TestAWeberMoveEntry::testMove_Success()
S
59 1 14
TestAWeberCreateEntry::testCreate_Success()
S
59 1 14
TestAWeberEntry::testAttrs()
S
61 1 14
TestAWeberMoveEntry::testMove_Failure()
S
60 1 13
TestAWeberAPI::setUp()
S
61 1 13
TestAWeberCollection::testShouldLazilyLoadAdditionalPages()
S
60 1 13
TestGettingEntryParentEntry::setUp()
S
62 1 12
TestAWeberCollectionParentEntry::setUp()
S
62 1 12
TestAWeberCollection::testShouldAllowGetById()
S
61 1 12
OAuthApplication::getOAuthRequestData()
S
62 1 12
TestAWeberMoveEntry::setUp()
S
62 1 12
call_notice_it_options()
S
64 1 11
TestOAuthAppliation::testAddGetParams()
S
63 1 11
TestFindCollection::setUp()
S
62 1 11
TestOAuthAppliation::testParseResponse()
S
63 1 11
TestAWeberEntry::testSave()
S
62 1 11
TestFindCollection::testShouldRequestCollectionPageFirst()
S
75 1 4
AWeberCollection::current()
S
80 1 3
AWeberEntryDataArray::key()
S
80 1 3
AWeberCollection::getById()
S
71 1 5
AWeberEntryDataArray::__construct()
S
71 1 6
AWeberEntryDataArray::count()
S
80 1 3
TestAWeberCollection::testShouldBeAnIterator()
S
79 1 3
AWeberEntryDataArray::offsetExists()
S
79 1 3
C4S_CleverReach::__construct()
S
73 1 5
AWeberEntryDataArray::offsetGet()
S
80 1 3
OAuthApplication::generateTimestamp()
S
81 1 3
AWeberCollection::rewind()
S
81 1 3
TestAWeberEntry::testSet()
S
69 1 7
AWeberEntryDataArray::offsetUnset()
S
80 1 3
TestAWeberEntry::testShouldBeAnAWeberResponse()
S
79 1 3
AWeberEntryDataArray::rewind()
S
81 1 3
TestAccountGetWebForms::setUp()
S
76 1 4
TestAWeberEntry::testShouldKnowItsType()
S
80 1 3
AWeberEntryDataArray::current()
S
80 1 3
TestAWeberEntry::testShouldMaintainDirtiness()
S
64 1 10
AWeberCollection::count()
S
82 1 3
AWeberCollection::create()
S
66 1 7
OAuthApplication::encode()
S
80 1 3
C4S_CleverReach::getUser()
S
79 1 3
AWeberServiceProvider::getRequestTokenUrl()
S
82 1 3
AWeberCollection::find()
S
65 1 8
TestAWeberAccountEntry::testIsAccount()
S
80 1 3
CurlResponse::__toString()
S
82 1 3
OAuthApplication::mergeOAuthData()
S
75 1 4
TestAccountGetWebForms::testShouldReturnArray()
S
80 1 3
OAuthApplication::get()
S
70 1 6
OAuthApplication::post()
S
66 1 8
CurlResponse::headers()
S
82 1 3
TestAccountGetWebFormSplitTests::setUp()
S
76 1 4
TestAccountGetWebFormSplitTests::testShouldReturnArray()
S
80 1 3
TestAccountGetWebFormSplitTests::testShouldHaveCorrectCountOfEntries()
S
79 1 3
TestAWeberAPI::test_should_allow_setting_oauth_adapter()
S
76 1 4
AWeberOAuthException::__construct()
S
72 1 5
TestAccountFindSubscribers::testShouldSupportFindSubscribersMethod()
S
67 1 7
TestAWeberSubscriberEntry::setUp()
S
70 1 6
TestAWeberSubscriberEntry::testIsSubscriber()
S
80 1 3
TestAWeberSubscriberEntry::testHasCustomFields()
S
76 1 4
TestAWeberSubscriberEntry::testCanReadCustomFields()
S
75 1 4
TestAWeberSubscriberEntry::testCanUpdateCustomFields()
S
72 1 5
TestAWeberSubscriberEntry::testCanViewSizeOfCustomFields()
S
79 1 3
TestAWeberCollectionFind::setUp()
S
71 1 6
TestAWeberSubscriberEntry::testShouldBeUpdatable()
S
68 1 7
TestAWeberSubscriberEntry::testShouldSupportGetActivity()
S
72 1 5
TestAWeberCollectionFind::_getCollection()
S
75 1 4
AWeberEntry::findSubscribers()
S
62 1 10
AWeberResourceNotImplemented::__construct()
S
72 1 5
AWeberCollection::__construct()
S
75 1 4
C4S_MailChimp::call()
S
79 1 3
AWeberAPI::__construct()
S
74 1 5
AWeberAPIBase::_cleanUrl()
S
79 1 3
AWeberServiceProvider::getUserData()
S
92 1 1
AWeberServiceProvider::getAuthTokenFromUrl()
S
92 1 1
AWeberCollection::next()
S
82 1 3
TestAWeberEntry::setUp()
S
70 1 6
AWeberResponse::__set()
S
80 1 3
AWeberServiceProvider::getAccessTokenUrl()
S
82 1 3
TestAWeberCollection::testShouldNotAccessEntriesOutOfRange()
S
80 1 3
TestAWeberAPI::test_getAccount()
S
67 1 7
TestOAuthAppliation::testMergeOAuthData()
S
72 1 5
AWeberServiceProvider::getAuthorizeUrl()
S
82 1 3
TestAWeberEntry::testShouldProvidedCollections()
S
66 1 8
AWeberEntryDataArray::offsetSet()
S
73 1 5
AWeberResponseError::__construct()
S
75 1 4
load_Signup_Widget()
S
82 1 3
AWeberCollection::valid()
S
80 1 3
Login_Widget::Login_Widget()
S
70 1 5
TestOAuthAppliation::testRequestReturnValueIsZeroNotInJSONFormat()
S
68 1 7
c4s_loadlang()
S
74 1 4
AWeberServiceProvider::removeBaseUri()
S
79 1 3
Signup_Widget::update()
S
68 1 8
TestOAuthAppliation::testGetVersion()
S
75 1 4
load_Login_Widget()
S
82 1 3
AWeberEntry::getWebForms()
S
69 1 6
TestOAuthAppliation::testCreateSignatureBase()
S
64 1 9
TestAWeberAPI::test_should_contain_app_keys()
S
75 1 4
TestAWeberAPI::test_loadFromUrl()
S
68 1 7
C4S_MailChimp::__construct()
S
72 1 5
TestAccountGetWebForms::testShouldHaveCorrectCountOfEntries()
S
79 1 3
TestOAuthAppliation::setUp()
S
71 1 6
TestOAuthAppliation::testCreatSignatureKey()
S
70 1 6
TestAWeberCollection::testShouldAllowCountOperations()
S
75 1 4
MockOAuthAdapter::addRequest()
S
70 1 6
AWeberMethodNotImplemented::__construct()
S
76 1 4
TestFindCollection::testShouldFetchDataforDataNotPreviouslyLoaded()
S
72 1 5
AWeberAPI::getAccessToken()
S
81 1 3
TestAWeberCollection::setUp()
S
70 1 6
TestGettingEntryParentEntry::testListParentShouldBeAccount()
S
72 1 5
TestAWeberCollection::testShouldNotAccessEntries()
S
81 1 3
TestMultipleInstalledVersions::setUp()
S
77 1 4
TestGettingEntryParentEntry::testAccountParentShouldBeNULL()
S
76 1 4
TestFindCollection::testShouldFetchCorrectDataOnSecondPage()
S
72 1 5
TestAWeberEntry::testSaveFailed()
S
66 1 8
TestGettingEntryParentEntry::testCustomFieldParentShouldBeList()
S
72 1 5
AWeberEntry::getWebFormSplitTests()
S
69 1 6
TestAWeberCollectionParentEntry::testAccountsParentShouldBeNULL()
S
76 1 4
TestOAuthAppliation::testOAuthUser()
S
69 1 7
TestFindCollection::testShouldRequestTotalSizePageSecond()
S
75 1 4
TestOAuthAppliation::generateRequestData()
S
64 1 10
AWeberAPIBase::loadFromUrl()
S
75 1 4
TestFindCollection::testShouldRequestCorrectCollectionPage()
S
70 1 6
AWeberAPI::getRequestToken()
S
75 1 4
AWeberEntry::delete()
S
75 1 4
TestAWeberEntry::testShouldBeAbleToAccessName()
S
80 1 3
AWeberCollection::_type()
S
72 1 5
TestOAuthAppliation::testCreateSignatureUniqueness()
S
64 1 10
AccountTestCase::setUp()
S
70 1 6
TestAWeberCollection::testShouldKnowItsCollectionType()
S
80 1 3
TestAWeberEntry::testDelete()
S
66 1 8
AWeberEntryDataArray::next()
S
82 1 3
TestOAuthAppliation::testGenerateTimestamp()
S
68 1 7
Login_Widget::update()
S
69 1 7
OAuthApplication::prepareRequest()
S
73 1 5
Signup_Widget::Signup_Widget()
S
70 1 5
TestAWeberCollection::testShouldHaveTotalSize()
S
80 1 3
TestAWeberCollection::testShouldAccessEntiresAsArray()
S
69 1 6
myErrorHandler()
S
75 1 4
TestAWeberAPI::test_should_work_after_authorization()
S
69 1 6
TestAWeberEntry::testShouldBeAbleToAccessId()
S
80 1 3
TestAWeberCreateEntry::setUp()
S
70 1 6
TestAWeberEntry::testShouldBeAnAWeberEntry()
S
79 1 3
MockOAuthAdapter::clearRequests()
S
81 1 3
TestAWeberCollectionParentEntry::testCustomFieldsParentShouldBeList()
S
72 1 5
TestAWeberCollectionParentEntry::testListsParentShouldBeAccount()
S
72 1 5
AWeberCollection::key()
S
82 1 3
TestAWeberEntry::testFailedDelete()
S
68 1 7
AWeberEntry::getActivity()
S
62 1 10
OAuthApplication::delete()
S
68 1 7
AWeberCollection::offsetUnset()
S
98 1 1
AWeberServiceProvider::getBaseUri()
S
82 1 3
TestAWeberEntry::testShouldThrowExceptionIfNotImplemented()
S
70 1 6
TestMultipleInstalledVersions::test_multiple_includes()
S
65 1 9
TestFindCollection::testShouldInitiallyMake2APIRequests()
S
79 1 3
OAuthApplication::signRequest()
S
68 1 7
AWeberResponse::__construct()
S
74 1 5
TestOAuthAppliation::generateOAuthUser()
S
64 1 10
AWeberCollection::offsetSet()
S
98 1 1
OAuthApplication::patch()
S
66 1 8
OAuthApplication::createSignatureKey()
S
80 1 3
get_mock_adapter()
S
77 1 4
TestAWeberCollection::testShouldHaveURL()
S
80 1 3
TestOAuthAppliation::testCreateSignature()
S
66 1 8