AI Slop Code Risk Monitor

typecho/typecho

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

A PHP Blogging Platform. Simple and Powerful.

1.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for typecho/typecho, a PHP project with 12,458 GitHub stars. SynthScan examined 82,814 lines of code across 326 source files, recording 92 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.5 (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.

1.5
Adjusted Signal
1.5
Raw Pattern Score
100%
Time Factor
2026-10-28
Last Push
12.5K
Stars
PHP
Language
82.8K
Lines of Code
326
Files
92
Pattern Hits
2026-10-31
Scan Date
0.01
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 5.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.5/100 · LOW

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

Agent Over-Engineering Ratio 3.7/100 · LOW

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

PR Review Velocity Impact 6.9/100 · LOW

Which changes need focused human review? 92 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 2HIGH 1MEDIUM 2LOW 87

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 92 distinct pattern matches across 7 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 Identifiers56 hits · 62 pts
SeverityFileLineSnippetContext
LOW⚡tests/Unit/XmlRpcStringTest.php13 public function testPaddedStringKeepsSurroundingSpaces(): voidCODE
LOW⚡tests/Unit/XmlRpcStringTest.php18 public function testStringKeepsLeadingNewlinesAndIndentation(): voidCODE
LOW⚡tests/Unit/XmlRpcStringTest.php23 public function testPlainStringIsUnchanged(): voidCODE
LOW⚡tests/Unit/XmlRpcStringTest.php28 public function testNewPostBodyReachesMethodByteForByte(): voidCODE
LOWtests/Unit/MimeContentTypeTest.php46 public function testAlwaysReturnsNonEmptyString(): voidCODE
LOWtests/Unit/CookieTest.php72 public function testSetDefaultsToSameSiteLax(): voidCODE
LOWtests/Unit/CookieTest.php84 public function testSessionCookieHasZeroExpires(): voidCODE
LOWtests/Unit/CookieTest.php90 public function testRelativeExpireIsAddedToNow(): voidCODE
LOWtests/Unit/CookieTest.php102 public function testDeleteExpiresInThePast(): voidCODE
LOWtests/Unit/CookieTest.php114 public function testSecureAndHttpOnlyDefaultOff(): voidCODE
LOWtests/Unit/CookieTest.php123 public function testSecureAndHttpOnlyFromOptions(): voidCODE
LOWtests/Unit/PasswordHashTest.php26 public function testPasswordHashRoundTrip(): voidCODE
LOWtests/Unit/PasswordHashTest.php44 public function testPhpassHashStillValidates(): voidCODE
LOWtests/Unit/PasswordHashTest.php54 public function testLegacyPhpassClassIsUnchanged(): voidCODE
LOWtests/Unit/PasswordHashTest.php80 public function testLegacyPluginCallsDoNotFatal(): voidCODE
LOWtests/Unit/PasswordHashTest.php115 public function testMalformedPhpassHashIsRejectedSilently(string $hash): voidCODE
LOWtests/Unit/PasswordHashTest.php133 public function testTypechoHashStillValidates(): voidCODE
LOWtests/Unit/PasswordHashTest.php154 public function testCoreGenerationPointsUseCommonHashPassword(): voidCODE
LOWtests/Unit/PasswordHashTest.php187 public function testWrongPasswordIsRejected(string $hash): voidCODE
LOWtests/Unit/PasswordHashTest.php194 public function testMissingOrEmptyHashIsRejected(): voidCODE
LOWtests/Unit/XmlRpcDispatchTest.php63 public function testStubMirrorsWidgetSignatures(): voidCODE
LOWtests/Unit/FeedTest.php40 public function testCdataTerminatorInFieldsStaysWellFormed(string $type, string $payload): voidCODE
LOWtests/Unit/FeedTest.php73 public function testTerminatorIsSplitAcrossCdataSections(): voidCODE
LOWtests/Unit/FeedTest.php86 public function testOrdinaryHtmlIsUnchanged(string $type): voidCODE
LOWtests/Unit/LegacyAliasTest.php7 public function testMechanicalAliasResolves(): voidCODE
LOWtests/Unit/XmlRpcServerTest.php9 public function testRequestAtTheSizeLimitIsServed(): voidCODE
LOWtests/Unit/XmlRpcServerTest.php15 public function testRequestOverTheSizeLimitIsRejected(): voidCODE
LOWtests/Unit/DateTest.php14 public function testFormatAppliesTimezoneOffset(): voidCODE
LOWtests/Unit/XmlRpcLargeMessageTest.php14 public function testTwoMegabyteMediaObjectWithDeclarationParses(): voidCODE
LOW⚡tests/Unit/XmlRpcLargeMessageTest.php25 public function testSmallMessageWithDeclarationParses(): voidCODE
LOW⚡tests/Unit/XmlRpcLargeMessageTest.php34 public function testMessageWithoutDeclarationParses(): voidCODE
LOW⚡tests/Unit/XmlRpcLargeMessageTest.php42 public function testBlankMessageIsRejected(): voidCODE
LOWtests/Unit/RouterParserTest.php7 public function testParsesTypedPlaceholders(): voidCODE
LOWtests/Unit/WidgetFactoryTest.php60 public function testPooledExceptionPropagates(): voidCODE
LOWtests/Unit/WidgetFactoryTest.php68 public function testPooledReturnsSameInstance(): voidCODE
LOW⚡tests/Unit/WidgetFactoryTest.php81 public function testPooledTerminalKeepsInstance(): voidCODE
LOW⚡tests/Unit/WidgetFactoryTest.php91 public function testSandboxSwallowsException(): voidCODE
LOW⚡tests/Unit/WidgetFactoryTest.php100 public function testSandboxSwallowsCallbackException(): voidCODE
LOWtests/Unit/WidgetFactoryTest.php115 public function testSandboxSwallowsTerminal(): voidCODE
LOWtests/Unit/WidgetFactoryTest.php145 public function testSandboxConstructorFailureIsTypeError(): voidCODE
LOWtests/Security/TimeTokenTest.php20 public function testNonStringTokensRejected($token): voidCODE
LOWtests/Security/SafeHttpClientTest.php10 public function testSafeModeRefusesInternalTarget(string $url): voidCODE
LOWtests/Security/SafeHttpClientTest.php33 public function testCallerCannotRepinConnectionViaCurlOption(): voidCODE
LOWtests/Security/ResolveSafeHostTest.php38 public function testPublicLiteralReturnedAsIs(): voidCODE
LOWtests/Db/SchemaTest.php6 public function testInstallSchemaCreatesAllTables(): voidCODE
LOWtests/Db/SchemaTest.php19 public function testInsertSelectThroughQueryBuilder(): voidCODE
LOWtests/Db/SchemaTest.php39 public function testUpdateAndDeleteReturnAffectedRows(): voidCODE
LOWtests/Db/TrackbackTest.php48 public function testScriptTagsAreStripped(): voidCODE
LOWtests/Db/LoginRehashTest.php63 public function testPhpassHashIsUpgradedOnLogin(): voidCODE
LOW⚡tests/Db/LoginRehashTest.php93 public function testModernHashIsNotRewritten(): voidCODE
LOW⚡tests/Db/LoginRehashTest.php102 public function testHashValidatePluginTakesPrecedenceAndIsNotRehashed(): voidCODE
LOWtests/Db/LoginRehashTest.php118 public function testAuthCodeCookieOnlyAcceptsTypechoHash(): voidCODE
LOWadmin/src/js/jquery.js5606 function computePixelPositionAndBoxSizingReliable() {CODE
LOWadmin/src/js/jquery.js7567function addToPrefiltersOrTransports( structure ) {CODE
LOWadmin/src/js/jquery.js7599function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {CODE
LOWvar/Widget/Metas/EditTrait.php93 protected function refreshCountByTypeAndStatus(int $mid, string $type, string $status = 'publish')CODE
Over-Commented Block26 hits · 25 pts
SeverityFileLineSnippetContext
LOWadmin/src/js/pagedown.js1var Markdown;COMMENT
LOWadmin/src/js/pagedown.js21// edge cases. So web applications can do client-side previewCOMMENT
LOWadmin/src/js/pagedown.js41//COMMENT
LOWadmin/src/js/pagedown.js361 // We only want to do this for block-level HTML tags, such as headers,COMMENT
LOWadmin/src/js/pagedown.js841 // ========COMMENT
LOWadmin/src/js/pagedown.js961 text = text.replace(/~0/, "");COMMENT
LOWadmin/src/js/pagedown.js981 //COMMENT
LOWadmin/src/js/pagedown.js1001 // attacklab: add sentinel to emulate \zCOMMENT
LOWadmin/src/js/pagedown.js1101 return text;COMMENT
LOWadmin/src/js/pagedown.js1161 // The point is that in code, these characters are literals,COMMENT
LOWadmin/src/js/pagedown.js1201 // character is the marker, this means that if there are e.g. multipleCOMMENT
LOWadmin/src/js/pagedown.js1241 // |COMMENT
LOWadmin/src/js/pagedown.js1261 // \w for asterisk-bolding (otherwise the previous alternative would've matcheCOMMENT
LOWadmin/src/js/pagedown.js1281 // | ... or we allow one of the following:COMMENT
LOWadmin/src/js/pagedown.js1301 // (?= lookahead at the very last italicized char and what comes afterCOMMENT
LOWadmin/src/js/pagedown.js1441 // Returns: The string, with after processing the following backslashCOMMENT
LOWadmin/src/js/pagedown.js1701 // The default text that appears in the dialog input box when enteringCOMMENT
LOWadmin/src/js/pagedown.js1941COMMENT
LOWadmin/src/js/pagedown.js3161 // This prevents the dialog pattern I'm used to and meansCOMMENT
LOWadmin/src/js/pagedown.js3541 // Having `[^\w\d-./]` in there is just a shortcut that lets us skipCOMMENT
LOWadmin/src/js/pagedown.js3621 // [[\]] an opening or closing bracketCOMMENT
LOWadmin/src/js/pagedown.js3741 }COMMENT
LOWadmin/src/js/jquery.js1161 // See http://bugs.jquery.com/ticket/13378COMMENT
LOWadmin/src/js/jquery.js3601 //COMMENT
LOWadmin/src/scss/_icons.scss41@mixin sprite-background($name) {COMMENT
LOWadmin/src/scss/components/_editor.scss341 #wmd-button-bar, #wmd-preview, #text, #upload-panel, #tab-files, #btn-preview, #btn-fullscreen-upload, #auto-save-messCOMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALadmin/js/jquery.js1!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){ifCODE
CRITICALadmin/src/js/jquery.js7020jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHadmin/src/js/jquery-ui.js2275 // Format a name, short or long as requestedCOMMENT
Fake / Example Data5 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/Db/LoginRehashTest.php44 'name' => 'admin', 'password' => $hash, 'mail' => 'admin@example.com',CODE
LOW⚡tests/Db/LoginRehashTest.php89 $this->assertTrue($this->login('admin@example.com', 'admin'));CODE
LOWadmin/js/purify.js1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&defineCODE
LOWadmin/src/js/purify.js175 var html$1 = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'auCODE
LOWadmin/src/js/purify.js425 var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholdeCODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtools/build_pot.php117# This file is distributed under the same license as the Typecho Project.COMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMadmin/src/js/jquery.js9133// understands anonymous AMD modules. A named AMD is safest and most robustCOMMENT