AI Slop Code RIsk Monitor

vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

14.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for vlucas/phpdotenv, a PHP project with 13,549 GitHub stars. SynthScan examined 6,888 lines of code across 64 source files, recording 90 pattern matches distributed across 1 syntactic category. The legacy adjusted pattern signal is 14.1 (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.

14.1
Adjusted Signal
14.1
Raw Pattern Score
100%
Time Factor
2026-08-24
Last Push
13.5K
Stars
PHP
Language
6.9K
Lines of Code
64
Files
90
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 50.5/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 90 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

Are imports declared and package/API names verified? 0 finding(s).

Agent Over-Engineering Ratio 50.5/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 90 finding(s).

PR Review Velocity Impact 48.0/100 · MEDIUM

Which changes need focused human review? 90 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 0LOW 90

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 90 distinct pattern matches across 1 syntactic category. 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.

Hyper-Verbose Identifiers90 hits · 97 pts
SeverityFileLineSnippetContext
LOW⚡tests/Dotenv/DotenvTest.php34 public function testDotenvThrowsExceptionIfUnableToLoadFile()CODE
LOW⚡tests/Dotenv/DotenvTest.php44 public function testDotenvThrowsExceptionIfUnableToLoadFiles()CODE
LOW⚡tests/Dotenv/DotenvTest.php54 public function testDotenvThrowsExceptionWhenNoFiles()CODE
LOW⚡tests/Dotenv/DotenvTest.php64 public function testDotenvTriesPathsToLoad()CODE
LOW⚡tests/Dotenv/DotenvTest.php70 public function testDotenvTriesPathsToLoadTwice()CODE
LOW⚡tests/Dotenv/DotenvTest.php79 public function testDotenvTriesPathsToSafeLoad()CODE
LOW⚡tests/Dotenv/DotenvTest.php85 public function testDotenvSkipsLoadingIfFileIsMissing()CODE
LOW⚡tests/Dotenv/DotenvTest.php91 public function testDotenvLoadsEnvironmentVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php104 public function testDotenvLoadsEnvironmentVarsMultipleWithShortCircuitMode()CODE
LOW⚡tests/Dotenv/DotenvTest.php114 public function testDotenvLoadsEnvironmentVarsMultipleWithoutShortCircuitMode()CODE
LOW⚡tests/Dotenv/DotenvTest.php124 public function testCommentedDotenvLoadsEnvironmentVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php181 public function testDotenvLoadWithInvalidEncoding()CODE
LOW⚡tests/Dotenv/DotenvTest.php191 public function testDotenvLoadsMultibyteWindowsVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php198 public function testMultipleDotenvLoadsEnvironmentVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php206 public function testExportedDotenvLoadsEnvironmentVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php219 public function testDotenvLoadsEnvGlobals()CODE
LOW⚡tests/Dotenv/DotenvTest.php229 public function testDotenvLoadsServerGlobals()CODE
LOW⚡tests/Dotenv/DotenvTest.php239 public function testDotenvNestedEnvironmentVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php277 public function testDotenvImmutableLoadIgnoresPutenv()CODE
LOW⚡tests/Dotenv/DotenvTest.php287 public function testDotenvLoadAfterOverload()CODE
LOW⚡tests/Dotenv/DotenvTest.php295 public function testDotenvOverloadAfterLoad()CODE
LOW⚡tests/Dotenv/DotenvTest.php303 public function testDotenvUnsafeLoadWithNullByteValueDoesNotThrow()CODE
LOW⚡tests/Dotenv/DotenvTest.php311 public function testPutenvRepositoryIgnoresNullByteName()CODE
LOW⚡tests/Dotenv/DotenvTest.php320 public function testDotenvOverloadDoesOverwriteEnv()CODE
LOW⚡tests/Dotenv/DotenvTest.php327 public function testDotenvAllowsSpecialCharacters()CODE
LOW⚡tests/Dotenv/DotenvTest.php416 public function testDotenvParseInterpolationAfterMultibyteText()CODE
LOW⚡tests/Dotenv/DotenvTest.php424 public function testDotenvParseKeepsEscapedNestedVariableLiteral()CODE
LOW⚡tests/Dotenv/DotenvTest.php432 public function testDotenvParseIndentedComment()CODE
LOW⚡tests/Dotenv/DotenvTest.php437 public function testDotenvParseCommentContainingQuoteStart()CODE
LOW⚡tests/Dotenv/DotenvTest.php445 public function testDotenvParseMultilineContainingHash()CODE
LOWtests/Dotenv/DotenvTest.php140 public function testQuotedDotenvLoadsEnvironmentVars()CODE
LOWtests/Dotenv/DotenvTest.php155 public function testLargeDotenvLoadsEnvironmentVars()CODE
LOWtests/Dotenv/DotenvTest.php163 public function testDotenvLoadsMultibyteVars()CODE
LOWtests/Dotenv/DotenvTest.php258 public function testDotenvNullFileArgumentUsesDefault()CODE
LOWtests/Dotenv/DotenvTest.php402 public function testDotenvParseNumericNames()CODE
LOW⚡tests/Dotenv/ValidatorTest.php65 public function testDotenvAllowedValuesIfPresent()CODE
LOW⚡tests/Dotenv/ValidatorTest.php75 public function testDotenvAllowedValuesIfNotPresent()CODE
LOW⚡tests/Dotenv/ValidatorTest.php82 public function testDotenvProhibitedValues()CODE
LOWtests/Dotenv/ValidatorTest.php45 public function testDotenvRequiredStringEnvironmentVars()CODE
LOWtests/Dotenv/ValidatorTest.php93 public function testDotenvProhibitedValuesIfPresent()CODE
LOWtests/Dotenv/ValidatorTest.php104 public function testDotenvRequiredThrowsRuntimeException()CODE
LOWtests/Dotenv/ValidatorTest.php122 public function testDotenvRequiredArrayEnvironmentVars()CODE
LOWtests/Dotenv/ValidatorTest.php173 public function testDotenvEmptyThrowsRuntimeException()CODE
LOWtests/Dotenv/ValidatorTest.php187 public function testDotenvEmptyWhenNotPresent()CODE
LOWtests/Dotenv/ValidatorTest.php194 public function testDotenvStringOfSpacesConsideredEmpty()CODE
LOWtests/Dotenv/ValidatorTest.php210 public static function validBooleanValuesDataProvider()CODE
LOWtests/Dotenv/ValidatorTest.php254 public function testCanValidateBooleansIfPresent(string $boolean)CODE
LOWtests/Dotenv/ValidatorTest.php266 public static function invalidBooleanValuesDataProvider()CODE
LOWtests/Dotenv/ValidatorTest.php284 public function testCanInvalidateNonBooleans(string $boolean)CODE
LOWtests/Dotenv/ValidatorTest.php298 public function testCanInvalidateNonBooleansIfPresent(string $boolean)CODE
LOWtests/Dotenv/ValidatorTest.php309 public function testCanInvalidateBooleanNonExist()CODE
LOWtests/Dotenv/ValidatorTest.php323 public function testIfPresentBooleanNonExist()CODE
LOWtests/Dotenv/ValidatorTest.php335 public static function validIntegerValuesDataProvider()CODE
LOWtests/Dotenv/ValidatorTest.php361 public function testCanValidateIntegersIfPresent(string $integer)CODE
LOWtests/Dotenv/ValidatorTest.php373 public static function invalidIntegerValuesDataProvider()CODE
LOWtests/Dotenv/ValidatorTest.php392 public function testCanInvalidateNonIntegers(string $integer)CODE
LOWtests/Dotenv/ValidatorTest.php406 public function testCanInvalidateNonIntegersIfExist(string $integer)CODE
LOWtests/Dotenv/ValidatorTest.php417 public function testCanInvalidateIntegerNonExist()CODE
LOWtests/Dotenv/ValidatorTest.php431 public function testIfPresentIntegerNonExist()CODE
LOWtests/Dotenv/ValidatorTest.php459 public function testDotenvRegexMatchError()CODE
30 more matches not shown…