A PHP Blogging Platform. Simple and Powerful.
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 85 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 56 finding(s).
Which changes need focused human review? 92 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/Unit/XmlRpcStringTest.php | 13 | public function testPaddedStringKeepsSurroundingSpaces(): void | CODE |
| LOW⚡ | tests/Unit/XmlRpcStringTest.php | 18 | public function testStringKeepsLeadingNewlinesAndIndentation(): void | CODE |
| LOW⚡ | tests/Unit/XmlRpcStringTest.php | 23 | public function testPlainStringIsUnchanged(): void | CODE |
| LOW⚡ | tests/Unit/XmlRpcStringTest.php | 28 | public function testNewPostBodyReachesMethodByteForByte(): void | CODE |
| LOW | tests/Unit/MimeContentTypeTest.php | 46 | public function testAlwaysReturnsNonEmptyString(): void | CODE |
| LOW | tests/Unit/CookieTest.php | 72 | public function testSetDefaultsToSameSiteLax(): void | CODE |
| LOW | tests/Unit/CookieTest.php | 84 | public function testSessionCookieHasZeroExpires(): void | CODE |
| LOW | tests/Unit/CookieTest.php | 90 | public function testRelativeExpireIsAddedToNow(): void | CODE |
| LOW | tests/Unit/CookieTest.php | 102 | public function testDeleteExpiresInThePast(): void | CODE |
| LOW | tests/Unit/CookieTest.php | 114 | public function testSecureAndHttpOnlyDefaultOff(): void | CODE |
| LOW | tests/Unit/CookieTest.php | 123 | public function testSecureAndHttpOnlyFromOptions(): void | CODE |
| LOW | tests/Unit/PasswordHashTest.php | 26 | public function testPasswordHashRoundTrip(): void | CODE |
| LOW | tests/Unit/PasswordHashTest.php | 44 | public function testPhpassHashStillValidates(): void | CODE |
| LOW | tests/Unit/PasswordHashTest.php | 54 | public function testLegacyPhpassClassIsUnchanged(): void | CODE |
| LOW | tests/Unit/PasswordHashTest.php | 80 | public function testLegacyPluginCallsDoNotFatal(): void | CODE |
| LOW | tests/Unit/PasswordHashTest.php | 115 | public function testMalformedPhpassHashIsRejectedSilently(string $hash): void | CODE |
| LOW | tests/Unit/PasswordHashTest.php | 133 | public function testTypechoHashStillValidates(): void | CODE |
| LOW | tests/Unit/PasswordHashTest.php | 154 | public function testCoreGenerationPointsUseCommonHashPassword(): void | CODE |
| LOW | tests/Unit/PasswordHashTest.php | 187 | public function testWrongPasswordIsRejected(string $hash): void | CODE |
| LOW | tests/Unit/PasswordHashTest.php | 194 | public function testMissingOrEmptyHashIsRejected(): void | CODE |
| LOW | tests/Unit/XmlRpcDispatchTest.php | 63 | public function testStubMirrorsWidgetSignatures(): void | CODE |
| LOW | tests/Unit/FeedTest.php | 40 | public function testCdataTerminatorInFieldsStaysWellFormed(string $type, string $payload): void | CODE |
| LOW | tests/Unit/FeedTest.php | 73 | public function testTerminatorIsSplitAcrossCdataSections(): void | CODE |
| LOW | tests/Unit/FeedTest.php | 86 | public function testOrdinaryHtmlIsUnchanged(string $type): void | CODE |
| LOW | tests/Unit/LegacyAliasTest.php | 7 | public function testMechanicalAliasResolves(): void | CODE |
| LOW | tests/Unit/XmlRpcServerTest.php | 9 | public function testRequestAtTheSizeLimitIsServed(): void | CODE |
| LOW | tests/Unit/XmlRpcServerTest.php | 15 | public function testRequestOverTheSizeLimitIsRejected(): void | CODE |
| LOW | tests/Unit/DateTest.php | 14 | public function testFormatAppliesTimezoneOffset(): void | CODE |
| LOW | tests/Unit/XmlRpcLargeMessageTest.php | 14 | public function testTwoMegabyteMediaObjectWithDeclarationParses(): void | CODE |
| LOW⚡ | tests/Unit/XmlRpcLargeMessageTest.php | 25 | public function testSmallMessageWithDeclarationParses(): void | CODE |
| LOW⚡ | tests/Unit/XmlRpcLargeMessageTest.php | 34 | public function testMessageWithoutDeclarationParses(): void | CODE |
| LOW⚡ | tests/Unit/XmlRpcLargeMessageTest.php | 42 | public function testBlankMessageIsRejected(): void | CODE |
| LOW | tests/Unit/RouterParserTest.php | 7 | public function testParsesTypedPlaceholders(): void | CODE |
| LOW | tests/Unit/WidgetFactoryTest.php | 60 | public function testPooledExceptionPropagates(): void | CODE |
| LOW | tests/Unit/WidgetFactoryTest.php | 68 | public function testPooledReturnsSameInstance(): void | CODE |
| LOW⚡ | tests/Unit/WidgetFactoryTest.php | 81 | public function testPooledTerminalKeepsInstance(): void | CODE |
| LOW⚡ | tests/Unit/WidgetFactoryTest.php | 91 | public function testSandboxSwallowsException(): void | CODE |
| LOW⚡ | tests/Unit/WidgetFactoryTest.php | 100 | public function testSandboxSwallowsCallbackException(): void | CODE |
| LOW | tests/Unit/WidgetFactoryTest.php | 115 | public function testSandboxSwallowsTerminal(): void | CODE |
| LOW | tests/Unit/WidgetFactoryTest.php | 145 | public function testSandboxConstructorFailureIsTypeError(): void | CODE |
| LOW | tests/Security/TimeTokenTest.php | 20 | public function testNonStringTokensRejected($token): void | CODE |
| LOW | tests/Security/SafeHttpClientTest.php | 10 | public function testSafeModeRefusesInternalTarget(string $url): void | CODE |
| LOW | tests/Security/SafeHttpClientTest.php | 33 | public function testCallerCannotRepinConnectionViaCurlOption(): void | CODE |
| LOW | tests/Security/ResolveSafeHostTest.php | 38 | public function testPublicLiteralReturnedAsIs(): void | CODE |
| LOW | tests/Db/SchemaTest.php | 6 | public function testInstallSchemaCreatesAllTables(): void | CODE |
| LOW | tests/Db/SchemaTest.php | 19 | public function testInsertSelectThroughQueryBuilder(): void | CODE |
| LOW | tests/Db/SchemaTest.php | 39 | public function testUpdateAndDeleteReturnAffectedRows(): void | CODE |
| LOW | tests/Db/TrackbackTest.php | 48 | public function testScriptTagsAreStripped(): void | CODE |
| LOW | tests/Db/LoginRehashTest.php | 63 | public function testPhpassHashIsUpgradedOnLogin(): void | CODE |
| LOW⚡ | tests/Db/LoginRehashTest.php | 93 | public function testModernHashIsNotRewritten(): void | CODE |
| LOW⚡ | tests/Db/LoginRehashTest.php | 102 | public function testHashValidatePluginTakesPrecedenceAndIsNotRehashed(): void | CODE |
| LOW | tests/Db/LoginRehashTest.php | 118 | public function testAuthCodeCookieOnlyAcceptsTypechoHash(): void | CODE |
| LOW | admin/src/js/jquery.js | 5606 | function computePixelPositionAndBoxSizingReliable() { | CODE |
| LOW | admin/src/js/jquery.js | 7567 | function addToPrefiltersOrTransports( structure ) { | CODE |
| LOW | admin/src/js/jquery.js | 7599 | function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { | CODE |
| LOW | var/Widget/Metas/EditTrait.php | 93 | protected function refreshCountByTypeAndStatus(int $mid, string $type, string $status = 'publish') | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | admin/src/js/pagedown.js | 1 | var Markdown; | COMMENT |
| LOW | admin/src/js/pagedown.js | 21 | // edge cases. So web applications can do client-side preview | COMMENT |
| LOW | admin/src/js/pagedown.js | 41 | // | COMMENT |
| LOW | admin/src/js/pagedown.js | 361 | // We only want to do this for block-level HTML tags, such as headers, | COMMENT |
| LOW | admin/src/js/pagedown.js | 841 | // ======== | COMMENT |
| LOW | admin/src/js/pagedown.js | 961 | text = text.replace(/~0/, ""); | COMMENT |
| LOW | admin/src/js/pagedown.js | 981 | // | COMMENT |
| LOW | admin/src/js/pagedown.js | 1001 | // attacklab: add sentinel to emulate \z | COMMENT |
| LOW | admin/src/js/pagedown.js | 1101 | return text; | COMMENT |
| LOW | admin/src/js/pagedown.js | 1161 | // The point is that in code, these characters are literals, | COMMENT |
| LOW | admin/src/js/pagedown.js | 1201 | // character is the marker, this means that if there are e.g. multiple | COMMENT |
| LOW | admin/src/js/pagedown.js | 1241 | // | | COMMENT |
| LOW | admin/src/js/pagedown.js | 1261 | // \w for asterisk-bolding (otherwise the previous alternative would've matche | COMMENT |
| LOW | admin/src/js/pagedown.js | 1281 | // | ... or we allow one of the following: | COMMENT |
| LOW | admin/src/js/pagedown.js | 1301 | // (?= lookahead at the very last italicized char and what comes after | COMMENT |
| LOW | admin/src/js/pagedown.js | 1441 | // Returns: The string, with after processing the following backslash | COMMENT |
| LOW | admin/src/js/pagedown.js | 1701 | // The default text that appears in the dialog input box when entering | COMMENT |
| LOW | admin/src/js/pagedown.js | 1941 | COMMENT | |
| LOW | admin/src/js/pagedown.js | 3161 | // This prevents the dialog pattern I'm used to and means | COMMENT |
| LOW | admin/src/js/pagedown.js | 3541 | // Having `[^\w\d-./]` in there is just a shortcut that lets us skip | COMMENT |
| LOW | admin/src/js/pagedown.js | 3621 | // [[\]] an opening or closing bracket | COMMENT |
| LOW | admin/src/js/pagedown.js | 3741 | } | COMMENT |
| LOW | admin/src/js/jquery.js | 1161 | // See http://bugs.jquery.com/ticket/13378 | COMMENT |
| LOW | admin/src/js/jquery.js | 3601 | // | COMMENT |
| LOW | admin/src/scss/_icons.scss | 41 | @mixin sprite-background($name) { | COMMENT |
| LOW | admin/src/scss/components/_editor.scss | 341 | #wmd-button-bar, #wmd-preview, #text, #upload-panel, #tab-files, #btn-preview, #btn-fullscreen-upload, #auto-save-mess | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | admin/js/jquery.js | 1 | !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if | CODE |
| CRITICAL | admin/src/js/jquery.js | 7020 | jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | admin/src/js/jquery-ui.js | 2275 | // Format a name, short or long as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Db/LoginRehashTest.php | 44 | 'name' => 'admin', 'password' => $hash, 'mail' => 'admin@example.com', | CODE |
| LOW⚡ | tests/Db/LoginRehashTest.php | 89 | $this->assertTrue($this->login('admin@example.com', 'admin')); | CODE |
| LOW | admin/js/purify.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| LOW | admin/src/js/purify.js | 175 | var html$1 = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'au | CODE |
| LOW | admin/src/js/purify.js | 425 | var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholde | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/build_pot.php | 117 | # This file is distributed under the same license as the Typecho Project. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | admin/src/js/jquery.js | 9133 | // understands anonymous AMD modules. A named AMD is safest and most robust | COMMENT |