Code Analysis: GrandWP Gallery 1.1.0

Function Rating Maintainability Complexity Lines of code
GDGallery\Controllers\Admin\SettingsController::settingsFileds()
D
0
1 2,058
GDGallery\Core\Model::get()
B
39 16 58
GDGallery\Helpers\View::pagination()
A
43 15 45
GDGallery\Models\Gallery::getItemsPerPage()
A
44 10 41
GDGallery\Controllers\Admin\AdminAssetsController::adminStyles()
A
52 11 21
GDGallery\Controllers\Admin\AjaxController::saveGallery()
A
47 10 33
GDGallery\Core\Model::__construct()
A
49 9 28
GDGallery\Core\Model::prepareSaveData()
A
51 9 27
GDGallery\Controllers\Admin\AdminController::duplicateGallery()
A
49 8 28
GDGallery\Models\Gallery::getOrderInfo()
S
51 7 30
GDGallery\Models\Settings::getOptionsByView()
S
51 7 28
GDGallery\Controllers\Admin\AdminAssetsController::adminScripts()
S
51 7 24
GDGallery\Models\Settings::getMatchedOptions()
S
47 6 34
GDGallery\Debug::get_client_ip()
S
57 7 18
GDGallery\Models\Settings::setOption()
S
56 7 17
GDGallery\Controllers\Frontend\AjaxController::getItems()
S
48 6 31
GDGallery\Controllers\Admin\SettingsController::save()
S
59 7 13
GDGallery\Models\Gallery::getItems()
S
50 6 27
GDGallery\Controllers\Frontend\FrontendAssetsController::localizeScripts()
S
52 6 25
GDGallery\Controllers\Admin\AdminController::deleteGallery()
S
54 6 20
GDGallery\Controllers\Admin\AdminController::createGallery()
S
53 6 20
GDGallery\Controllers\Admin\AdminController::mainPage()
S
54 5 21
GDGallery\Models\Gallery::getGallery()
S
54 5 21
GDGallery\Controllers\Admin\AjaxController::removeGalleryItems()
S
56 5 17
GDGallery\Models\Gallery::getData()
S
56 5 17
GDGallery\Controllers\Admin\AjaxController::savePluginSettings()
S
57 5 15
GDGallery\Models\Settings::__construct()
S
58 5 14
GDGallery\Helpers\SettingsPageBuilder::addSections()
S
62 5 11
GDGallery\Helpers\SettingsPageBuilder::addFields()
S
62 5 11
GDGallery\Helpers\SettingsPageBuilder::addTabs()
S
62 5 11
gutenberg_gd_photo_gallery()
S
48 3 36
GDGallery\Controllers\Admin\AjaxController::AddGalleryVideo()
S
55 4 19
GDGallery\Controllers\Admin\AjaxController::saveGalleryImages()
S
55 4 18
GDGallery\Helpers\View::locate()
S
58 4 18
GDGallery\Controllers\Admin\AjaxController::EditGalleryThumbnail()
S
56 4 17
GDGallery\Core\Model::save()
S
57 4 17
GDGallery\Controllers\Admin\AjaxController::AddGalleryImage()
S
57 4 16
GDGallery\Models\Gallery::__construct()
S
57 4 16
GDGallery\Controllers\Admin\AdminController::isRequest()
S
75 5 3
GDGallery\Controllers\Widgets\GalleryWidgetController::widget()
S
59 4 13
GDGallery\GDGallery::runMigrations()
S
61 4 12
GDGallery\Core\Model::delete()
S
60 4 12
GDGallery\Models\Gallery::getVideoId()
S
60 4 12
GDGallery\Helpers\View::render()
S
61 4 11
GDGallery\Models\Gallery::saveGalleryImages()
S
62 4 11
GDGallery\Models\Settings::getLightboxOptions()
S
47 2 33
GDGallery\Helpers\SettingsPageBuilder::addSection()
S
64 4 9
GDGallery\Helpers\SettingsPageBuilder::render()
S
62 4 10
GDGallery\Helpers\SettingsPageBuilder::addField()
S
64 4 9
GDGallery\Models\Gallery::getVideoType()
S
66 4 8
GDGallery\Database\Migrations\CreateDefaultGallery::run()
S
58 3 15
GDGallery\GDGallery::init()
S
61 3 14
GDGalleryAutoload()
S
60 3 13
GDGallery\Database\Migrations\CreateGalleryTable::run()
S
55 2 25
GDGallery\Models\Settings::getOptionsCarousel()
S
52 2 23
GDGallery\Models\Gallery::AddGalleryVideo()
S
53 2 23
GDGallery\Models\Settings::getOptionsGrid()
S
53 2 21
GDGallery\Models\Gallery::set()
S
57 2 18
GDGallery\Models\Gallery::AddGalleryImage()
S
57 2 17
GDGallery\Models\Gallery::getGalleriesUrl()
S
57 2 16
GDGallery\Helpers\SettingsPageBuilder::getOptions()
S
64 3 10
GDGallery\Controllers\Frontend\ShortcodeController::run()
S
62 3 10
GDGallery\Controllers\Widgets\GalleryWidgetController::form()
S
70 3 5
gd_photo_gallery_gutenberg_category()
S
60 2 15
GDGallery\Core\Model::isset_table_column()
S
63 3 10
GDGallery\Models\Gallery::setDisplayTitle()
S
68 3 7
GDGallery\Debug::trace()
S
66 3 8
GDGallery\Models\Gallery::getVideoThumb()
S
62 3 10
GDGallery\Models\Gallery::AddDuplicatedData()
S
62 2 12
GDGallery\Controllers\Admin\AdminController::adminMenu()
S
54 1 22
GDGallery\Database\Migrations\CreateImageTable::run()
S
59 1 21
GDGallery\Controllers\Frontend\GalleryPreviewController::previewUrl()
S
66 2 8
GDGallery\Controllers\Frontend\GalleryPreviewController::theContent()
S
73 2 4
GDGallery\GDGallery::setDefaultGallerySettings()
S
66 2 8
GDGallery\Controllers\Admin\AdminController::printError()
S
66 2 8
GDGallery\Controllers\Frontend\GalleryPreviewController::__construct()
S
65 2 8
GDGallery\Controllers\Frontend\GalleryPreviewController::theTitle()
S
68 2 6
GDGallery\Models\Gallery::removeGalleryItems()
S
68 2 7
GDGallery\Controllers\Admin\AjaxController::saveGallerySettings()
S
63 2 10
GDGallery\Models\Gallery::getName()
S
77 2 3
GDGallery\Models\Gallery::getEditLink()
S
71 2 6
GDGallery\Models\Gallery::saveGallery()
S
66 2 8
GDGallery\Models\Gallery::updateImageOrdering()
S
69 2 6
GDGallery\Models\Settings::getOption()
S
71 2 6
GDGallery\GDGallery::instance()
S
72 2 6
GDGallery\Core\Model::getAllItemsCount()
S
68 2 7
GDGallery\GDGallery::checkVersion()
S
69 2 7
GDGallery\Controllers\Frontend\FrontendAssetsController::addAjaxUrlJs()
S
69 2 7
GDGallery\GDGallery::constants()
S
62 1 14
GDGallery\Database\Migrations\CreateSettingsTable::run()
S
65 1 12
GDGallery\Models\Gallery::duplicateGallery()
S
63 1 11
GDGallery\Controllers\Admin\AdminAssetsController::localizeScripts()
S
63 1 11
GDGallery\GDGallery::__construct()
S
63 1 11
GDGallery\Controllers\Frontend\FrontendAssetsController::addStyles()
S
74 1 4
GDGallery\Controllers\Admin\SettingsController::getOption()
S
82 1 3
GDGallery\Controllers\Frontend\ShortcodeController::show()
S
69 1 6
GDGallery\Helpers\SettingsPageBuilder::setPageTitle()
S
77 1 4
GDGallery\Controllers\Frontend\GalleryPreviewController::templateInclude()
S
78 1 3
GDGallery\Controllers\Admin\ShortcodeController::showEditorMediaButton()
S
63 1 9
GDGallery\Models\Settings::getOptionsTiles()
S
68 1 7
GDGallery\Models\Settings::getOptionsSlider()
S
76 1 4
GDGallery\Controllers\Widgets\WidgetsController::init()
S
80 1 3
GDGallery\Models\Gallery::setId()
S
81 1 3
GDGallery\Models\Gallery::unsetId()
S
77 1 4
GDGallery\Controllers\Widgets\GalleryWidgetController::__construct()
S
69 1 7
GDGallery\Models\Gallery::getId()
S
82 1 3
GDGallery\Models\Gallery::getTableName()
S
79 1 3
GDGallery\GDGallery::pluginUrl()
S
79 1 3
GDGallery\Controllers\Admin\AdminController::featuredPage()
S
77 1 4
GDGallery\Models\Gallery::getViewStyles()
S
82 1 3
GDGallery\GDGallery::viewPath()
S
79 1 3
GDGallery\Controllers\Frontend\FrontendAssetsController::addScripts()
S
66 1 7
GDGallery\Helpers\View::buffer()
S
72 1 5
GDGallery\Controllers\Admin\AdminController::settingsPage()
S
77 1 4
GDGallery\Controllers\Frontend\FrontendController::__construct()
S
73 1 5
GDGallery()
S
80 1 3
GDGallery\Controllers\Admin\ShortcodeController::showInlinePopup()
S
80 1 3
GDGallery\Models\Gallery::getItemsTableName()
S
79 1 3
GDGallery\Controllers\Admin\AdminAssetsController::init()
S
75 1 4
GDGallery\GDGallery::pluginPath()
S
80 1 3
GDGallery\Controllers\Widgets\GalleryWidgetController::update()
S
71 1 6
GDGallery\Controllers\Admin\SettingsController::setOption()
S
81 1 3
GDGallery\Models\Gallery::setViewStyles()
S
65 1 9
GDGallery\Controllers\Admin\AdminController::__construct()
S
66 1 8
GDGallery\Models\Settings::getDefaultOptions()
S
82 1 3
GDGallery\Models\Gallery::getItemsCount()
S
71 1 5
GDGallery\Controllers\Frontend\FrontendAssetsController::init()
S
72 1 5
GDGallery\Models\Settings::getOptions()
S
82 1 3
GDGallery\Helpers\SettingsPageBuilder::getPageTitle()
S
82 1 3
GDGallery\Controllers\Admin\AjaxController::init()
S
63 1 10
GDGallery\Helpers\SettingsPageBuilder::__construct()
S
91 1 2
GDGallery\Database\Uninstall::run()
S
67 1 8
GDGallery\Models\Settings::getOptionsJustified()
S
70 1 6
GDGallery\Models\Gallery::EditGalleryThumbnail()
S
64 1 10
GDGallery\Controllers\Frontend\AjaxController::init()
S
75 1 4
GDGallery\Controllers\Admin\AdminController::stylesPage()
S
74 1 5
GDGallery\Controllers\Frontend\GalleryPreviewController::preGetPosts()
S
79 1 3
GDGallery\Models\Gallery::setName()
S
76 1 4
GDGallery\Core\Model::getTableName()
S
76 1 4
GDGallery\Models\Gallery::getDisplayTitle()
S
82 1 3