AI Slop Code Risk Monitor

phpdotenv/phpdotenv

SlopCodeMonitor badge for phpdotenv/phpdotenv Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

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

14.4 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

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

14.4
Adjusted Signal
14.4
Raw Pattern Score
100%
Time Factor
2026-11-23
Last Push
13.6K
Stars
PHP
Language
7.1K
Lines of Code
64
Files
96
Pattern Hits
2026-11-27
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.

Cognitive Ownership Risk 51.2/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 96 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 51.2/100 · HIGH

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

PR Review Velocity Impact 49.1/100 · MEDIUM

Which changes need focused human review? 96 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

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

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 96

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 96 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 Identifiers96 hits · 102 pts
SeverityFileLineSnippetContext
LOW⚡tests/Dotenv/DotenvTest.php35 public function testDotenvThrowsExceptionIfUnableToLoadFile()CODE
LOW⚡tests/Dotenv/DotenvTest.php45 public function testDotenvThrowsExceptionIfUnableToLoadFiles()CODE
LOW⚡tests/Dotenv/DotenvTest.php55 public function testDotenvThrowsExceptionWhenNoFiles()CODE
LOW⚡tests/Dotenv/DotenvTest.php65 public function testDotenvTriesPathsToLoad()CODE
LOW⚡tests/Dotenv/DotenvTest.php71 public function testDotenvTriesPathsToLoadTwice()CODE
LOW⚡tests/Dotenv/DotenvTest.php80 public function testDotenvTriesPathsToSafeLoad()CODE
LOW⚡tests/Dotenv/DotenvTest.php86 public function testDotenvSkipsLoadingIfFileIsMissing()CODE
LOW⚡tests/Dotenv/DotenvTest.php92 public function testDotenvLoadsEnvironmentVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php105 public function testDotenvLoadsEnvironmentVarsMultipleWithShortCircuitMode()CODE
LOW⚡tests/Dotenv/DotenvTest.php115 public function testDotenvLoadsEnvironmentVarsMultipleWithoutShortCircuitMode()CODE
LOW⚡tests/Dotenv/DotenvTest.php125 public function testCommentedDotenvLoadsEnvironmentVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php182 public function testDotenvLoadWithInvalidEncoding()CODE
LOW⚡tests/Dotenv/DotenvTest.php192 public function testDotenvLoadsMultibyteWindowsVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php199 public function testMultipleDotenvLoadsEnvironmentVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php207 public function testExportedDotenvLoadsEnvironmentVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php220 public function testDotenvLoadsEnvGlobals()CODE
LOW⚡tests/Dotenv/DotenvTest.php230 public function testDotenvLoadsServerGlobals()CODE
LOW⚡tests/Dotenv/DotenvTest.php240 public function testDotenvNestedEnvironmentVars()CODE
LOW⚡tests/Dotenv/DotenvTest.php278 public function testDotenvImmutableLoadIgnoresPutenv()CODE
LOW⚡tests/Dotenv/DotenvTest.php288 public function testDotenvLoadAfterOverload()CODE
LOW⚡tests/Dotenv/DotenvTest.php296 public function testDotenvOverloadAfterLoad()CODE
LOW⚡tests/Dotenv/DotenvTest.php304 public function testDotenvUnsafeLoadWithNullByteValueDoesNotThrow()CODE
LOW⚡tests/Dotenv/DotenvTest.php312 public function testPutenvRepositoryIgnoresNullByteName()CODE
LOW⚡tests/Dotenv/DotenvTest.php321 public function testDotenvOverloadDoesOverwriteEnv()CODE
LOW⚡tests/Dotenv/DotenvTest.php328 public function testDotenvAllowsSpecialCharacters()CODE
LOW⚡tests/Dotenv/DotenvTest.php417 public function testDotenvParseInterpolationAfterMultibyteText()CODE
LOW⚡tests/Dotenv/DotenvTest.php425 public function testDotenvParseKeepsEscapedNestedVariableLiteral()CODE
LOW⚡tests/Dotenv/DotenvTest.php433 public function testDotenvParseIndentedComment()CODE
LOW⚡tests/Dotenv/DotenvTest.php438 public function testDotenvParseCommentContainingQuoteStart()CODE
LOW⚡tests/Dotenv/DotenvTest.php446 public function testDotenvParseMultilineContainingHash()CODE
LOW⚡tests/Dotenv/DotenvTest.php454 public function testDotenvParseMultilineClosingQuoteFollowedByComment()CODE
LOW⚡tests/Dotenv/DotenvTest.php462 public function testDotenvParseMultilineClosingQuoteFollowedByWhitespace()CODE
LOW⚡tests/Dotenv/DotenvTest.php470 public function testDotenvParseUnterminatedDoubleQuote()CODE
LOW⚡tests/Dotenv/DotenvTest.php478 public function testDotenvParseUnterminatedDoubleQuoteFollowedByLine()CODE
LOWtests/Dotenv/DotenvTest.php141 public function testQuotedDotenvLoadsEnvironmentVars()CODE
LOWtests/Dotenv/DotenvTest.php156 public function testLargeDotenvLoadsEnvironmentVars()CODE
LOWtests/Dotenv/DotenvTest.php164 public function testDotenvLoadsMultibyteVars()CODE
LOWtests/Dotenv/DotenvTest.php259 public function testDotenvNullFileArgumentUsesDefault()CODE
LOWtests/Dotenv/DotenvTest.php403 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
36 more matches not shown…