Code Analysis: WP OpenAPI 1.0.14

Function Rating Maintainability Complexity Lines of code
WPOpenAPI\Spec\Operation::toArray()
A
42 14 57
WPOpenAPI\Spec\Operation::generateParametersFromRouteArgs()
A
47 11 35
WPOpenAPI\CallbackFinder::find()
A
49 8 30
WPOpenAPI\SchemaGenerator::generate()
A
42 6 57
WPOpenAPI\Spec\Parameter::toArray()
S
52 6 25
WPOpenAPI\Spec\Path::generateOperationsFromRouteArgs()
S
51 5 27
WPOpenAPI::getNamespace()
S
61 6 11
WPOpenAPI\Spec\Info::toArray()
S
56 5 20
WPOpenAPI::enqueueScritps()
S
48 3 36
WPOpenAPI::addAdminMenu()
S
54 3 23
WPOpenAPI\Filters\AddCallbackInfoToDescription::addCallbackInfo()
S
55 3 19
WPOpenAPI\SettingsPage::initActions()
S
46 1 46
WPOpenAPI\Spec\License::toArray()
S
63 3 12
WPOpenAPI\Spec\Response::toArray()
S
63 3 11
WPOpenAPI::sendOpenAPISchema()
S
57 2 17
WPOpenAPI\CallbackFinder::loadComposerLoaders()
S
64 3 9
WPOpenAPI\CallbackFinder::findFilePath()
S
65 3 9
WPOpenAPI\Spec\Operation::addRequestSchemaProperties()
S
64 3 10
WPOpenAPI\Spec\Operation::getParameterByName()
S
67 3 8
WPOpenAPI\Spec\Path::replacePathVariable()
S
59 2 15
WPOpenAPI\CLI\ExportAsHTML::execute()
S
50 1 28
WPOpenAPI\SettingsPage::addDiscoveryOption()
S
60 2 13
WPOpenAPI\SettingsPage::addTryItOption()
S
60 2 13
WPOpenAPI\Spec\Parameter::__construct()
S
61 2 12
WPOpenAPI\Filters\AddCallbackInfoToDescription::__construct()
S
63 2 12
WPOpenAPI::getAssetInfo()
S
62 2 12
WPOpenAPI\Spec\Operation::__construct()
S
62 2 11
WPOpenAPI::registerRestAPIEndpoint()
S
59 1 16
WPOpenAPI\Callback::getCallableType()
S
71 2 6
WPOpenAPI\Spec\Operation::getResponse()
S
71 2 6
WPOpenAPI\Filters::getInstance()
S
71 2 6
WPOpenAPI\Spec\Path::__construct()
S
69 2 7
WPOpenAPI\Spec\Path::toArray()
S
69 2 7
WPOpenAPI\SchemaGenerator::generateInfo()
S
60 1 14
WPOpenAPI\CLI\ExportAsJSON::execute()
S
60 1 13
WPOpenAPI\Spec\Tag::toArray()
S
72 1 6
WPOpenAPI\Spec\Server::__construct()
S
81 1 3
WPOpenAPI\SettingsPage::__construct()
S
76 1 4
WPOpenAPI\SettingsPage::getOption()
S
74 1 4
WPOpenAPI\Spec\Path::getOriginalPath()
S
82 1 3
WPOpenAPI\Spec\Path::getOperations()
S
82 1 3
WPOpenAPI\View::render()
S
67 1 8
WPOpenAPI\View::__construct()
S
81 1 3
WPOpenAPI\Spec\ResponseContent::getMediaType()
S
82 1 3
WPOpenAPI\Spec\Tag::getDescription()
S
82 1 3
WPOpenAPI\Spec\Tag::setDescription()
S
81 1 3
WPOpenAPI\Filters::addPathsFilter()
S
78 1 3
WPOpenAPI\Spec\Contact::__construct()
S
74 1 5
WPOpenAPI\Filters::applyPathsFilters()
S
78 1 3
WPOpenAPI\Spec\Contact::setEmail()
S
81 1 3
WPOpenAPI\Spec\Contact::getName()
S
82 1 3
WPOpenAPI\Spec\Contact::setName()
S
81 1 3
WPOpenAPI\Spec\Contact::getUrl()
S
82 1 3
WPOpenAPI\Spec\Contact::setUrl()
S
81 1 3
WPOpenAPI\Spec\Contact::toArray()
S
69 1 7
WPOpenAPI\Spec\Info::__construct()
S
71 1 6
WPOpenAPI\Spec\Info::getContact()
S
82 1 3
WPOpenAPI\Spec\Info::setSummary()
S
81 1 3
WPOpenAPI\Spec\Info::getSummary()
S
82 1 3
WPOpenAPI\Spec\Info::setLicense()
S
81 1 3
WPOpenAPI\Spec\Info::getLicense()
S
82 1 3
WPOpenAPI\Spec\Info::setTermsOfService()
S
81 1 3
WPOpenAPI\Spec\Info::getTermsOfService()
S
82 1 3
WPOpenAPI\Filters::addSecurityFilter()
S
78 1 3
WPOpenAPI\Spec\License::__construct()
S
74 1 5
WPOpenAPI\Spec\License::setIdentifier()
S
81 1 3
WPOpenAPI\Spec\License::setUrl()
S
81 1 3
WPOpenAPI\Filters::addTagsFilter()
S
78 1 3
WPOpenAPI::pluginUrl()
S
79 1 3
WPOpenAPI\Spec\Operation::getMethod()
S
82 1 3
WPOpenAPI\Spec\Operation::addResponse()
S
79 1 3
WPOpenAPI\Spec\Parameter::addJsonSchemaDefinition()
S
71 1 6
WPOpenAPI\Spec\Operation::addParameter()
S
80 1 3
WPOpenAPI\Spec\Operation::addTag()
S
80 1 3
WPOpenAPI\Spec\Operation::setDescription()
S
81 1 3
WPOpenAPI::registerRoutes()
S
74 1 4
WPOpenAPI\Spec\Parameter::getName()
S
82 1 3
WPOpenAPI\Spec\Contact::getEmail()
S
82 1 3
WPOpenAPI\Filters::applyServersFilters()
S
78 1 3
WPOpenAPI\Spec\ResponseContent::__construct()
S
77 1 4
WPOpenAPI\Callback::__construct()
S
77 1 4
WPOpenAPI\Spec\Response::__construct()
S
77 1 4
WPOpenAPI\Filters::applyTagsFilters()
S
78 1 3
WPOpenAPI\Spec\Operation::setSummary()
S
81 1 3
WPOpenAPI\Filters::applySecurityFilters()
S
78 1 3
WPOpenAPI::pluginPath()
S
79 1 3
WPOpenAPI\Spec\Server::toArray()
S
74 1 5
WPOpenAPI\Filters::applyComponentsFilters()
S
78 1 3
WPOpenAPI\Spec\ResponseContent::getSchema()
S
82 1 3
WPOpenAPI\Spec\Path::getPath()
S
82 1 3
WPOpenAPI\Spec\Operation::addSecurity()
S
80 1 3
WPOpenAPI\Spec\Operation::setOperationId()
S
81 1 3
WPOpenAPI\Filters::addInfoFilter()
S
78 1 3
WPOpenAPI\Spec\Parameter::setDefault()
S
81 1 3
WPOpenAPI\Filters::addOperationsFilter()
S
78 1 3
WPOpenAPI\Spec\Operation::getDescription()
S
82 1 3
WPOpenAPI\Callback::getFilepath()
S
82 1 3
WPOpenAPI\Filters::applyInfoFilters()
S
78 1 3
WPOpenAPI\Spec\Response::addContent()
S
80 1 3
WPOpenAPI\Spec\Tag::__construct()
S
77 1 4
WPOpenAPI\Callback::getCallable()
S
82 1 3
WPOpenAPI\Filters::addServersFilter()
S
78 1 3
WPOpenAPI\SchemaGenerator::__construct()
S
74 1 5
WPOpenAPI\CallbackFinder::__construct()
S
77 1 4
WPOpenAPI\Spec\Response::getCode()
S
82 1 3
WPOpenAPI\Filters::addComponentsFilter()
S
78 1 3
WPOpenAPI\Filters::applyOperationsFilters()
S
78 1 3
WPOpenAPI\View::getFilename()
S
82 1 3