Code Analysis: Product Specifications for WooCommerce 0.8.2

Function Rating Maintainability Complexity Lines of code
Amiut\ProductSpecs\ImportExport\ImportDataAjaxHandler::importPluginData()
B
36 18 75
dwspecs_attr_value_by()
A
50 13 27
dwspecs_get_table_groups()
A
49 9 29
Amiut\ProductSpecs\ImportExport\ExportDataAjaxHandler::export()
A
47 8 29
dwspecs_get_table_result()
A
52 8 25
Amiut\ProductSpecs\ImportExport\ImportDataAjaxHandler::__invoke()
S
49 7 26
Amiut\ProductSpecs\Attribute\AttributeFieldFactory::createFromWpTerm()
S
53 7 19
Amiut\ProductSpecs\EntityUpdater\AttributeController::validate()
S
57 7 14
Amiut\ProductSpecs\Integration\WooCommerce\ProductTabs::addProductSpecificationsTab()
S
57 7 14
Amiut\ProductSpecs\Repository\AttributesRepository::findByGroupSorted()
S
56 6 16
Amiut\ProductSpecs\Repository\AttributesRepository::prepareArguments()
S
57 5 16
Amiut\ProductSpecs\Shortcode\SpecificationsTable::render()
S
58 5 15
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::attributesByGroup()
S
58 5 14
Amiut\ProductSpecs\EntityUpdater\AttributeGroupController::processEdit()
S
57 5 14
Amiut\ProductSpecs\EntityUpdater\AttributeController::processEdit()
S
53 4 19
Amiut\ProductSpecs\EntityUpdater\AttributeController::__invoke()
S
56 4 17
Amiut\ProductSpecs\EntityUpdater\AttributeGroupController::__invoke()
S
56 4 17
Amiut\ProductSpecs\Metabox\Metaboxes::isValid()
S
58 4 14
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::prepareSpecificationsTable()
S
58 4 14
Amiut\ProductSpecs\Repository\AttributeGroupsRepository::prepareArguments()
S
59 4 13
Amiut\ProductSpecs\EntityUpdater\AttributeController::processAdd()
S
54 3 18
Amiut\ProductSpecs\Template\Template::render()
S
59 3 16
Amiut\ProductSpecs\EntityUpdater\AttributeController::processDelete()
S
56 3 15
Amiut\ProductSpecs\EntityUpdater\AttributeController::defaultValue()
S
64 4 9
Amiut\ProductSpecs\AttributesListUi\AttributeListPage::collectionArguments()
S
63 4 9
Amiut\ProductSpecs\Metabox\Metaboxes::saveMetabox()
S
65 4 9
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::action()
S
59 3 14
Amiut\ProductSpecs\ProductSpecifications\AjaxTablesHandler::loadTable()
S
59 3 13
Amiut\ProductSpecs\EntityUpdaterUi\EditFormUi::render()
S
60 3 13
Amiut\ProductSpecs\EntityUpdater\AttributeSyncHandler::whenDeleted()
S
60 3 12
Amiut\ProductSpecs\Repository\AttributeFieldRepository::findAttributesByGroupId()
S
62 3 12
Amiut\ProductSpecs\EntityUpdater\AttributeGroupController::processDelete()
S
59 3 12
Amiut\ProductSpecs\Repository\EntityCollectionFactory::countWpTerms()
S
63 3 11
Amiut\ProductSpecs\Repository\AttributeFieldRepository::groupTerms()
S
61 3 11
Amiut\ProductSpecs\EntityUpdater\AttributeGroupController::processAdd()
S
60 3 11
setupAutoLoader()
S
67 3 8
Amiut\ProductSpecs\Repository\EntityCollectionFactory::termsCollection()
S
57 2 15
Amiut\ProductSpecs\Shortcode\SpecificationsTable::specificationsTableWithNonEmptyAttributes()
S
69 3 6
Amiut\ProductSpecs\Template\Context::resolveTemplatePath()
S
62 3 10
Amiut\ProductSpecs\Template\Context::addDirectory()
S
63 3 10
Amiut\ProductSpecs\AttributeGroupsListUi\AttributeGroupsListPage::collectionArguments()
S
69 3 5
Amiut\ProductSpecs\ImportExport\ExportDataAjaxHandler::__invoke()
S
57 2 15
Amiut\ProductSpecs\Admin\AdminPageTopMenuModifier::modify()
S
65 3 9
Amiut\ProductSpecs\Integration\WooCommerce\Assets::load()
S
64 3 9
Amiut\ProductSpecs\Metabox\Metaboxes::save()
S
67 3 8
Amiut\ProductSpecs\Metabox\Metaboxes::setup()
S
67 3 8
Amiut\ProductSpecs\EntityUpdater\AttributeController::formData()
S
59 2 11
Amiut\ProductSpecs\Content\PostType\SpecificationsTable::args()
S
57 1 17
Amiut\ProductSpecs\EntityUpdater\AttributeController::sanitizeAction()
S
77 2 3
Amiut\ProductSpecs\EntityUpdater\AttributeGroupArrangementUpdater::__invoke()
S
62 2 9
Amiut\ProductSpecs\Repository\SpecificationsTableRepository::findByProductId()
S
74 2 4
Amiut\ProductSpecs\Template\Context::__construct()
S
74 2 5
Amiut\ProductSpecs\Repository\SpecificationsTableRepository::productHasSpecsTable()
S
71 2 5
Amiut\ProductSpecs\EntityUpdater\AttributeGroupController::formData()
S
65 2 7
Amiut\ProductSpecs\Settings\SettingsRegistrar::register()
S
65 2 7
Amiut\ProductSpecs\EntityUpdater\AttributeGroupController::sanitizeAction()
S
77 2 3
Amiut\ProductSpecs\EntityUpdater\AttributeSyncHandler::whenAdded()
S
64 2 9
Amiut\ProductSpecs\SpecificationsTable\SpecificationsTableMetabox::selectedGroups()
S
63 2 10
Amiut\ProductSpecs\EntityUpdaterUi\GroupReArrangeFormUi::render()
S
64 2 9
Amiut\ProductSpecs\App::instance()
S
70 2 6
Amiut\ProductSpecs\Attribute\AttributeFieldSelect::isCustomValue()
S
77 2 3
Amiut\ProductSpecs\Integration\WooCommerce\WooCommerceNotInstalledNoticeHandler::__invoke()
S
72 2 6
Amiut\ProductSpecs\Metabox\Metaboxes::add()
S
74 2 5
bootstrap()
S
61 2 10
dwspecs_get_attributes_by_group()
S
69 2 6
Amiut\ProductSpecs\Repository\AttributeFieldRepository::findGroupedCollection()
S
64 2 9
Amiut\ProductSpecs\App::define()
S
75 2 5
Amiut\ProductSpecs\Repository\AttributesRepository::findByGroup()
S
66 2 7
dwspecs_spec_group_has_duplicates()
S
67 2 7
Amiut\ProductSpecs\EntityUpdater\AttributeController::updateTermMetas()
S
67 2 6
Amiut\ProductSpecs\Content\Module::run()
S
61 1 11
Amiut\ProductSpecs\Attribute\AttributeFieldGroup::__construct()
S
71 1 6
Amiut\ProductSpecs\Attribute\AttributeFieldGroup::id()
S
82 1 3
Amiut\ProductSpecs\Content\PostType\SpecificationsTable::labels()
S
71 1 3
Amiut\ProductSpecs\Content\Taxonomy\Attribute::key()
S
81 1 3
Amiut\ProductSpecs\Content\Taxonomy\Attribute::args()
S
75 1 3
Amiut\ProductSpecs\Content\Taxonomy\Attribute::labels()
S
73 1 3
Amiut\ProductSpecs\Content\Taxonomy\AttributeGroup::key()
S
81 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldGroup::slug()
S
82 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldGroup::attributes()
S
82 1 3
Amiut\ProductSpecs\Template\Context::normalizePath()
S
79 1 3
Amiut\ProductSpecs\SpecificationsTable\SpecificationsTableMetabox::context()
S
81 1 3
Amiut\ProductSpecs\EntityUpdaterUi\Module::services()
S
74 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldTrueFalse::__construct()
S
67 1 8
Amiut\ProductSpecs\AttributeGroupsListUi\AttributeGroupsListPage::render()
S
77 1 3
Amiut\ProductSpecs\Template\PhpTemplateRenderer::render()
S
70 1 5
Amiut\ProductSpecs\SpecificationsTable\SpecificationsTableMetabox::render()
S
76 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldTrueFalse::description()
S
82 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldSelect::name()
S
82 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldTrueFalse::id()
S
82 1 3
Amiut\ProductSpecs\App::defineConstants()
S
78 1 3
Amiut\ProductSpecs\SpecificationsTable\SpecificationsTableMetabox::enabled()
S
79 1 3
Amiut\ProductSpecs\Shortcode\Module::services()
S
75 1 3
Amiut\ProductSpecs\Repository\EntityCollection::getIterator()
S
80 1 3
Amiut\ProductSpecs\Repository\EntityCollection::empty()
S
78 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldTrueFalse::value()
S
82 1 3
Amiut\ProductSpecs\Admin\Module::run()
S
65 1 8
Amiut\ProductSpecs\Attribute\AttributeFieldTrueFalse::templatePath()
S
82 1 3
Amiut\ProductSpecs\Settings\Module::registerAdminMenuPage()
S
75 1 3
Amiut\ProductSpecs\EntityUpdater\InvalidEntityPropertyException::where()
S
82 1 3
Amiut\ProductSpecs\EntityUpdater\Module::services()
S
74 1 3
Amiut\ProductSpecs\EntityUpdater\Module::run()
S
63 1 9
Amiut\ProductSpecs\EntityUpdaterUi\EditFormUi::__construct()
S
81 1 3
Amiut\ProductSpecs\Admin\Module::registerMenuPages()
S
70 1 5
Amiut\ProductSpecs\EntityUpdaterUi\GroupReArrangeFormUi::__construct()
S
77 1 4
Amiut\ProductSpecs\SpecificationsTable\SpecificationsTableMetabox::id()
S
82 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldSelect::description()
S
82 1 3
Amiut\ProductSpecs\EntityUpdaterUi\Module::run()
S
71 1 5
Amiut\ProductSpecs\AttributeGroupsListUi\AttributeGroupsListPage::searchKeyword()
S
78 1 3
Amiut\ProductSpecs\Template\Template::name()
S
82 1 3
Amiut\ProductSpecs\AttributeGroupsListUi\Module::services()
S
75 1 3
Amiut\ProductSpecs\AttributeGroupsListUi\Module::run()
S
71 1 6
Amiut\ProductSpecs\Attribute\AttributeFieldSelect::templatePath()
S
82 1 3
Amiut\ProductSpecs\ImportExport\ImportExportPage::__construct()
S
81 1 3
Amiut\ProductSpecs\ImportExport\ImportExportPage::render()
S
69 1 6
Amiut\ProductSpecs\ImportExport\Module::services()
S
74 1 3
Amiut\ProductSpecs\ImportExport\Module::run()
S
66 1 8
Amiut\ProductSpecs\ImportExport\Module::registerAdminMenuPage()
S
75 1 3
Amiut\ProductSpecs\Integration\Module::services()
S
75 1 3
Amiut\ProductSpecs\Integration\Module::run()
S
69 1 6
Amiut\ProductSpecs\Integration\WooCommerce\Assets::__construct()
S
81 1 3
Amiut\ProductSpecs\AttributesListUi\AttributeListPage::searchKeyword()
S
78 1 3
Amiut\ProductSpecs\Integration\WooCommerce\ProductTabs::__construct()
S
81 1 3
Amiut\ProductSpecs\AttributesListUi\AttributeListPage::groupId()
S
78 1 3
Amiut\ProductSpecs\Integration\WooCommerce\ProductTabs::displayTable()
S
80 1 3
Amiut\ProductSpecs\AttributesListUi\Module::services()
S
75 1 3
Amiut\ProductSpecs\Integration\WooCommerce\WooCommerceNotInstalledNoticeHandler::displayNotice()
S
69 1 7
Amiut\ProductSpecs\Metabox\Metaboxes::__invoke()
S
80 1 3
Amiut\ProductSpecs\AttributesListUi\Module::run()
S
71 1 6
Amiut\ProductSpecs\AttributesListUi\Module::registerAdminMenuPage()
S
75 1 3
Amiut\ProductSpecs\Template\PhpTemplateRenderer::__construct()
S
81 1 3
Amiut\ProductSpecs\Content\Module::services()
S
74 1 3
Amiut\ProductSpecs\Metabox\Metaboxes::registerMetabox()
S
69 1 6
Amiut\ProductSpecs\Metabox\Metaboxes::nonceAction()
S
78 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldText::description()
S
82 1 3
Amiut\ProductSpecs\Metabox\Module::services()
S
76 1 3
Amiut\ProductSpecs\Metabox\Module::run()
S
68 1 6
Amiut\ProductSpecs\ProductSpecifications\AjaxTablesHandler::__construct()
S
77 1 4
Amiut\ProductSpecs\Content\PostType\SpecificationsTable::key()
S
81 1 3
Amiut\ProductSpecs\ProductSpecifications\Module::services()
S
74 1 3
Amiut\ProductSpecs\ProductSpecifications\Module::run()
S
67 1 7
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::__construct()
S
77 1 4
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::enabled()
S
80 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldSelect::value()
S
82 1 3
Amiut\ProductSpecs\Repository\EntityCollection::count()
S
80 1 3
Amiut\ProductSpecs\Content\Taxonomy\AttributeGroup::args()
S
75 1 3
Amiut\ProductSpecs\Repository\EntityCollection::totalPages()
S
79 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldSelect::__construct()
S
65 1 9
Amiut\ProductSpecs\Repository\EntityCollection::total()
S
82 1 3
Amiut\ProductSpecs\Repository\AttributesRepository::__construct()
S
81 1 3
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::id()
S
82 1 3
Amiut\ProductSpecs\AttributesListUi\AttributeListPage::__construct()
S
77 1 4
Amiut\ProductSpecs\Repository\EntityCollection::hasNextPage()
S
80 1 3
Amiut\ProductSpecs\SpecificationsTable\Module::run()
S
70 1 6
Amiut\ProductSpecs\AttributesListUi\AttributeListPage::render()
S
73 1 4
Amiut\ProductSpecs\Shortcode\Module::run()
S
67 1 7
Amiut\ProductSpecs\Repository\AttributeGroupsRepository::findCollection()
S
80 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldSelect::default()
S
82 1 3
Amiut\ProductSpecs\SpecificationsTable\SpecificationsTableMetabox::priority()
S
81 1 3
Amiut\ProductSpecs\Settings\Module::services()
S
75 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldTrueFalse::name()
S
82 1 3
Amiut\ProductSpecs\Repository\EntityCollection::entities()
S
82 1 3
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::context()
S
81 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldTrueFalse::slug()
S
82 1 3
Amiut\ProductSpecs\Repository\EntityCollection::__construct()
S
71 1 6
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::priority()
S
81 1 3
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::title()
S
79 1 3
Amiut\ProductSpecs\SpecificationsTable\SpecificationsTableMetabox::__construct()
S
81 1 3
Amiut\ProductSpecs\SpecificationsTable\SpecificationsTableMetabox::title()
S
79 1 3
Amiut\ProductSpecs\Admin\Assets::assetsDirectory()
S
79 1 3
Amiut\ProductSpecs\Shortcode\SpecificationsTable::__construct()
S
77 1 4
Amiut\ProductSpecs\Attribute\AttributeFieldText::__construct()
S
67 1 8
Amiut\ProductSpecs\Template\Module::services()
S
75 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldText::name()
S
82 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldSelect::options()
S
82 1 3
Amiut\ProductSpecs\Content\Taxonomy\AttributeGroup::labels()
S
73 1 3
Amiut\ProductSpecs\App::__construct()
S
78 1 4
Amiut\ProductSpecs\Attribute\AttributeFieldTrueFalse::default()
S
82 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldTextArea::templatePath()
S
82 1 3
Amiut\ProductSpecs\Attribute\Module::services()
S
76 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldGroup::name()
S
82 1 3
Amiut\ProductSpecs\SpecificationsTable\SpecificationsTableMetabox::action()
S
73 1 4
Amiut\ProductSpecs\Repository\EntityCollection::perPage()
S
82 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldSelect::slug()
S
82 1 3
Amiut\ProductSpecs\AttributeGroupsListUi\Module::registerAdminMenuPage()
S
75 1 3
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::tables()
S
77 1 3
Amiut\ProductSpecs\ProductSpecifications\ProductSpecificationsMetabox::render()
S
72 1 4
Amiut\ProductSpecs\SpecificationsTable\SpecificationsTableMetabox::groups()
S
77 1 3
Amiut\ProductSpecs\SpecificationsTable\Module::services()
S
76 1 3
Amiut\ProductSpecs\Admin\Module::services()
S
75 1 3
Amiut\ProductSpecs\Settings\Module::run()
S
67 1 7
Amiut\ProductSpecs\Template\Template::__construct()
S
77 1 4
Amiut\ProductSpecs\AttributeGroupsListUi\AttributeGroupsListPage::__construct()
S
77 1 4
Amiut\ProductSpecs\Attribute\AttributeFieldText::templatePath()
S
82 1 3
Amiut\ProductSpecs\Repository\AttributeFieldRepository::__construct()
S
77 1 4
Amiut\ProductSpecs\Repository\EntityCollection::currentPage()
S
82 1 3
Amiut\ProductSpecs\Repository\AttributeGroupsRepository::__construct()
S
81 1 3
Amiut\ProductSpecs\Repository\AttributesRepository::findCollection()
S
80 1 3
Amiut\ProductSpecs\Settings\SettingsPage::__construct()
S
81 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldText::id()
S
82 1 3
handleFailure()
S
69 1 6
Amiut\ProductSpecs\EntityUpdater\InvalidEntityPropertyException::__construct()
S
76 1 4
Amiut\ProductSpecs\Settings\SettingsPage::render()
S
80 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldText::slug()
S
82 1 3
Amiut\ProductSpecs\Admin\Assets::__construct()
S
81 1 3
Amiut\ProductSpecs\Repository\Module::services()
S
73 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldSelect::id()
S
82 1 3
Amiut\ProductSpecs\App::includes()
S
80 1 3
Amiut\ProductSpecs\ImportExport\ExportDataAjaxHandler::fileName()
S
77 1 3
Amiut\ProductSpecs\Repository\EntityCollection::hasPreviousPage()
S
80 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldText::value()
S
82 1 3
Amiut\ProductSpecs\Attribute\AttributeFieldText::default()
S
82 1 3
Amiut\ProductSpecs\Admin\Assets::load()
S
61 1 10