AI Slop Code Risk Monitor

hyperf/hyperf

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

🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

3.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for hyperf/hyperf, a PHP project with 6,913 GitHub stars. SynthScan examined 487,712 lines of code across 4017 source files, recording 1646 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 3.2 (Low 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.

3.2
Adjusted Signal
3.2
Raw Pattern Score
100%
Time Factor
2026-10-23
Last Push
6.9K
Stars
PHP
Language
487.7K
Lines of Code
4.0K
Files
1.6K
Pattern Hits
2026-10-31
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-10-31.

Cognitive Ownership Risk 14.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 14.5/100 · LOW

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

PR Review Velocity Impact 15.6/100 · LOW

Which changes need focused human review? 1646 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 4LOW 1642

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 1646 distinct pattern matches across 4 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 Identifiers1619 hits · 1528 pts
SeverityFileLineSnippetContext
LOW…ernance/tests/Listener/RegisterServiceListenerTest.php41 public function testRegisterOnceForTheSameService()CODE
LOW…ernance/tests/Listener/RegisterServiceListenerTest.php72 public function testRegisterForTheSameServiceWithoutTheSameProtocol()CODE
LOWsrc/rpc-server/tests/RouterDispatcherFactoryTest.php70 public function testHandleRpcServiceWithMiddlewares()CODE
LOWsrc/rpc-server/src/Server.php153 protected function getDefaultExceptionHandler(): arrayCODE
LOW…racer/tests/Adapter/Reporter/HttpClientFactoryTest.php35 public function testContentLengthHeaderIsString(): voidCODE
LOW⚡src/database/tests/ModelTest.php270 public function testNewInstanceReturnsNewInstanceWithAttributesSet()CODE
LOW⚡src/database/tests/ModelTest.php278 public function testNewInstanceReturnsNewInstanceWithTableSet()CODE
LOW⚡src/database/tests/ModelTest.php287 public function testCreateMethodSavesNewModel()CODE
LOW⚡src/database/tests/ModelTest.php295 public function testMakeMethodDoesNotSaveNewModel()CODE
LOW⚡src/database/tests/ModelTest.php303 public function testForceCreateMethodSavesNewModelWithGuardedAttributes()CODE
LOW⚡src/database/tests/ModelTest.php311 public function testFindMethodUseWritePdo()CODE
LOW⚡src/database/tests/ModelTest.php318 public function testDestroyMethodCallsQueryBuilderCorrectly()CODE
LOW⚡src/database/tests/ModelTest.php325 public function testDestroyMethodCallsQueryBuilderCorrectlyWithCollection()CODE
LOW⚡src/database/tests/ModelTest.php332 public function testWithMethodCallsQueryBuilderCorrectly()CODE
LOW⚡src/database/tests/ModelTest.php338 public function testWithoutMethodRemovesEagerLoadedRelationshipCorrectly()CODE
LOW⚡src/database/tests/ModelTest.php346 public function testEagerLoadingWithColumns()CODE
LOWsrc/database/tests/ModelTest.php110 public function testAttributeManipulation()CODE
LOWsrc/database/tests/ModelTest.php141 public function testDirtyOnCastOrDateAttributes()CODE
LOWsrc/database/tests/ModelTest.php227 public function testArrayAccessToAttributes()CODE
LOWsrc/database/tests/ModelTest.php358 public function testWithMethodCallsQueryBuilderCorrectlyWithArray()CODE
LOWsrc/database/tests/ModelTest.php387 public function testUpdateProcessDoesntOverrideTimestamps()CODE
LOWsrc/database/tests/ModelTest.php406 public function testSaveIsCancelledIfSavingEventReturnsFalse()CODE
LOWsrc/database/tests/ModelTest.php424 public function testUpdateIsCancelledIfUpdatingEventReturnsFalse()CODE
LOWsrc/database/tests/ModelTest.php443 public function testEventsCanBeFiredWithCustomEventObjects()CODE
LOWsrc/database/tests/ModelTest.php459 public function testUpdateProcessWithoutTimestamps()CODE
LOWsrc/database/tests/ModelTest.php479 public function testUpdateUsesOldPrimaryKey()CODE
LOWsrc/database/tests/ModelTest.php499 public function testTimestampsAreReturnedAsObjects()CODE
LOWsrc/database/tests/ModelTest.php515 public function testTimestampsAreReturnedAsObjectsFromPlainDatesAndTimestamps()CODE
LOWsrc/database/tests/ModelTest.php528 public function testTimestampsAreReturnedAsObjectsOnCreate()CODE
LOWsrc/database/tests/ModelTest.php544 public function testDateTimeAttributesReturnNullIfSetToNull()CODE
LOWsrc/database/tests/ModelTest.php561 public function testTimestampsAreCreatedFromStringsAndIntegers()CODE
LOWsrc/database/tests/ModelTest.php652 public function testInsertIsCancelledIfCreatingEventReturnsFalse()CODE
LOWsrc/database/tests/ModelTest.php668 public function testDeleteProperlyDeletesModel()CODE
LOWsrc/database/tests/ModelTest.php752 public function testPushEmptyManyRelation()CODE
LOWsrc/database/tests/ModelTest.php809 public function testNewQueryReturnsQueryBuilder()CODE
LOWsrc/database/tests/ModelTest.php823 public function testGetAndSetTableOperations()CODE
LOWsrc/database/tests/ModelTest.php831 public function testGetKeyReturnsValueOfPrimaryKey()CODE
LOWsrc/database/tests/ModelTest.php884 public function testVisibleCreatesArrayWhitelist()CODE
LOWsrc/database/tests/ModelTest.php895 public function testHiddenCanAlsoExcludeRelationships()CODE
LOWsrc/database/tests/ModelTest.php906 public function testGetArrayableRelationsFunctionExcludeHiddenRelationships()CODE
LOWsrc/database/tests/ModelTest.php922 public function testToArraySnakeAttributes()CODE
LOWsrc/database/tests/ModelTest.php1094 public function testForceFillMethodFillsGuardedAttributes()CODE
LOWsrc/database/tests/ModelTest.php1100 public function testFillingJSONAttributes()CODE
LOWsrc/database/tests/ModelTest.php1119 public function testUnguardAllowsAnythingToBeSet()CODE
LOWsrc/database/tests/ModelTest.php1130 public function testUnderscorePropertiesAreNotFilled()CODE
LOWsrc/database/tests/ModelTest.php1147 public function testFillableOverridesGuarded()CODE
LOWsrc/database/tests/ModelTest.php1168 public function testUnguardedRunsCallbackWhileBeingUnguarded()CODE
LOWsrc/database/tests/ModelTest.php1177 public function testUnguardedCallDoesNotChangeUnguardedState()CODE
LOWsrc/database/tests/ModelTest.php1188 public function testUnguardedCallDoesNotChangeUnguardedStateOnException()CODE
LOWsrc/database/tests/ModelTest.php1200 public function testHasOneCreatesProperRelation()CODE
LOWsrc/database/tests/ModelTest.php1215 public function testMorphOneCreatesProperRelation()CODE
LOWsrc/database/tests/ModelTest.php1225 public function testCorrectMorphClassIsReturned()CODE
LOWsrc/database/tests/ModelTest.php1237 public function testHasManyCreatesProperRelation()CODE
LOWsrc/database/tests/ModelTest.php1253 public function testMorphManyCreatesProperRelation()CODE
LOWsrc/database/tests/ModelTest.php1263 public function testBelongsToCreatesProperRelation()CODE
LOWsrc/database/tests/ModelTest.php1278 public function testMorphToCreatesProperRelation()CODE
LOWsrc/database/tests/ModelTest.php1310 public function testBelongsToManyCreatesProperRelation()CODE
LOWsrc/database/tests/ModelTest.php1331 public function testRelationsWithVariedConnections()CODE
LOWsrc/database/tests/ModelTest.php1412 public function testModelsAssumeTheirName()CODE
LOWsrc/database/tests/ModelTest.php1421 public function testTheMutatorCacheIsPopulated()CODE
1559 more matches not shown…
Fake / Example Data11 hits · 14 pts
SeverityFileLineSnippetContext
LOW⚡src/database/tests/QueryBuilderTest.php2315 $builder->select('*')->from('users')->where('name', 'sounds like', 'John Doe');CODE
LOW⚡src/database/tests/QueryBuilderTest.php2317 $this->assertEquals(['John Doe'], $builder->getBindings());CODE
LOWsrc/database/tests/ModelRealBuilderTest.php944 ['title' => 'Foo Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2017-11-12 13:14:15')],CODE
LOWsrc/database/tests/ModelRealBuilderTest.php945 ['title' => 'Bar Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2018-01-02 03:04:05')],CODE
LOWsrc/support/tests/FluentTest.php445 $fluent = new Fluent(['name' => 'John Doe']);CODE
LOWsrc/support/tests/FluentTest.php453 'name' => 'John Doe',CODE
LOWsrc/support/tests/FluentTest.php887 $this->assertEquals('John Doe', $fluent->getFullName());CODE
LOW⚡src/resource/tests/ResourceTest.php672 'user@example.com' => 'John',CODE
LOW⚡src/resource/tests/ResourceTest.php673 'admin@example.com' => 'Hank',CODE
LOW⚡src/resource/tests/ResourceTest.php676 'user@example.com' => 'John',CODE
LOW⚡src/resource/tests/ResourceTest.php677 'admin@example.com' => 'Hank',CODE
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMsrc/database/src/Query/Grammars/Grammar.php132 // Essentially we will force every insert to be treated as a batch insert whichCOMMENT
MEDIUMsrc/database/src/Query/Grammars/Grammar.php133 // simply makes creating the SQL easier for us since we can utilize the sameCOMMENT
MEDIUM…base-sqlserver/src/Query/Grammars/SqlServerGrammar.php239 // Essentially we will force every insert to be treated as a batch insert whichCOMMENT
MEDIUM…base-sqlserver/src/Query/Grammars/SqlServerGrammar.php240 // simply makes creating the SQL easier for us since we can utilize the sameCOMMENT
Over-Commented Block12 hits · 12 pts
SeverityFileLineSnippetContext
LOWrector.php21 // register a single ruleCOMMENT
LOWdocs/zh-cn/socketio-server.md121 // 向连接推送 hello 事件COMMENT
LOWdocs/zh-tw/socketio-server.md121 // 向連線推送 hello 事件COMMENT
LOWdocs/id/socketio-server.md121 $socket->emit('hello', 'can you hear me?', 1, 2, 'abc');COMMENT
LOWdocs/en/socketio-server.md121 // Push the hello event to the connectionCOMMENT
LOWdocs/zh-hk/socketio-server.md121 // 向連接推送 hello 事件COMMENT
LOW.github/workflows/scorecard.yml41 - name: "Run analysis"COMMENT
LOWsrc/database/tests/ModelCollectionTest.php401COMMENT
LOWsrc/collection/tests/LazyCollectionIsLazyTest.php1381 $collection->tapEach(function ($value) {COMMENT
LOWsrc/cache/publish/cache.php21 'default' => [COMMENT
LOWsrc/cache/publish/cache.php41 // PDO::ATTR_EMULATE_PREPARES => false,COMMENT
LOWsrc/crontab/tests/ExecutorTest.php181 // $this->assertSame(35, $res);COMMENT