Music streaming solution that works.
This report summarizes scanner evidence for koel/koel, a PHP project with 17,275 GitHub stars. SynthScan examined 176,378 lines of code across 2532 source files, recording 1232 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 7.4 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1196 finding(s).
Are imports declared and package/API names verified? 36 finding(s).
Are wrappers, guards, and repeated structures necessary? 1192 finding(s).
Which changes need focused human review? 1232 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1232 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/Builders/AlbumBuilder.php | 64 | public static function limitToAlbumsAccessibleByUser(Builder|QueryBuilder $query, User $user): void | CODE |
| LOW | app/Builders/ArtistBuilder.php | 49 | public function withAlbumCountIncludingAppearances(): self | CODE |
| LOW | app/Providers/AppServiceProvider.php | 129 | private static function enableOnDeleteCascadeForSqliteConnections(DatabaseManager $db): void | CODE |
| LOW | app/Providers/AppServiceProvider.php | 136 | private static function grantAllPermissionsToSuperAdminRole(): void | CODE |
| LOW | app/Enums/SongStorageType.php | 21 | public function supportsFolderStructureExtraction(): bool | CODE |
| LOW | app/Values/User/UserPreferences.php | 179 | private function requirePreferenceByProperty(string $property): Preference | CODE |
| LOW | app/Values/SmartPlaylist/SmartPlaylistQueryModifier.php | 105 | private static function generateEloquentParameters(string $column, Operator $operator, array $value): array|Closure | CODE |
| LOW | app/Repositories/SongRepository.php | 361 | public function getManyInCollaborativeContext(array $ids, ?User $scopedUser = null): Collection | CODE |
| LOW | app/Repositories/SettingRepository.php | 11 | public function getInstallWideAsKeyValueArray(): array | CODE |
| LOW | app/Repositories/PlayRepository.php | 65 | public function getMostListenedAlbumCovers(User $user, ?Carbon $since, array $artistIds): array | CODE |
| LOW | app/Repositories/PlayRepository.php | 140 | public function countSongsFirstPlayedSince(User $user, Carbon $since): int | CODE |
| LOW | app/Repositories/PlayRepository.php | 145 | public function countArtistsFirstPlayedSince(User $user, Carbon $since): int | CODE |
| LOW | app/Repositories/AlbumRepository.php | 27 | public function lazyGetWithIncompleteMbids(): LazyCollection | CODE |
| LOW | app/Repositories/UserRepository.php | 18 | public function getOrCreateFirstAdmin(): User | CODE |
| LOW | app/Repositories/UserRepository.php | 44 | public function findOneBySubsonicApiKeyHash(#[SensitiveParameter] string $hash): ?User | CODE |
| LOW | app/Models/User.php | 169 | private static function whereDemoAccountIsInactive(Builder $query): void | CODE |
| LOW | app/Models/Album.php | 98 | public static function getOrCreate(Artist $artist, ?string $name = null): static | CODE |
| LOW | app/Models/Artist.php | 120 | public static function getOrCreate(User $user, ?string $name = null): self | CODE |
| LOW | …ttp/Middleware/Concerns/ChecksControllerAttributes.php | 13 | private static function getAttributeUsageFromRequest(Request $request, string $attributeClass): ?array | CODE |
| LOW | app/Http/Resources/EmbedResource.php | 54 | private function transformEmbeddableToResource(): JsonResource | CODE |
| LOW | app/Ai/Services/AiProviderRegistrar.php | 26 | public function registerOrganizationProvider(Organization $organization, AiSettings $settings): string | CODE |
| LOW | app/Listeners/DeleteNonExistingRecordsPostScan.php | 69 | private function wouldDeleteEverythingOnAnEmptyScan(MediaScanCompleted $event, array $paths): bool | CODE |
| LOW | app/Helpers/Encoding/TagFixer.php | 53 | private static function recoverFromDoubleMojibake(string $value): string | CODE |
| LOW | app/Services/MediaBrowser.php | 66 | public function maybeCreateFolderStructureForSong(Song $song): void | CODE |
| LOW | app/Services/EmbedService.php | 16 | public function resolveEmbedForEmbeddable(Embeddable $embeddable, User $user): Embed | CODE |
| LOW | app/Services/PwaManifestService.php | 30 | public function removeUncustomizedLegacyFiles(): void | CODE |
| LOW | app/Services/PwaManifestService.php | 67 | private static function stillPointsAtPlaceholderHost(string $path): bool | CODE |
| LOW | app/Services/AlbumService.php | 65 | public function trySetAlbumCoverFromDirectory(Album $album, string $directory): void | CODE |
| LOW | app/Services/AlbumService.php | 100 | public function getOrCreateAlbumThumbnail(Album $album): ?string | CODE |
| LOW | app/Services/AlbumService.php | 100 | public function getOrCreateAlbumThumbnail(Album $album): ?string | CODE |
| LOW | app/Services/RadioService.php | 58 | public function deleteRadioStationsByUser(User $user): void | CODE |
| LOW | app/Services/DownloadService.php | 24 | public function getLocalPathOrDownloadableUrl(Song $song): ?string | CODE |
| LOW | app/Services/SongService.php | 229 | public function createOrUpdateSongFromScan( | CODE |
| LOW | app/Services/SongService.php | 323 | private static function getMbidKeysOfIgnoredNames(array $ignores): array | CODE |
| LOW | app/Services/SongService.php | 335 | private static function getCurrentArtistAndAlbumNames(Song $song): array | CODE |
| LOW | app/Services/UserService.php | 48 | public function createOrUpdateUserFromSso(SsoUser $ssoUser): User | CODE |
| LOW | app/Services/Playlist/PlaylistFolderService.php | 124 | private static function movingFolderWouldCreateCycle( | CODE |
| LOW | app/Services/Playlist/PlaylistFolderService.php | 142 | private static function ensureParentBelongsToUser(?PlaylistFolder $parent, User $user): void | CODE |
| LOW | app/Services/Playlist/PlaylistService.php | 152 | public function removePlayablesFromPlaylist(Playlist $playlist, Collection|Playable|array $playables): void | CODE |
| LOW | app/Services/Playlist/PlaylistService.php | 157 | public function makePlaylistContentPublic(Playlist $playlist): void | CODE |
| LOW | app/Services/License/LicenseService.php | 120 | private function updateOrCreateLicenseFromApiResponseBody(object $body): License | CODE |
| LOW | app/Services/Auth/AuthenticationService.php | 52 | public function generateTwoFactorLoginToken(User $user): string | CODE |
| LOW | app/Services/Auth/AuthenticationService.php | 60 | public function loginViaTwoFactorChallenge( | CODE |
| LOW | app/Services/Auth/AuthenticationService.php | 79 | public function logUserInOrStartTwoFactorChallenge(User $user): array | CODE |
| LOW | app/Services/Auth/AuthenticationService.php | 103 | public function tryResetPasswordUsingBroker( | CODE |
| LOW | app/Services/Auth/TokenManager.php | 49 | public function deleteTokenByPlainTextToken(#[SensitiveParameter] string $plainTextToken): void | CODE |
| LOW | app/Services/Auth/TokenManager.php | 54 | public function getUserFromPlainTextToken(#[SensitiveParameter] string $plainTextToken): ?User | CODE |
| LOW | app/Services/Auth/PasskeyService.php | 86 | public function generateConfirmationOptions(User $user): array | CODE |
| LOW | app/Services/Auth/PasskeyService.php | 99 | public function confirmIdentityWithPasskey(User $user, PublicKeyCredential $credential): void | CODE |
| LOW | app/Services/Auth/PasskeyService.php | 117 | public function confirmIdentityWithPassword( | CODE |
| LOW | app/Services/Auth/PasskeyService.php | 141 | public function generateRegistrationOptions(User $user): array | CODE |
| LOW | app/Services/Auth/ProxyAuthService.php | 30 | public function tryGetProxyAuthenticatedUserFromRequest(Request $request): ?User | CODE |
| LOW | app/Services/Transcoding/Transcoder.php | 62 | private static function resolveAacEncoderArguments(string $ffmpegPath, int $bitRate, bool $aacFast): array | CODE |
| LOW | app/Services/Transcoding/LocalTranscodingStrategy.php | 12 | protected function findOrCreateTranscodeLocation(Song $song, int $bitRate, ?string $localSourcePath): string | CODE |
| LOW | …Services/Transcoding/RemoteDiskTranscodingStrategy.php | 24 | protected function findOrCreateTranscodeLocation(Song $song, int $bitRate, ?string $localSourcePath): string | CODE |
| LOW | app/Services/Transcoding/TranscodingStrategy.php | 22 | protected function findTranscodeBySongAndBitRate(Song $song, int $bitRate): ?Transcode | CODE |
| LOW | app/Services/Transcoding/TranscodingStrategy.php | 80 | abstract protected function findOrCreateTranscodeLocation( | CODE |
| LOW | app/Services/Transcoding/CloudTranscodingStrategy.php | 15 | protected function findOrCreateTranscodeLocation(Song $song, int $bitRate, ?string $localSourcePath): string | CODE |
| LOW | app/Services/Integrations/MusicBrainzService.php | 128 | private static function rescueUnlessMusicBrainzIsBusy(Closure $callback): mixed | CODE |
| LOW | app/Services/Integrations/MusicBrainzRateLimiter.php | 91 | private function resolveDefaultWaitSeconds(): float | CODE |
| 1132 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/assets/js/composables/useKoelPlus.spec.ts | 10 | customer_name: 'John Doe', | CODE |
| LOW | resources/assets/js/stores/userStore.spec.ts | 38 | name: 'Jane Doe', | CODE |
| LOW | resources/assets/js/stores/userStore.spec.ts | 58 | name: 'Jane Doe', | CODE |
| LOW | …es/assets/js/components/auth/ResetPasswordForm.spec.ts | 19 | expect(resetMock).toHaveBeenCalledWith('foo@bar.com', 'new-password', 'my-token') | CODE |
| LOW | …es/assets/js/components/auth/ResetPasswordForm.spec.ts | 20 | expect(loginMock).toHaveBeenCalledWith('foo@bar.com', 'new-password') | CODE |
| LOW⚡ | …s/assets/js/components/auth/ForgotPasswordForm.spec.ts | 14 | await h.type(screen.getByPlaceholderText('Your email address'), 'foo@bar.com') | CODE |
| LOW⚡ | …s/assets/js/components/auth/ForgotPasswordForm.spec.ts | 17 | expect(requestMock).toHaveBeenCalledWith('foo@bar.com') | CODE |
| LOW⚡ | …s/assets/js/components/auth/ForgotPasswordForm.spec.ts | 24 | await h.type(screen.getByPlaceholderText('Your email address'), 'foo@bar.com') | CODE |
| LOW | …ents/profile-preferences/EditableProfileAvatar.spec.ts | 13 | name: 'John Doe', | CODE |
| LOW | …rces/assets/js/components/utils/AppInitializer.spec.ts | 41 | currentUser: ref({ id: '1', email: 'test@test.com' }), | CODE |
| LOW⚡ | resources/assets/js/components/user/AddUserForm.spec.ts | 24 | name: 'John Doe', | CODE |
| LOW⚡ | resources/assets/js/components/user/AddUserForm.spec.ts | 33 | await h.type(screen.getByRole('textbox', { name: 'name' }), 'John Doe') | CODE |
| LOW⚡ | resources/assets/js/components/user/AddUserForm.spec.ts | 41 | name: 'John Doe', | CODE |
| LOW⚡ | resources/assets/js/components/user/AddUserForm.spec.ts | 47 | expect(toasterMock).toHaveBeenCalledWith('New user "John Doe" created.') | CODE |
| LOW | …sources/assets/js/components/user/EditUserForm.spec.ts | 37 | await h.type(screen.getByRole('textbox', { name: 'name' }), 'Jane Doe') | CODE |
| LOW | …sources/assets/js/components/user/EditUserForm.spec.ts | 44 | name: 'Jane Doe', | CODE |
| LOW | resources/assets/js/components/ai/AiChatMessage.spec.ts | 14 | const user = { name: 'John Doe', avatar: 'https://example.com/avatar.jpg' } | CODE |
| LOW | resources/assets/js/__tests__/TestHarness.ts | 148 | customer_name: 'John Doe', | CODE |
| LOW⚡ | resources/assets/js/services/authService.spec.ts | 174 | name: 'John Doe', | CODE |
| LOW⚡ | resources/assets/js/services/authService.spec.ts | 179 | name: 'Jane Doe', | CODE |
| LOW⚡ | resources/assets/js/services/authService.spec.ts | 186 | name: 'Jane Doe', | CODE |
| LOW⚡ | resources/assets/js/services/authService.spec.ts | 193 | expect(userStore.current.name).toBe('Jane Doe') | CODE |
| LOW⚡ | tests/Unit/Helpers/ImageStorageUrlTest.php | 33 | 'key' => 'dummy-key', | CODE |
| LOW⚡ | tests/Unit/Services/Auth/AuthenticationServiceTest.php | 56 | ->with(['email' => 'foo@bar.com']) | CODE |
| LOW⚡ | tests/Unit/Services/Auth/AuthenticationServiceTest.php | 59 | $this->assertTrue($this->service->trySendResetPasswordLink('foo@bar.com')); | CODE |
| LOW | …sts/Integration/Services/UserInvitationServiceTest.php | 34 | $emails = ['foo@bar.com', 'bar@baz.io']; | CODE |
| LOW⚡ | tests/Feature/ForgotPasswordTest.php | 25 | ->with('foo@bar.com') | CODE |
| LOW⚡ | tests/Feature/ForgotPasswordTest.php | 28 | $this->postJson('/api/forgot-password', ['email' => 'foo@bar.com'])->assertNoContent(); | CODE |
| LOW | tests/Feature/SongTest.php | 220 | 'lyrics' => 'Lorem ipsum dolor sic amet.', | CODE |
| LOW | tests/Feature/SongTest.php | 239 | 'lyrics' => 'Lorem ipsum dolor sic amet.', | CODE |
| LOW | tests/Feature/SongTest.php | 260 | 'lyrics' => 'Lorem ipsum dolor sic amet.', | CODE |
| LOW | tests/Feature/SongTest.php | 328 | 'lyrics' => 'Lorem ipsum dolor sic amet.', | CODE |
| LOW | tests/Feature/SongTest.php | 363 | 'lyrics' => 'Lorem ipsum dolor sic amet.', | CODE |
| LOW | tests/Feature/SongTest.php | 384 | 'lyrics' => 'Lorem ipsum dolor sic amet.', | CODE |
| LOW⚡ | tests/Feature/KoelPlus/UserTest.php | 19 | 'email' => 'foo@bar.com', | CODE |
| LOW⚡ | tests/Feature/KoelPlus/UserTest.php | 36 | 'email' => 'foo@bar.com', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …es/assets/js/visualizers/asteroid/shaders/blob.frag.ts | 71 | // http://the-witness.net/news/2012/02/seamless-cube-map-filtering/ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …es/assets/js/visualizers/asteroid/shaders/blob.vert.ts | 41 | #endif | COMMENT |
| LOW | resources/assets/js/stores/userStore.ts | 61 | // Didn't mean to make you cry | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/.vitepress/check-frontmatter.sh | 11 | # Check if file starts with --- (has frontmatter) and contains a description field | COMMENT |