/** * Execute the PerformanceCheck plugin */ protected function _execute() { $possiblePerformanceKillers = $this->_scanForPerformanceLeaks($this->_extensionPath); if (0 < sizeof($possiblePerformanceKillers)) { foreach ($possiblePerformanceKillers as $possiblePerformanceKiller) { Logger::setResultValue($this->_extensionPath, $this->_pluginName, $possiblePerformanceKiller, count($possiblePerformanceKillers)); IssueHandler::addIssue(new Issue(array("extension" => $this->_extensionPath, "checkname" => $this->_pluginName, "type" => 'performance_leak', "comment" => $possiblePerformanceKiller . ' (' . count($possiblePerformanceKillers) . 'times)', "failed" => true))); } } }