Repository Analysis

pterodactyl/panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.

4.2 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pterodactyl/panel, a PHP project with 9,139 GitHub stars. SynthScan v2.0 examined 76,552 lines of code across 1134 source files, recording 321 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 4.2 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.2
Adjusted Score
4.2
Raw Score
100%
Time Factor
2026-08-12
Last Push
9.1K
Stars
PHP
Language
76.6K
Lines of Code
1.1K
Files
321
Pattern Hits
2026-08-13
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 1LOW 320

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 321 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers314 hits · 316 pts
SeverityFileLineSnippetContext
LOWapp/Contracts/Repository/SubuserRepositoryInterface.php12 public function loadServerAndUserRelations(Subuser $subuser, bool $refresh = false): Subuser;CODE
LOWapp/Contracts/Repository/SubuserRepositoryInterface.php24 public function getWithPermissionsUsingUserAndServer(int $user, int $server): Subuser;CODE
LOWapp/Contracts/Repository/NodeRepositoryInterface.php26 public function loadLocationAndServerCount(Node $node, bool $refresh = false): Node;CODE
LOWapp/Contracts/Repository/NodeRepositoryInterface.php37 public function getNodesForServerCreation(): Collection;CODE
LOW…Contracts/Repository/AllocationRepositoryInterface.php13 public function getUnassignedAllocationIds(int $node): array;CODE
LOWapp/Repositories/Eloquent/AllocationRepository.php23 public function getUnassignedAllocationIds(int $node): arrayCODE
LOWapp/Repositories/Eloquent/AllocationRepository.php41 protected function getDiscardableDedicatedAllocations(array $nodes = []): arrayCODE
LOWapp/Repositories/Eloquent/NodeRepository.php78 public function loadLocationAndServerCount(Node $node, bool $refresh = false): NodeCODE
LOWapp/Repositories/Eloquent/NodeRepository.php117 public function getNodesForServerCreation(): CollectionCODE
LOWapp/Repositories/Eloquent/BackupRepository.php21 public function getBackupsGeneratedDuringTimespan(int $server, int $seconds = 600): array|CollectionCODE
LOWapp/Repositories/Eloquent/SubuserRepository.php22 public function loadServerAndUserRelations(Subuser $subuser, bool $refresh = false): SubuserCODE
LOWapp/Repositories/Eloquent/SubuserRepository.php56 public function getWithPermissionsUsingUserAndServer(int $user, int $server): SubuserCODE
LOWapp/Models/User.php211 public function sendPasswordResetNotification($token)CODE
LOWapp/Models/Egg.php159 public function getCopyScriptInstallAttribute(): ?stringCODE
LOWapp/Models/Egg.php172 public function getCopyScriptEntryAttribute(): stringCODE
LOWapp/Models/Egg.php185 public function getCopyScriptContainerAttribute(): stringCODE
LOWapp/Models/Egg.php197 public function getInheritConfigFilesAttribute(): ?stringCODE
LOWapp/Models/Egg.php209 public function getInheritConfigStartupAttribute(): ?stringCODE
LOWapp/Models/Egg.php221 public function getInheritConfigLogsAttribute(): ?stringCODE
LOWapp/Models/Egg.php233 public function getInheritConfigStopAttribute(): ?stringCODE
LOWapp/Models/Egg.php246 public function getInheritFeaturesAttribute(): ?arrayCODE
LOWapp/Models/Egg.php259 public function getInheritFileDenylistAttribute(): ?arrayCODE
LOWapp/Models/UserSSHKey.php76 public static function isSupportedPublicKeyMaterial(string $value): boolCODE
LOWapp/Models/Traits/HasRealtimeIdentifier.php58 protected static function bootHasRealtimeIdentifier(): voidCODE
LOWapp/Exceptions/Handler.php91 private function generateCleanedExceptionStack(\Throwable $exception): stringCODE
LOW…equests/Api/Client/Servers/Subusers/SubuserRequest.php52 protected function validatePermissionsCanBeAssigned(array $permissions)CODE
LOWapp/Http/Controllers/Auth/ForgotPasswordController.php19 protected function sendResetLinkFailedResponse(Request $request, $response): JsonResponseCODE
LOW…Controllers/Admin/Servers/ServerTransferController.php99 private function assignAllocationsToServer(Server $server, int $node_id, int $allocation_id, array $additional_allocCODE
LOWapp/Http/Controllers/Api/Client/ClientApiController.php14 protected function getIncludesForTransformer(BaseClientTransformer $transformer, array $merge = []): arrayCODE
LOWapp/Helpers/Utilities.php16 public static function randomStringWithSpecialCharacters(int $length = 16): stringCODE
LOWapp/Services/Databases/DatabaseManagementService.php47 public static function generateUniqueDatabaseName(string $name, int $serverId): stringCODE
LOWapp/Services/Eggs/EggConfigurationService.php39 protected function convertStartupToNewFormat(array $startup): arrayCODE
LOWapp/Services/Servers/StartupModificationService.php68 protected function updateAdministrativeSettings(array $data, Server &$server): voidCODE
LOW…/Console/Commands/Environment/EmailSettingsCommand.php110 private function setupMailgunDriverVariables()CODE
LOW…/Console/Commands/Environment/EmailSettingsCommand.php131 private function setupMandrillDriverVariables()CODE
LOW…/Console/Commands/Environment/EmailSettingsCommand.php142 private function setupPostmarkDriverVariables()CODE
LOW…Unit/Extensions/Laravel/Sanctum/NewAccessTokenTest.php17 public function testAccessTokenWrapperSupportsSanctumDtoContract()CODE
LOWtests/Unit/Http/Middleware/AdminAuthenticateTest.php14 public function testAdminsAreAuthenticated()CODE
LOWtests/Unit/Http/Middleware/AdminAuthenticateTest.php26 public function testExceptionIsThrownIfUserDoesNotExist()CODE
LOWtests/Unit/Http/Middleware/AdminAuthenticateTest.php38 public function testExceptionIsThrownIfUserIsNotAnAdmin()CODE
LOW…sts/Unit/Http/Middleware/MaintenanceMiddlewareTest.php44 public function testHandleInMaintenanceMode()CODE
LOW…s/Unit/Http/Middleware/RedirectIfAuthenticatedTest.php28 public function testAuthenticatedUserIsRedirected()CODE
LOW…s/Unit/Http/Middleware/RedirectIfAuthenticatedTest.php41 public function testNonAuthenticatedUserIsNotRedirected()CODE
LOWtests/Unit/Http/Middleware/LanguageMiddlewareTest.php28 public function testLanguageIsSetForGuest()CODE
LOWtests/Unit/Http/Middleware/LanguageMiddlewareTest.php39 public function testLanguageIsSetWithAuthenticatedUser()CODE
LOW…/Http/Middleware/Api/Daemon/DaemonAuthenticateTest.php38 public function testResponseShouldContinueIfRouteIsExempted()CODE
LOW…/Http/Middleware/Api/Daemon/DaemonAuthenticateTest.php49 public function testResponseShouldFailIfNoTokenIsProvided()CODE
LOW…/Http/Middleware/Api/Daemon/DaemonAuthenticateTest.php69 public function testResponseShouldFailIfTokenFormatIsIncorrect(string $token)CODE
LOW…/Http/Middleware/Api/Daemon/DaemonAuthenticateTest.php83 public function testResponseShouldFailIfTokenIsNotValid()CODE
LOW…/Http/Middleware/Api/Daemon/DaemonAuthenticateTest.php103 public function testResponseShouldFailIfNodeIsNotFound()CODE
LOW…/Http/Middleware/Api/Daemon/DaemonAuthenticateTest.php118 public function testSuccessfulMiddlewareProcess()CODE
LOWtests/Unit/Rules/UsernameTest.php39 public static function validUsernameDataProvider(): arrayCODE
LOWtests/Unit/Rules/UsernameTest.php55 public static function invalidUsernameDataProvider(): arrayCODE
LOWtests/Unit/Helpers/EnvironmentWriterTraitTest.php11 public function testVariableIsEscapedProperly($input, $expected)CODE
LOW…le/Commands/Environment/Addons/RunHooksCommandTest.php20 public function testHooksAreSkippedWhenDisabled(): voidCODE
LOW…le/Commands/Environment/Addons/RunHooksCommandTest.php31 public function testExecutableHooksRunForEvent(): voidCODE
LOW…le/Commands/Environment/Addons/RunHooksCommandTest.php44 public function testNonExecutableFilesAreIgnored(): voidCODE
LOW…le/Commands/Environment/Addons/RunHooksCommandTest.php57 public function testInvalidEventNameIsRejected(): voidCODE
LOW…le/Commands/Environment/Addons/RunHooksCommandTest.php69 public function testFailingHookDoesNotAbortRemainingHooks(): voidCODE
LOW…le/Commands/Environment/Addons/RunHooksCommandTest.php88 public function testDeclinedConfirmationSkipsHooks(): voidCODE
254 more matches not shown…
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocker-compose.example.yml28# ------------------------------------------------------------------------------------------COMMENT
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWpublic/themes/pterodactyl/js/plugins/minecraft/eula.js1// Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>COMMENT
LOWpublic/themes/pterodactyl/js/admin/new-server.js1// Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>COMMENT
LOWpublic/themes/pterodactyl/js/admin/functions.js1// Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>COMMENT
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…tabase/Seeders/eggs/minecraft/egg-forge-minecraft.json34 "script": "#!\/bin\/bash\r\n# Forge Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\CODE
LOWapp/Models/Server.php306 // Don't forget to join against the server ID as well since the way we're using this relationshipCOMMENT
Redundant / Tautological Comments1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…tabase/Seeders/eggs/minecraft/egg-forge-minecraft.json34 "script": "#!\/bin\/bash\r\n# Forge Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\CODE