AI Slop Code RIsk Monitor

catfan/Medoo

The lightweight PHP database framework to accelerate the development.

12.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for catfan/Medoo, a PHP project with 4,953 GitHub stars. SynthScan examined 6,709 lines of code across 29 source files, recording 78 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 12.8 (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.

12.8
Adjusted Signal
12.8
Raw Pattern Score
100%
Time Factor
2026-08-22
Last Push
5.0K
Stars
PHP
Language
6.7K
Lines of Code
29
Files
78
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 36.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 17.0/100 · LOW

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

Agent Over-Engineering Ratio 36.5/100 · MEDIUM

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

PR Review Velocity Impact 44.1/100 · MEDIUM

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

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 78 distinct pattern matches across 2 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.

Hyper-Verbose Identifiers58 hits · 61 pts
SeverityFileLineSnippetContext
LOWtests/SelectTest.php75 public function testSelectColumnsWithAlias(string $type): voidCODE
LOWtests/SelectTest.php91 public function testSelectColumnsWithType(string $type): voidCODE
LOWtests/SelectTest.php107 public function testSelectColumnsWithAliasAndType(string $type): voidCODE
LOWtests/SelectTest.php255 public function testSelectWithSameKeysJoin(string $type): voidCODE
LOWtests/SelectTest.php351 public function testSelectWithMultipleConditionJoin(string $type): voidCODE
LOWtests/SelectTest.php382 public function testSelectWithAdditionalConditionJoin(string $type): voidCODE
LOWtests/SelectTest.php448 public function testSelectWithDataMapping(string $type): voidCODE
LOWtests/SelectTest.php480 public function testSelectWithIndexMapping(string $type): voidCODE
LOWtests/SelectTest.php520 public function testSelectWithDistinctDiffOrder(string $type): voidCODE
LOWtests/SelectTest.php539 public function testSelectWithUnicodeCharacter(string $type): voidCODE
LOWtests/SelectTest.php558 public function testSelectWithHyphenCharacter(string $type): voidCODE
LOWtests/SelectTest.php576 public function testSelectWithSingleCharacter(string $type): voidCODE
LOWtests/QueryTest.php62 public function testQueryShowTableWithPrefix(): voidCODE
LOWtests/QueryTest.php80 public function testPreparedStatementQuery(string $type): voidCODE
LOWtests/ConnectionTest.php12 public function testPostgreSQLAppliesValidatedCharsetToInjectedPdo(): voidCODE
LOWtests/ConnectionTest.php26 public function testPostgreSQLRejectsInvalidCharset(mixed $charset): voidCODE
LOWtests/ConnectionTest.php41 public static function invalidEncodingNamesProvider(): arrayCODE
LOWtests/ConnectionTest.php53 public function testMySQLRejectsInvalidCollation(): voidCODE
LOW⚡tests/InsertTest.php154 public function testOracleWithPrimaryKeyInsert(): voidCODE
LOW⚡tests/InsertTest.php173 public function testPostgreSQLWithPrimaryKeyInsert(): voidCODE
LOWtests/InsertTest.php213 public function testOracleWithLOBsAndIdInsert(): voidCODE
LOWtests/RawTest.php29 public function testRawWithSamePlaceholderName(string $type): voidCODE
LOWtests/CreateTest.php61 public function testCreateWithCustomIdentityColumn(): voidCODE
LOWtests/CreateTest.php77 public function testCreateRejectsInvalidIdentity(string $identity): voidCODE
LOWtests/CreateTest.php98 public function testCreateRejectsMultipleIdentityColumns(): voidCODE
LOW⚡tests/CreateTest.php109 public function testCreateRejectsIdentityColumnCollision(array $columns): voidCODE
LOW⚡tests/CreateTest.php119 public static function identityCollisionProvider(): arrayCODE
LOW⚡tests/CreateTest.php127 public function testCreateRejectsIdentityForUnsupportedDatabase(): voidCODE
LOW⚡tests/CreateTest.php136 public function testSQLiteIdentityExecution(): voidCODE
LOWtests/CreateTest.php208 public function testCreateWithStringDefinition(string $type): voidCODE
LOWtests/CreateTest.php240 public function testCreateWithSingleOption(string $type): voidCODE
LOW⚡tests/WhereTest.php173 public function testArrayStringValuesWhere(string $type): voidCODE
LOW⚡tests/WhereTest.php193 public function testEmptyArrayValuesWhere(string $type): voidCODE
LOW⚡tests/WhereTest.php405 public function testCompoundDuplicatedKeysWhere(string $type): voidCODE
LOWtests/WhereTest.php71 public function testNotBetweenDateTimeWhere(string $type): voidCODE
LOWtests/WhereTest.php212 public function testEmptyNotInArrayValuesWhere(string $type): voidCODE
LOWtests/WhereTest.php254 public function testRawNotInArrayValuesWhere(string $type): voidCODE
LOWtests/WhereTest.php309 public function testBasicAndRelativityWhere(string $type): voidCODE
LOWtests/WhereTest.php332 public function testBasicSingleRelativityWhere(string $type): voidCODE
LOWtests/WhereTest.php353 public function testBasicOrRelativityWhere(string $type): voidCODE
LOWtests/WhereTest.php379 public function testCompoundRelativityWhere(string $type): voidCODE
LOWtests/WhereTest.php435 public function testColumnsRelationshipWhere(string $type): voidCODE
LOWtests/WhereTest.php706 public function testMultipleOrderWhereWithStringValues(string $type): voidCODE
LOWtests/WhereTest.php772 public function testRegularExpressionWhere(string $type): voidCODE
LOWtests/WhereTest.php805 public function testNegativeRegularExpressionWhere(string $type): voidCODE
LOWtests/WhereTest.php1016 public function testHavingWithAggregateRawWhere(string $type): voidCODE
LOWtests/WhereTest.php1058 public function testRawWhereWithJoinClause(string $type): voidCODE
LOWtests/DataMapTest.php10 public function testDataMapKeepsIndexedNestedResultConsistent(): voidCODE
LOW⚡tests/IdTest.php12 public function testOracleIdReturnsCachedValue(): voidCODE
LOW⚡tests/IdTest.php20 public function testIdReturnsNullWithoutConnection(): voidCODE
LOW⚡tests/IdTest.php27 public function testPostgreSQLIdUsesLastvalWithoutSequenceName(): voidCODE
LOWtests/IdTest.php38 public function testPostgreSQLIdUsesCachedReturningValue(): voidCODE
LOWtests/IdTest.php50 public function testPostgreSQLIdReturnsNullBeforeSequenceUse(): voidCODE
LOWtests/IdTest.php58 public function testPostgreSQLIdUsesSequenceName(): voidCODE
LOWtests/IdTest.php69 public function testPostgreSQLIdKeepsZeroValue(): voidCODE
LOWtests/IdTest.php88 public function testDriverFalseIdReturnsNull(): voidCODE
LOWtests/IdTest.php96 public function testDefaultDriverIdUsesPdoLastInsertId(): voidCODE
LOWtests/ColumnMappingTest.php10 public function testColumnHelpersKeepIndexedNestedResultsConsistent(): voidCODE
Fake / Example Data20 hits · 25 pts
SeverityFileLineSnippetContext
LOWREADME.md84 'email' => 'foo@bar.com'CODE
LOWREADME.md99// "email" : "foo@bar.com",COMMENT
LOWtests/InsertTest.php17 "email" => "foo@bar.com"CODE
LOWtests/InsertTest.php23 VALUES ('foo', 'foo@bar.com')CODE
LOWtests/InsertTest.php137 "email" => "foo@bar.com"CODE
LOW⚡tests/InsertTest.php148 VALUES ('foo', 'foo@bar.com'), ('bar', 'bar@foo.com')CODE
LOW⚡tests/InsertTest.php160 "EMAIL" => "foo@bar.com"CODE
LOW⚡tests/InsertTest.php166 VALUES ('foo', 'foo@bar.com')CODE
LOW⚡tests/InsertTest.php179 "email" => "foo@bar.com"CODE
LOW⚡tests/InsertTest.php185 VALUES ('foo', 'foo@bar.com')CODE
LOW⚡tests/WhereTest.php178 "email" => ["foo@bar.com", "cat@dog.com", "admin@medoo.in"]CODE
LOW⚡tests/WhereTest.php186 "email" IN ('foo@bar.com', 'cat@dog.com', 'admin@medoo.in')CODE
LOW⚡tests/WhereTest.php398 (("user_name" = 'foo' OR "email" = 'foo@bar.com') AND "password" = '12345')CODE
LOW⚡tests/WhereTest.php413 "email" => "foo@bar.com"CODE
LOWtests/WhereTest.php16 "email" => "foo@bar.com",CODE
LOWtests/WhereTest.php34 "email" = 'foo@bar.com' ANDCODE
LOWtests/WhereTest.php285 "email[!]" => ["foo@bar.com", "admin@medoo.in"],CODE
LOWtests/WhereTest.php299 "email" NOT IN ('foo@bar.com', 'admin@medoo.in') ANDCODE
LOWtests/WhereTest.php387 "email" => "foo@bar.com"CODE
LOWtests/WhereTest.php427 (("user_name" = 'foo' OR "email" = 'foo@bar.com') ANDCODE