Code Analysis: Bit Social 1.0.20

Function Rating Maintainability Complexity Lines of code
BitApps\Social\Config::get()
B
41 21 48
BitApps\Social\HTTP\Services\Schedule\SocialExecution::publishPost()
B
37 18 77
BitApps\Social\Utils\SmartTag::getSmartTagValue()
B
41 18 57
BitApps\Social\HTTP\Controllers\ScheduleController::getNextInterval()
B
42 17 49
BitApps\Social\HTTP\Controllers\ScheduleController::getScheduleNextPostTime()
A
43 15 46
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::getContents()
A
41 14 54
BitApps\Social\HTTP\Services\Social\FacebookService\PostPublishFacebookService::publishPost()
A
38 13 67
BitApps\Social\HTTP\Controllers\ScheduleController::updateStatus()
A
46 14 34
BitApps\Social\HTTP\Services\Social\LinkedinService\PostPublishLinkedinService::uploadVideo()
A
38 10 70
BitApps\Social\HTTP\Controllers\ShareNowController::update()
A
46 11 37
BitApps\Social\HTTP\Controllers\CalendarController::getAllSchedules()
A
42 10 49
BitApps\Social\HTTP\Controllers\CustomAppController::store()
A
43 10 48
BitApps\Social\HTTP\Services\Social\SocialValidator::verifyImage()
A
46 10 41
BitApps\Social\HTTP\Services\Social\LinkedinService\PostPublishLinkedinService::linkedinPostPublish()
A
50 11 25
BitApps\Social\HTTP\Services\Schedule\CustomSchedule::createScheduleEvent()
A
50 10 26
BitApps\Social\HTTP\Controllers\ScheduleController::update()
A
45 9 38
BitApps\Social\HTTP\Services\Schedule\CustomSchedule::register()
A
54 10 19
BitApps\Social\HTTP\Services\Social\LinkedinService\PostPublishLinkedinService::publishPost()
A
42 8 48
BitApps\Social\HTTP\Controllers\AccountController::index()
A
48 9 30
BitApps\Social\HTTP\Controllers\LogController::index()
A
53 9 21
BitApps\Social\HTTP\Controllers\ShareNowController::getAllMedia()
A
46 8 36
BitApps\Social\HTTP\Services\Schedule\CustomSchedule::addCustomInterval()
A
52 9 20
BitApps\Social\Dotenv::load()
A
52 8 22
BitApps\Social\HTTP\Services\Social\FacebookService\FacebookOAuth2Service::organizePageAndGroup()
A
48 7 35
BitApps\Social\HTTP\Services\Schedule\SocialExecution::isSleep()
A
56 8 17
BitApps\Social\HTTP\Controllers\ScheduleController::createSingleEventScheduleIsNotRepeat()
A
55 8 17
BitApps\Social\HTTP\Services\Social\FacebookService\FacebookOAuth2Service::authHandler()
S
41 5 59
BitApps\Social\HTTP\Controllers\DebugLogController::loadLogs()
S
51 7 26
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::postFilterArgument()
S
52 7 24
BitApps\Social\HTTP\Services\Social\SocialValidator::validatePlatform()
S
52 7 23
BitApps\Social\HTTP\Services\Social\LinkedinService\PostPublishLinkedinService::linkCardPublish()
S
48 6 33
BitApps\Social\Providers\HookProvider::includeTaskHooks()
S
57 7 16
BitApps\Social\Providers\HookProvider::loadAppHooks()
S
57 7 15
BitApps\Social\Dotenv::setEnv()
S
50 6 26
BitApps\Social\Providers\ScheduleActionHook::register()
S
60 7 11
BitApps\Social\HTTP\Services\Social\FacebookService\PostPublishFacebookService::mediaUpload()
S
52 6 25
BitApps\Social\HTTP\Controllers\ShareNowController::uploadFile()
S
47 5 35
BitApps\Social\HTTP\Services\Social\FacebookService\RefreshFacebookService::tokenExpiryCheck()
S
54 6 20
BitApps\Social\HTTP\Services\Social\LinkedinService\LinkedinOAuth2Service::saveAccount()
S
56 6 19
BitApps\Social\HTTP\Controllers\ShareNowController::store()
S
54 6 19
BitApps\Social\HTTP\Controllers\ShareNowController::createSingleEventScheduleIsNotRepeat()
S
58 6 14
BitApps\Social\HTTP\Controllers\WpPostController::filterPosts()
S
51 5 29
BitApps\Social\HTTP\Services\Social\LinkedinService\LinkedinOAuth2Service::accountOrganize()
S
50 5 28
BitApps\Social\Config::sideBarMenu()
S
39 1 87
BitApps\Social\HTTP\Controllers\AutoPostController::execute()
S
50 5 27
BitApps\Social\HTTP\Controllers\AccountController::destroy()
S
51 5 26
BitApps\Social\HTTP\Services\Social\FacebookService\PostPublishFacebookService::publishPostGroup()
S
51 5 25
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::imageUpload()
S
53 5 22
BitApps\Social\Views\Layout::sideBarMenuItem()
S
54 5 21
BitApps\Social\HTTP\Services\Social\LinkedinService\LinkedinOAuth2Service::authHandler()
S
55 5 18
BitApps\Social\HTTP\Services\Social\LinkedinService\PostPublishLinkedinService::uploadVideoPost()
S
48 4 33
BitApps\Social\HTTP\Controllers\RedirectController::redirectToState()
S
57 5 16
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::makeImageContent()
S
51 4 31
BitApps\Social\HTTP\Controllers\RetryController::retry()
S
48 4 31
BitApps\Social\HTTP\Controllers\AccountController::findScheduleByAccountId()
S
57 5 16
BitApps\Social\Views\Layout::linkTagFilter()
S
58 5 16
BitApps\Social\HTTP\Controllers\AutoPostController::wpPostPublished()
S
63 6 10
BitApps\Social\HTTP\Controllers\AuthController::authorize()
S
59 5 14
BitApps\Social\HTTP\Controllers\AccountController::accountRemoveFromSchedules()
S
49 4 28
BitApps\Social\Plugin::getMiddleware()
S
61 5 12
BitApps\Social\HTTP\Services\Social\FacebookService\PostPublishFacebookService::facebookPostPublish()
S
51 4 26
BitApps\Social\HTTP\Controllers\ScheduleController::store()
S
52 4 23
BitApps\Social\HTTP\Controllers\CustomAppController::index()
S
54 4 22
BitApps\Social\Views\Layout::head()
S
52 4 22
BitApps\Social\HTTP\Services\Social\FacebookService\RefreshFacebookService::refreshToken()
S
49 3 31
BitApps\Social\HTTP\Controllers\AccountController::accountPlatform()
S
57 4 16
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::orderPosts()
S
58 4 15
BitApps\Social\Providers\InstallerProvider::deactivate()
S
64 5 9
BitApps\Social\Views\Layout::createConfigVariable()
S
49 3 30
BitApps\Social\HTTP\Services\Social\LinkedinService\LinkedinRefreshTokenService::tokenExpiryCheck()
S
59 4 14
BitApps\Social\HTTP\Controllers\DebugLogController::parseLogLine()
S
52 3 23
BitApps\Social\HTTP\Controllers\ScheduleController::index()
S
52 3 23
BitApps\Social\HTTP\Controllers\ShareNowController::index()
S
53 3 21
BitApps\Social\HTTP\Services\Social\LinkedinService\PostPublishLinkedinService::logAndRetry()
S
55 3 19
BitApps\Social\HTTP\Controllers\DebugLogController::get()
S
57 3 17
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::config()
S
62 4 10
BitApps\Social\Plugin::maybeMigrateDB()
S
65 4 8
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::getFileType()
S
64 4 9
BitApps\Social\HTTP\Services\Social\SocialValidator::gifFrameCount()
S
64 4 9
BitApps\Social\Utils\SmartTag::tag()
S
64 4 10
BitApps\Social\Plugin::customScheduleInit()
S
66 4 7
BitApps\Social\HTTP\Services\Schedule\CustomSchedule::setScheduleConfig()
S
63 4 10
BitApps\Social\HTTP\Controllers\DebugLogController::clear()
S
60 3 14
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::organizeCompanies()
S
59 3 13
BitApps\Social\HTTP\Services\Social\SocialValidator::verifyVideo()
S
58 3 13
BitApps\Social\HTTP\Controllers\ShareNowController::shareNowData()
S
60 3 13
BitApps\Social\HTTP\Controllers\SocialTemplateController::getSocialTemplates()
S
61 3 13
BitApps\Social\HTTP\Services\Social\FacebookService\FacebookOAuth2Service::urlParamEncode()
S
61 3 12
BitApps\Social\HTTP\Services\Social\SocialValidator::validateImageTypeAndExt()
S
61 3 12
BitApps\Social\HTTP\Services\Social\LinkedinService\LinkedinRefreshTokenService::refreshToken()
S
54 2 21
BitApps\Social\HTTP\Services\Social\LinkedinService\PostPublishLinkedinService::linkedinPhotoPost()
S
54 2 21
BitApps\Social\HTTP\Services\Social\LinkedinService\LinkedinOAuth2Service::getUserAccount()
S
56 2 17
BitApps\Social\HTTP\Services\Social\LinkedinService\PostPublishLinkedinService::textPublish()
S
57 2 17
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::scheduleType()
S
66 3 8
BitApps\Social\HTTP\Controllers\DebugLogController::extractPluginName()
S
63 3 10
BitApps\Social\HTTP\Controllers\RedirectController::callback()
S
65 3 9
BitApps\Social\Views\Layout::RemoveAdminNotices()
S
66 3 8
BitApps\Social\HTTP\Middleware\NonceCheckerMiddleware::handle()
S
69 3 6
BitApps\Social\Providers\HookProvider::loadApi()
S
63 3 10
BitApps\Social\HTTP\Controllers\PluginImprovementController::createOrUpdate()
S
61 2 13
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::isScheduleCreatedToday()
S
61 2 12
BitApps\Social\HTTP\Controllers\GroupController::update()
S
61 2 12
BitApps\Social\HTTP\Controllers\CustomAppController::extractCredentials()
S
62 2 11
BitApps\Social\HTTP\Controllers\GroupController::store()
S
62 2 11
BitApps\Social\HTTP\Controllers\AccountController::platformsCredentials()
S
62 2 11
BitApps\Social\Providers\HookProvider::__construct()
S
62 2 11
BitApps\Social\Utils\Hash::encrypt()
S
61 2 11
BSPluginOptions::down()
S
55 1 23
BitApps\Social\Providers\InstallerProvider::register()
S
55 1 21
BitApps\Social\Providers\InstallerProvider::migration()
S
56 1 21
BitApps\Social\Providers\InstallerProvider::drop()
S
56 1 20
BitApps\Social\Views\Layout::body()
S
62 1 18
BitApps\Social\HTTP\Controllers\WpPostController::getFilteredPosts()
S
56 1 18
BSSchedulesMigration::up()
S
57 1 17
BitApps\Social\HTTP\Controllers\WpPostController::getCategories()
S
60 1 16
BitApps\Social\Views\Layout::scriptTagFilter()
S
68 2 7
BitApps\Social\Plugin::registerProviders()
S
72 2 6
BitApps\Social\HTTP\Controllers\CustomAppController::destroy()
S
71 2 6
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::accounts()
S
69 2 6
BitApps\Social\HTTP\Controllers\ScheduleController::getSmartTags()
S
72 2 6
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::settings()
S
70 2 6
BitApps\Social\HTTP\Controllers\DebugLogController::getFilesize()
S
78 2 3
BitApps\Social\HTTP\Controllers\DebugLogController::readLargeFile()
S
65 2 10
BitApps\Social\Plugin::actionLinks()
S
67 2 7
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::templates()
S
70 2 6
BitApps\Social\Plugin::load()
S
69 2 7
BitApps\Social\HTTP\Services\Factories\PlatformAppInfoResolverFactory::appInfoResolver()
S
67 2 7
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::postIdUpdate()
S
63 2 10
BitApps\Social\HTTP\Services\Social\AppInfo\FacebookAppInfoResolver::getAppInfo()
S
63 2 9
BitApps\Social\HTTP\Services\Social\AppInfo\LinkedinAppInfoResolver::getAppInfo()
S
69 2 6
BitApps\Social\Config::addOption()
S
76 2 3
BitApps\Social\HTTP\Controllers\GroupController::index()
S
68 2 7
BSPluginOptions::up()
S
66 2 8
BitApps\Social\HTTP\Controllers\AccountController::updateStatus()
S
63 2 10
BitApps\Social\Config::updateOption()
S
76 2 3
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::postFilters()
S
70 2 6
BitApps\Social\HTTP\Controllers\ScheduleController::show()
S
72 2 6
BitApps\Social\Config::getOption()
S
70 2 6
BitApps\Social\HTTP\Services\Social\FacebookService\RefreshFacebookService::saveRefreshedToken()
S
66 2 8
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::publishedPostIds()
S
71 2 5
BitApps\Social\Config::getEnv()
S
77 2 3
BitApps\Social\HTTP\Services\Social\LinkedinService\LinkedinRefreshTokenService::saveRefreshedToken()
S
66 2 8
BitApps\Social\HTTP\Controllers\DebugLogController::extractErrorType()
S
68 2 7
BitApps\Social\HTTP\Controllers\ScheduleController::allSchedule()
S
69 2 7
BitApps\Social\HTTP\Controllers\AutoPostController::getAutoPostSettings()
S
67 2 8
BitApps\Social\HTTP\Services\Factories\AuthServiceFactory::createAuthService()
S
65 2 8
BitApps\Social\Utils\Hash::decrypt()
S
63 2 10
BitApps\Social\HTTP\Controllers\AccountController::accountRemoveFromGroup()
S
62 2 10
BSAccountsMigration::up()
S
59 1 14
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::commonParams()
S
60 1 14
BitApps\Social\HTTP\Controllers\WpPostController::getPostTypes()
S
60 1 14
BitApps\Social\HTTP\Services\Social\LinkedinService\LinkedinOAuth2Service::getAccessToken()
S
61 1 12
BitApps\Social\HTTP\Controllers\ScheduleController::search()
S
60 1 12
BitApps\Social\Config::pluginPageLinks()
S
62 1 12
BitApps\Social\Plugin::initWPTelemetry()
S
63 1 11
BitApps\Social\HTTP\Controllers\AnalyticsController::index()
S
62 1 11
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::scheduleComplete()
S
67 1 7
BitApps\Social\Providers\InstallerProvider::registerDeactivator()
S
80 1 3
BitApps\Social\HTTP\Controllers\ShareNowController::destroy()
S
72 1 5
BitApps\Social\HTTP\Services\Social\SocialValidator::imagePixel()
S
68 1 7
BitApps\Social\Plugin::instance()
S
81 1 3
BitApps\Social\HTTP\Controllers\AccountController::store()
S
71 1 5
BitApps\Social\HTTP\Controllers\AccountController::__construct()
S
80 1 3
BitApps\Social\HTTP\Controllers\AccountController::isExists()
S
77 1 3
BitApps\Social\HTTP\Controllers\BitSocialAnalyticsController::filterTrackingData()
S
71 1 5
BitApps\Social\HTTP\Controllers\PluginImprovementController::getData()
S
73 1 5
BitApps\Social\HTTP\Services\Social\FacebookService\RefreshFacebookService::__construct()
S
70 1 6
BSGroupsMigration::up()
S
65 1 9
BSLogsMigration::down()
S
79 1 3
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::uploadHeader()
S
65 1 9
BitApps\Social\HTTP\Services\Social\FacebookService\PostPublishFacebookService::__construct()
S
76 1 4
BitApps\Social\Config::withPrefix()
S
79 1 3
BitApps\Social\HTTP\Controllers\ScheduleController::destroy()
S
72 1 5
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::__construct()
S
80 1 3
BitApps\Social\Plugin::middlewares()
S
74 1 5
BitApps\Social\HTTP\Requests\SettingsUpdateRequest::rules()
S
74 1 5
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::makeHeader()
S
65 1 9
BitApps\Social\HTTP\Services\Social\SocialValidator::__construct()
S
80 1 3
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::publishHeader()
S
65 1 9
BitApps\Social\HTTP\Controllers\AutoPostController::autoPostSettings()
S
80 1 3
BSCustomAppsMigration::up()
S
64 1 10
BitApps\Social\HTTP\Controllers\AutoPostController::update()
S
75 1 4
BitApps\Social\HTTP\Controllers\SettingsController::updateSettings()
S
91 1 2
BSPluginOptionsUpdate::down()
S
91 1 2
BSPluginOptionsUpdate::up()
S
75 1 4
BitApps\Social\HTTP\Services\Social\FacebookService\PostPublishFacebookService::facebookMediaUpload()
S
64 1 9
BitApps\Social\HTTP\Services\Social\FacebookService\FacebookOAuth2Service::accountsPages()
S
63 1 10
BitApps\Social\Plugin::registerInstaller()
S
77 1 4
BitApps\Social\Views\Layout::__construct()
S
67 1 7
BitApps\Social\Views\Layout::pm_remove_all_scripts()
S
70 1 5
BSSchedulesMigration::down()
S
79 1 3
BitApps\Social\HTTP\Services\Social\LinkedinService\LinkedinOAuth2Service::__construct()
S
80 1 3
BitApps\Social\Config::deleteOption()
S
79 1 3
BitApps\Social\HTTP\Controllers\LogController::destroy()
S
75 1 4
BitApps\Social\HTTP\Controllers\DebugLogController::__construct()
S
80 1 3
BitApps\Social\HTTP\Services\Schedule\ScheduleInfo::nextPostUpdate()
S
63 1 10
BitApps\Social\HTTP\Requests\ScheduleStoreRequest::rules()
S
67 1 8
BSAccountsMigration::down()
S
79 1 3
BitApps\Social\HTTP\Services\Social\LinkedinService\PostPublishLinkedinService::uploadImage()
S
63 1 10
BitApps\Social\HTTP\Controllers\SocialTemplateController::socialTemplates()
S
80 1 3
BitApps\Social\HTTP\Controllers\AccountController::activeAccounts()
S
71 1 5
BitApps\Social\HTTP\Services\Social\FacebookService\FacebookOAuth2Service::getUserInfo()
S
65 1 9
BitApps\Social\Model\Schedule::logs()
S
79 1 3
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::getLocalImagePath()
S
68 1 7
BitApps\Social\Providers\HookProvider::loadScheduleActionHooks()
S
82 1 3
BitApps\Social\HTTP\Services\Social\LinkedinService\LinkedinRefreshTokenService::__construct()
S
75 1 4
BitApps\Social\HTTP\Services\Social\FacebookService\FacebookOAuth2Service::__construct()
S
66 1 8
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::initializeHeader()
S
67 1 8
BitApps\Social\HTTP\Services\Social\FacebookService\FacebookOAuth2Service::accountsGroups()
S
63 1 10
BitApps\Social\Providers\InstallerProvider::registerActivator()
S
80 1 3
BitApps\Social\HTTP\Services\Social\FacebookService\FacebookOAuth2Service::fetchPageProfilePic()
S
63 1 10
BitApps\Social\HTTP\Controllers\GroupController::destroy()
S
77 1 4
BitApps\Social\HTTP\Services\Social\LinkedinService\Helper::organizeToken()
S
63 1 10
BitApps\Social\HTTP\Services\Schedule\CustomSchedule::__construct()
S
81 1 3
BitApps\Social\HTTP\Controllers\AuthController::__construct()
S
77 1 4
BitApps\Social\Model\Log::schedule()
S
79 1 3
BitApps\Social\Providers\InstallerProvider::registerUninstaller()
S
79 1 3
BSCustomAppsMigration::down()
S
79 1 3
BitApps\Social\HTTP\Requests\AuthorizeRequest::rules()
S
71 1 6
BitApps\Social\HTTP\Controllers\DebugLogController::gmt_to_local_timestamp()
S
75 1 4
BitApps\Social\Plugin::loaded()
S
67 1 7
BitApps\Social\Providers\HookProvider::loadTriggersAjax()
S
91 1 2
BitApps\Social\HTTP\Services\Social\Social::publishPost()
S
81 1 3
BitApps\Social\HTTP\Controllers\ChangelogController::updateChangelogVersion()
S
75 1 4
BitApps\Social\HTTP\Controllers\SettingsController::getAllSettings()
S
65 1 9
BSLogsMigration::up()
S
63 1 10
BitApps\Social\Providers\HookProvider::loadActionsHooks()
S
91 1 2
BitApps\Social\HTTP\Controllers\CustomAppController::__construct()
S
80 1 3
BSGroupsMigration::down()
S
79 1 3
BitApps\Social\Plugin::__construct()
S
69 1 6
BitApps\Social\HTTP\Controllers\SocialTemplateController::update()
S
75 1 4
BitApps\Social\HTTP\Services\Schedule\SocialExecution::__construct()
S
81 1 3
BitApps\Social\HTTP\Services\Social\Social::__construct()
S
81 1 3
BitApps\Social\HTTP\Services\Social\LinkedinService\PostPublishLinkedinService::__construct()
S
73 1 5
BitApps\Social\Providers\InstallerProvider::__construct()
S
64 1 9
BitApps\Social\HTTP\Controllers\UserInfoController::index()
S
65 1 9
BitApps\Social\Providers\ScheduleActionHook::execute()
S
75 1 4