A web based audio/video streaming application and file manager allowing you to access your music & videos from anywhere, using almost any internet enabled device.
This report summarizes scanner evidence for ampache/ampache, a PHP project with 3,833 GitHub stars. SynthScan examined 564,171 lines of code across 3422 source files, recording 2845 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 5.5 (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? 2788 finding(s).
Are imports declared and package/API names verified? 25 finding(s).
Are wrappers, guards, and repeated structures necessary? 2796 finding(s).
Which changes need focused human review? 2845 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 2845 distinct pattern matches across 11 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 | resources/scripts/api-docs/generate_openapi_schemas.py | 116 | def build_collection_items_schema(collection: dict) -> dict: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 139 | def build_playlist_folder_items_schema(folder: dict) -> dict: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 177 | def build_quickconnect_status_schema(handshake: dict) -> dict: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 832 | def apply_property_descriptions(object_name: str, schema: dict) -> None: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1310 | def document_binary_responses(spec: dict) -> list[str]: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1411 | def apply_parameter_components(spec: dict) -> list[str]: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1539 | def apply_operation_descriptions(spec: dict) -> list[str]: | CODE |
| LOW | resources/scripts/api-docs/lint_openapi.py | 79 | def check_no_additional_false(spec: dict) -> list[str]: | CODE |
| LOW | resources/scripts/api-docs/lint_openapi.py | 109 | def check_shared_params_not_inline(spec: dict) -> list[str]: | CODE |
| LOW | resources/scripts/api-docs/lint_openapi.py | 128 | def check_no_identical_schemas(spec: dict) -> list[str]: | CODE |
| LOW | tests/PluginFactoryMockTrait.php | 44 | protected function buildWithMockedDependencies(string $className): object | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 44 | public function testCollectGarbageExecutesQuery(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 53 | public function testFindByIdReturnsFoundObject(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 83 | public function testFindByIdReturnsNullIfNothingWasFound(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 111 | public function testFindByObjectIdAndFieldAndTypeReturnsFoundObject(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 150 | public function testFindByObjectIdAndFieldAndTypeReturnsNullIfNothingWasFound(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 187 | public function testFindByObjectIdAndTypeReturnsFoundObject(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 241 | public function testPersistUpdatesExistingItem(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 288 | public function testPersistWritesNewItemAndReturnsId(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 335 | public function testPrototypeReturnsObject(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 51 | public function testCollectGarbageCollects(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 94 | public function testFindIdByFileReturnsTheEpisode(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 104 | public function testGetEpisodeCountReturnsValue(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 129 | public function testGetEpisodeEligibleForDeletionReturnsNothingIfDisabled(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 142 | public function testGetEpisodeEligibleForDeletionYieldsEpisodes(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 187 | public function testGetEpisodeEligibleForDownloadYieldsEpisodes(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 249 | public function testGetEpisodeEligibleForDownloadYieldsEpisodesWithoutLimit(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 310 | public function testGetEpisodesReturnsEpisodesWithoutStateFilterAndDisabledCatalogs(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 345 | public function testGetEpisodesReturnsEpisodesWithStateFilter(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 381 | public function testGetNewestIdsByCatalogAppliesTheCountAsALimit(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 400 | public function testGetNewestIdsByCatalogOmitsTheLimitForACountOfZero(): void | CODE |
| LOW⚡ | tests/Repository/PodcastEpisodeRepositoryTest.php | 428 | public function testSetPlayedFlagsTheEpisode(): void | CODE |
| LOW⚡ | tests/Repository/PodcastEpisodeRepositoryTest.php | 437 | public function testSetUpdateTimeStampsTheEpisode(): void | CODE |
| LOW⚡ | tests/Repository/PodcastEpisodeRepositoryTest.php | 446 | public function testUpdateAllCountsClearsEachTotalAgainstItsOwnCountType(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 467 | public function testUpdateAllCountsRunsTheSixEpisodeSweeps(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 486 | public function testUpdateDescriptionWritesTheDescription(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 495 | public function testUpdateFromTagsFallsBackToVbrForAnUnknownMode(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 533 | public function testUpdateWritesTheEditableProperties(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 47 | public function testDeleteByCatalogRemovesTheCatalogsPodcasts(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 76 | public function testFindAllByCatalogsBindsOnePlaceholderPerCatalog(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 108 | public function testFindAllByCatalogsWithoutCatalogsQueriesNothing(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 119 | public function testFindAllReturnsAllItems(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 148 | public function testFindByFeedUrlReturnsFoundPodcast(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 176 | public function testFindByFeedUrlReturnsNullIfNothingWasFound(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 195 | public function testFindByIdReturnsNullIfNotFound(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 215 | public function testFindByIdReturnsObject(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 236 | public function testGetIdsByCatalogReadsTheCatalogsPodcasts(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 348 | public function testPersistUpdatesItemIfNotNew(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 436 | public function testPrototypeReturnsNewObject(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 444 | public function testUpdateAllCountsRollsBothTotalsUpFromTheEpisodes(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 90 | public function testDeleteSubTypeRowNamesTheBackendsOwnTable(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 99 | public function testDeleteSubTypeRowReportsAFailure(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 108 | public function testDropSubTypeTableToleratesATableThatIsAlreadyGone(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 118 | public function testFindEnabledSeparatesADisabledCatalogFromAMissingOne(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 129 | public function testFindNameFallsBackToAnEmptyString(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 139 | public function testFindSubTypeIdReturnsNullWhenTheBackendsTableIsGone(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 149 | public function testFindTypeReturnsNullForAMissingCatalog(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 159 | public function testGetIdsAppliesNoWhereClauseWithoutNarrowing(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 304 | public function testReleaseActionLockCallsReleaseLockWithTheNamespacedName(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 313 | public function testReleaseProcessingLockCallsReleaseLockWithTheNamespacedName(): void | CODE |
| 2704 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 56 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 608 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 610 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 645 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 647 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 811 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 813 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 1232 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 1234 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 56 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 58 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 108 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 110 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 282 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 284 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 89 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 91 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | resources/scripts/api-docs/verify_openapi_shapes.py | 172 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | resources/scripts/api-docs/verify_openapi_shapes.py | 174 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 231 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 233 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 280 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 282 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 348 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 350 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/Repository/UserRepositoryTest.php | 334 | ->with('UPDATE `user` SET `email` = ? WHERE `id` = ?', ['some@example.org', 666]); | CODE |
| LOW⚡ | tests/Repository/UserRepositoryTest.php | 336 | self::assertTrue($this->subject->setField(666, UserFieldEnum::EMAIL, 'some@example.org')); | CODE |
| LOW⚡ | tests/Repository/Model/UserTest.php | 91 | User::create($username, 'Full Name', 'user@example.com', '', 'password', AccessLevelEnum::USER) | CODE |
| LOW⚡ | tests/Module/User/NewPasswordSenderTest.php | 48 | ->with('admin@example.com') | CODE |
| LOW⚡ | tests/Module/User/NewPasswordSenderTest.php | 54 | self::assertFalse($this->subject->send('admin@example.com', '127.0.0.1')); | CODE |
| LOW | tests/Fixtures/Api/subsonic/getUser.xml | 3 | <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downloa | CODE |
| LOW | tests/Fixtures/Api/subsonic/getUsers.json | 9 | "email": "admin@example.com", | CODE |
| LOW | tests/Fixtures/Api/subsonic/getUsers.xml | 4 | <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downl | CODE |
| LOW | tests/Fixtures/Api/subsonic/getUser.json | 7 | "email": "admin@example.com", | CODE |
| LOW | tests/Fixtures/Api/opensubsonic/getUser.xml | 3 | <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downloa | CODE |
| LOW | tests/Fixtures/Api/opensubsonic/getUsers.json | 12 | "email": "admin@example.com", | CODE |
| LOW | tests/Fixtures/Api/opensubsonic/getUsers.xml | 4 | <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downl | CODE |
| LOW | tests/Fixtures/Api/opensubsonic/getUser.json | 10 | "email": "admin@example.com", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locale/base/gather-messages.sh | 1 | #!/bin/bash | COMMENT |
| LOW | resources/scripts/tests/spec_refresh.php | 21 | * You should have received a copy of the GNU Affero General Public License | COMMENT |
| LOW | tests/Module/User/Tracking/UserTrackerTest.php | 61 | COMMENT | |
| LOW | docs/examples/inotifywait.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docs/examples/inotifywait.sh | 21 | # Perform catalog actions for a single file | COMMENT |
| LOW | docs/examples/update_from_git.sh | 41 | COMMENT | |
| LOW | docs/examples/catalog_update.sh | 1 | #!/bin/sh | COMMENT |
| LOW | docs/examples/catalog_update.sh | 21 | # Arguments: | COMMENT |
| LOW | docs/examples/catalog_update.sh | 41 | # | COMMENT |
| LOW | docs/examples/catalog_update.sh | 61 | php bin/cli run:updateCatalog -t | COMMENT |
| LOW | public/templates/jplayer.midnight.black-iframed.css | 1321 | #jp_container_1 .jp-controls-holder a.jp-volume-max { order: 7; } | COMMENT |
| LOW | public/themes/reborn/templates/dark.css | 261 | color: #999; | COMMENT |
| LOW | public/themes/reborn/templates/light.css | 241 | COMMENT | |
| LOW | .github/workflows/codeql-analysis.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 61 | # 📚 https://git.io/JvXDl | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/scripts/xss-probe/xss_probe.py | 14 | CODE | |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 27 | CODE | |
| LOW | resources/scripts/api-docs/generate_api_methods_md.py | 24 | CODE | |
| LOW | resources/scripts/api-docs/capture_reads.py | 11 | CODE | |
| LOW | resources/scripts/api-docs/format_md_tables.py | 21 | CODE | |
| LOW | resources/scripts/api-docs/verify_openapi_shapes.py | 31 | CODE | |
| LOW | resources/scripts/api-docs/lint_openapi.py | 25 | CODE | |
| LOW | resources/scripts/api-docs/generate_browse_docs.py | 22 | CODE | |
| LOW | resources/scripts/api-docs/check_openapi_examples.py | 23 | CODE | |
| LOW | resources/scripts/api-docs/browse_reference.py | 21 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/API.md | 156 | * ampache://yourapikey@localhost:993/ampache#ssl=true | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/scripts/xss-probe/xss_probe.py | 285 | CODE | |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1411 | CODE | |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1514 | CODE | |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1617 | CODE | |
| LOW | resources/scripts/api-docs/generate_api_methods_md.py | 72 | CODE | |
| LOW | resources/scripts/api-docs/verify_openapi_shapes.py | 353 | CODE | |
| LOW | resources/scripts/api-docs/generate_browse_docs.py | 123 | CODE | |
| LOW | resources/scripts/api-docs/check_openapi_examples.py | 54 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/scripts/api-docs/capture_reads.py | 47 | except Exception: | CODE |
| LOW⚡ | resources/scripts/api-docs/verify_openapi_shapes.py | 163 | except Exception: | CODE |
| LOW | resources/scripts/api-docs/verify_openapi_shapes.py | 254 | except Exception: | CODE |
| LOW | resources/scripts/api-docs/verify_openapi_shapes.py | 401 | except Exception as exc: | CODE |
| LOW | resources/scripts/api-docs/verify_openapi_shapes.py | 427 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | resources/scripts/api-docs/generate_openapi_schemas.py | 689 | Json8_Data: array{...}, array<int, T>, array<string, T>, unions with null, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | resources/scripts/api-docs/capture_reads.py | 47 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docker/data/bin/run.sh | 77 | # Create an initial admin account if requested | COMMENT |