Guzzle, an extensible PHP HTTP client
This report presents the forensic synthetic code analysis of guzzle/guzzle, a PHP project with 23,453 GitHub stars. SynthScan v2.0 examined 39,617 lines of code across 108 source files, recording 910 pattern matches distributed across 2 syntactic categories. The overall adjusted score of 17.8 places this repository in the Moderate AI signal 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).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
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.
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.
The scanner identified 910 distinct pattern matches across 2 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/HandlerStackTest.php | 27 | public function testCanSetDifferentHandlerAfterConstruction() | CODE |
| LOW | tests/HandlerStackTest.php | 60 | public function testUnshiftsInReverseOrder() | CODE |
| LOW | tests/HandlerStackTest.php | 76 | public function testCanRemoveMiddlewareByInstance() | CODE |
| LOW | tests/HandlerStackTest.php | 91 | public function testCanRemoveMiddlewareByCallableStringName() | CODE |
| LOW | tests/HandlerStackTest.php | 105 | public function testCanRemoveMiddlewareByCallableStringInstance() | CODE |
| LOW | tests/HandlerStackTest.php | 119 | public function testRemovePrefersNameWhenStringIsAlsoCallable() | CODE |
| LOW | tests/HandlerStackTest.php | 173 | public function testEnsuresHandlerExistsByName() | CODE |
| LOW | tests/HandlerStackTest.php | 198 | public function testPicksUpCookiesFromRedirects() | CODE |
| LOW⚡ | tests/UtilsTest.php | 188 | public function testNormalizeHeaderKeysHandlesNumericKeys() | CODE |
| LOW⚡ | tests/UtilsTest.php | 196 | public function testNormalizeProtocolsAcceptsLowercaseProtocols() | CODE |
| LOW⚡ | tests/UtilsTest.php | 201 | public function testNormalizeProtocolsRejectsUppercaseProtocols() | CODE |
| LOW⚡ | tests/UtilsTest.php | 427 | public function testDecodesJsonAndThrowsOnError() | CODE |
| LOW⚡ | tests/UtilsTest.php | 434 | public function testDecodesJsonAndThrowsOnErrorLegacy() | CODE |
| LOW⚡ | tests/UtilsTest.php | 444 | public function testDecodesJsonAndThrowsOnInvalidDepth(int $depth) | CODE |
| LOW⚡ | tests/UtilsTest.php | 454 | public function testDecodesJsonAndThrowsOnInvalidDepthLegacy(int $depth) | CODE |
| LOW | tests/UtilsTest.php | 20 | public function testParsesHeadersFromLines() | CODE |
| LOW | tests/UtilsTest.php | 39 | public function testParsesHeadersFromLinesWithMultipleLines() | CODE |
| LOW | tests/UtilsTest.php | 54 | public function testChooseHandlerAcceptsPreferredTransportSharing(): void | CODE |
| LOW | tests/UtilsTest.php | 77 | public function testChooseHandlerAcceptsRequiredTransportSharing(): void | CODE |
| LOW | tests/UtilsTest.php | 100 | public function testChooseHandlerAcceptsDisabledTransportSharing(): void | CODE |
| LOW | tests/UtilsTest.php | 114 | public static function connectionCapOptionProvider(): iterable | CODE |
| LOW | tests/UtilsTest.php | 123 | public function testChooseHandlerRejectsStreamRequestsWhenConnectionCapsAreConfigured(string $option): void | CODE |
| LOW | tests/UtilsTest.php | 137 | public function testChooseHandlerForwardsMultiplexNoneToTheCurlMultiHandler(): void | CODE |
| LOW | tests/UtilsTest.php | 173 | public function testProvidesDefaultCaBundler() | CODE |
| LOW | tests/UtilsTest.php | 387 | public function testEnsuresNoProxyCheckHostIsSet() | CODE |
| LOW | tests/UtilsTest.php | 394 | public function testEnsuresNoProxyCheckHostIsSetLegacy() | CODE |
| LOW | tests/UtilsTest.php | 407 | public function testEncodesJsonAndThrowsOnError() | CODE |
| LOW | tests/UtilsTest.php | 414 | public function testEncodesJsonAndThrowsOnErrorLegacy() | CODE |
| LOW | tests/UtilsTest.php | 466 | private static function skipIfDefaultCurlHandlerIsUnavailable(): void | CODE |
| LOW | tests/PrepareBodyMiddlewareTest.php | 33 | public function testAddsContentLengthWhenMissingAndPossible($method, $body) | CODE |
| LOW | tests/PrepareBodyMiddlewareTest.php | 57 | public function testPreservesCustomRequestWhenAddingContentLength() | CODE |
| LOW | tests/PrepareBodyMiddlewareTest.php | 111 | public function testAddsTransferEncodingWhenNoContentLength() | CODE |
| LOW | tests/PrepareBodyMiddlewareTest.php | 136 | public function testAddsContentTypeWhenMissingAndPossible() | CODE |
| LOW | tests/PrepareBodyMiddlewareTest.php | 194 | public function testPreservesCustomRequestWhenAddingExpect() | CODE |
| LOW | tests/PrepareBodyMiddlewareTest.php | 218 | public function testIgnoresIfExpectIsPresent() | CODE |
| LOW | tests/RetryMiddlewareTest.php | 16 | public function testRetriesWhenDeciderReturnsTrue() | CODE |
| LOW | tests/RetryMiddlewareTest.php | 44 | public function testDoesNotRetryWhenDeciderReturnsFalse() | CODE |
| LOW | tests/RetryMiddlewareTest.php | 78 | public function testUsesDefaultExponentialDelay() | CODE |
| LOW | tests/RetryMiddlewareTest.php | 100 | public function testExponentialDelayIsDeprecated() | CODE |
| LOW | tests/MiddlewareTest.php | 25 | public function testAddsCookiesToRequests() | CODE |
| LOW | tests/MiddlewareTest.php | 47 | public function testThrowsExceptionOnHttpClientError() | CODE |
| LOW | tests/MiddlewareTest.php | 60 | public function testThrowsExceptionOnHttpClientErrorLongBody() | CODE |
| LOW | tests/MiddlewareTest.php | 73 | public function testThrowsExceptionOnHttpServerError() | CODE |
| LOW | tests/MiddlewareTest.php | 110 | public function testNullContainerException() | CODE |
| LOW | tests/MiddlewareTest.php | 126 | public function testTracksHistoryForFailures() | CODE |
| LOW | tests/MiddlewareTest.php | 201 | public function testLogsRequestsAndResponses() | CODE |
| LOW | tests/MiddlewareTest.php | 215 | public function testLogsRequestsAndResponsesCustomLevel() | CODE |
| LOW | tests/MiddlewareTest.php | 230 | public function testLogsRequestsAndErrors() | CODE |
| LOW | tests/MessageFormatterTest.php | 17 | public function testCreatesWithClfByDefault() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 39 | public function testIgnoresWhenNoLocation() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 51 | public function testRedirectsWithAbsoluteUri() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 69 | public function testRedirectsWithRelativeUri() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 87 | public function testRelativeRedirectPreservesCustomRequestAndUriImplementations() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 127 | public function testTooManyRedirectsExceptionHasResponse() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 147 | public function testEnsuresProtocolIsValid() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 182 | public function testAddsRefererHeaderButClearsUserInfo() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 202 | public function testAddsGuzzleRedirectHeader() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 229 | public function testAddsGuzzleRedirectStatusHeader() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 258 | public function testDoesNotAddRefererWhenGoingFromHttpsToHttp() | CODE |
| LOW | tests/RedirectMiddlewareTest.php | 275 | public function testInvokesOnRedirectForRedirects() | CODE |
| 847 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/Handler/CurlFactory.php | 1741 | $headerAuth = self::curlProxyAuthorizationHeaderValues($conf); | COMMENT |
| LOW | src/Handler/CurlMultiHandler.php | 521 | $version = $easy->request->getProtocolVersion(); | COMMENT |
| LOW | src/Handler/CurlVersion.php | 21 | // which PIPEWAIT is reliably effective. | COMMENT |