Highly-extensible PHP Markdown parser which fully supports the CommonMark and GFM specs.
This report presents the forensic synthetic code analysis of thephpleague/commonmark, a PHP project with 2,965 GitHub stars. SynthScan v2.0 examined 59,735 lines of code across 869 source files, recording 323 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 5.6 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 323 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/GithubFlavoredMarkdownConverterTest.php | 40 | public function testConfigOnlyConstructor(): void | CODE |
| LOW | tests/unit/GithubFlavoredMarkdownConverterTest.php | 58 | public function testGetEnvironmentReturnsMainEnvironmentClass(): void | CODE |
| LOW | tests/unit/MarkdownConverterTest.php | 27 | public function testConstructorAndGetEnvironment(): void | CODE |
| LOW | tests/unit/MarkdownConverterTest.php | 36 | public function testInvokeReturnsSameOutputAsConvert(): void | CODE |
| LOW | tests/unit/CommonMarkConverterTest.php | 38 | public function testConstructorWithConfig(): void | CODE |
| LOW | tests/unit/CommonMarkConverterTest.php | 58 | public function testInvokeReturnsSameOutputAsConvert(): void | CODE |
| LOW | tests/unit/CommonMarkConverterTest.php | 67 | public function testGetEnvironmentReturnsMainEnvironmentClass(): void | CODE |
| LOW | tests/unit/Renderer/HtmlRendererTest.php | 19 | public function testRenderDocumentCallsDocumentRenderer(): void | CODE |
| LOW | tests/unit/Renderer/HtmlRendererTest.php | 33 | public function testRenderNodesWithBlocks(): void | CODE |
| LOW | tests/unit/Renderer/HtmlRendererTest.php | 51 | public function testRenderNodesWithInlines(): void | CODE |
| LOW | tests/unit/Renderer/HtmlRendererTest.php | 69 | public function testRenderNodesFallsBackWhenFirstRendererReturnsNull(): void | CODE |
| LOW | tests/unit/Renderer/HtmlRendererTest.php | 87 | public function testRenderNodesWithMissingRenderer(): void | CODE |
| LOW | tests/unit/Renderer/Inline/TextRendererTest.php | 46 | public function testRenderWithInvalidType(): void | CODE |
| LOW | tests/unit/Renderer/Inline/NewlineRendererTest.php | 61 | public function testRenderWithInvalidType(): void | CODE |
| LOW | tests/unit/Renderer/Block/ParagraphRendererTest.php | 51 | public function testRenderWithInvalidType(): void | CODE |
| LOW | tests/unit/Renderer/Block/DocumentRendererTest.php | 59 | public function testRenderWithInvalidType(): void | CODE |
| LOW | tests/unit/Extension/Embed/EmbedProcessorTest.php | 43 | public function testNoUpdatesEmbedsWithoutEmbeds(): void | CODE |
| LOW | tests/unit/Extension/Embed/EmbedTest.php | 21 | public function testConstructorGettersAndSetters(): void | CODE |
| LOW | …nsion/SmartPunct/ReplaceUnpairedQuotesListenerTest.php | 35 | public function testWithConsecutiveMerging(array $paragraphNodes, string $expectedText): void | CODE |
| LOW | …nsion/SmartPunct/ReplaceUnpairedQuotesListenerTest.php | 87 | public function testWhenMergingNotPossible(): void | CODE |
| LOW | tests/unit/Extension/Highlight/MarkRendererTest.php | 48 | public function testRenderWithInvalidNodeType(): void | CODE |
| LOW | …scriptionList/Renderer/DescriptionListRendererTest.php | 48 | public function testRenderWithInvalidType(): void | CODE |
| LOW | …scriptionList/Renderer/DescriptionTermRendererTest.php | 46 | public function testRenderWithInvalidType(): void | CODE |
| LOW | …n/DescriptionList/Renderer/DescriptionRendererTest.php | 46 | public function testRenderWithInvalidType(): void | CODE |
| LOW | …nit/Extension/DescriptionList/Node/DescriptionTest.php | 21 | public function testTightnessConstructorGetterAndSetter(): void | CODE |
| LOW | …s/unit/Extension/FrontMatter/FrontMatterParserTest.php | 41 | public function testWithFrontMatterThatsJustAString(): void | CODE |
| LOW | …s/unit/Extension/FrontMatter/FrontMatterParserTest.php | 77 | public function testWithInvalidFrontMatterDelimiters(): void | CODE |
| LOW | …FrontMatter/Input/MarkdownInputWithFrontMatterTest.php | 21 | public function testConstructorAndGetters(): void | CODE |
| LOW | …ntMatter/Output/RenderedContentWithFrontMatterTest.php | 22 | public function testConstructorAndGetters(): void | CODE |
| LOW | …/FrontMatter/Data/SymfonyYamlFrontMatterParserTest.php | 63 | public static function provideInvalidYamlExamples(): iterable | CODE |
| LOW | …/FrontMatter/Data/SymfonyYamlFrontMatterParserTest.php | 72 | private static function yamlLibrarySupportsObjectUnserialization(): bool | CODE |
| LOW | …ion/HeadingPermalink/HeadingPermalinkProcessorTest.php | 31 | public function testUsesDefaultSlugNormalizer(): void | CODE |
| LOW | …ion/HeadingPermalink/HeadingPermalinkProcessorTest.php | 49 | public function testCustomSlugNormalizerOption(): void | CODE |
| LOW | …ion/HeadingPermalink/HeadingPermalinkProcessorTest.php | 82 | public function testInvalidSlugNormalizerOption(): void | CODE |
| LOW | …ion/HeadingPermalink/HeadingPermalinkProcessorTest.php | 96 | public function testDuplicateSlugsAreMadeUnique(): void | CODE |
| LOW | …nit/Extension/Attributes/Util/AttributesHelperTest.php | 43 | public static function dataForTestParseAttributes(): iterable | CODE |
| LOW | …nit/Extension/Attributes/Util/AttributesHelperTest.php | 134 | public static function dataForTestMergeAttributes(): iterable | CODE |
| LOW | …nit/Extension/Attributes/Util/AttributesHelperTest.php | 217 | public static function dataForTestFilterAttributes(): iterable | CODE |
| LOW | …/Extension/TaskList/TaskListItemMarkerRendererTest.php | 56 | public function testWithInvalidInlineElement(): void | CODE |
| LOW | tests/unit/Extension/Table/TableCellTest.php | 26 | public function testTypeConstructorArgument(): void | CODE |
| LOW | tests/unit/Extension/Table/TableCellTest.php | 45 | public function testAlignConstructorArgument(): void | CODE |
| LOW | tests/unit/Extension/Table/TableCellRendererTest.php | 25 | public function testRenderWithTableHeader(): void | CODE |
| LOW | tests/unit/Extension/Table/TableCellRendererTest.php | 51 | public function testRenderWithTableCellHavingAlignment(): void | CODE |
| LOW | tests/unit/Extension/Table/TableCellRendererTest.php | 64 | public function testRenderWithTableCellWithCustomAttributes(): void | CODE |
| LOW | tests/unit/Extension/Table/TableSectionRendererTest.php | 26 | public function testRenderWithTableSection(): void | CODE |
| LOW | tests/unit/Extension/Table/TableSectionRendererTest.php | 40 | public function testRenderWithEmptyTableSection(): void | CODE |
| LOW | tests/unit/Extension/Mention/MentionTest.php | 22 | public function testConstructorAndGetters(): void | CODE |
| LOW | tests/unit/Extension/Mention/MentionTest.php | 38 | public function testConstructorAndGettersWithCustomLabel(): void | CODE |
| LOW | tests/unit/Extension/Mention/MentionTest.php | 84 | public function testLabelFunctionsWhenLabelDetached(): void | CODE |
| LOW | …/Extension/Mention/Generator/CallbackGeneratorTest.php | 56 | public function testWithAbstractInlineReturn(): void | CODE |
| LOW | …/Extension/Mention/Generator/CallbackGeneratorTest.php | 75 | public function testWithNoUrlMentionReturn(): void | CODE |
| LOW | …/Extension/Mention/Generator/CallbackGeneratorTest.php | 89 | public function testWithNewMentionButNoUrlReturn(): void | CODE |
| LOW | …t/Extension/ExternalLink/ExternalLinkProcessorTest.php | 87 | public static function dataProviderForTestHostMatches(): iterable | CODE |
| LOW | …t/Extension/ExternalLink/ExternalLinkProcessorTest.php | 126 | public static function dataProviderForTestRelOptions(): iterable | CODE |
| LOW | …on/DisallowedRawHtml/DisallowedRawHtmlRendererTest.php | 57 | public static function dataProviderForTestWithDefaultSettings(): iterable | CODE |
| LOW | …on/DisallowedRawHtml/DisallowedRawHtmlRendererTest.php | 114 | public static function dataProviderForTestWithCustomSettings(): iterable | CODE |
| LOW | …t/Extension/Footnote/Renderer/FootnoteRendererTest.php | 42 | public function testCustomClassAddedViaAST(): void | CODE |
| LOW | …t/Extension/Footnote/Renderer/FootnoteRendererTest.php | 70 | public function testIdPrefixConfiguration(): void | CODE |
| LOW | …xtension/Footnote/Renderer/FootnoteRefRendererTest.php | 42 | public function testCustomClassAddedViaAST(): void | CODE |
| LOW | …xtension/Footnote/Renderer/FootnoteRefRendererTest.php | 70 | public function testIdPrefixConfiguration(): void | CODE |
| 221 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/benchmark/sample.md | 254 | > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, | CODE |
| LOW⚡ | tests/benchmark/sample.md | 254 | > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, | CODE |
| LOW⚡ | tests/benchmark/sample.md | 264 | > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, | CODE |
| LOW⚡ | tests/benchmark/sample.md | 264 | > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, | CODE |
| LOW⚡ | tests/benchmark/sample.md | 363 | * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | COMMENT |
| LOW⚡ | tests/benchmark/sample.md | 363 | * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | COMMENT |
| LOW⚡ | tests/benchmark/sample.md | 371 | * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | COMMENT |
| LOW⚡ | tests/benchmark/sample.md | 371 | * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | COMMENT |
| LOW | tests/benchmark/sample.md | 407 | 1. This is a list item with two paragraphs. Lorem ipsum dolor | CODE |
| LOW | tests/benchmark/sample.md | 424 | only required to indent the first line. Lorem ipsum dolor | CODE |
| LOW | tests/functional/Extension/DescriptionList/spec.txt | 316 | : This is a description with two paragraphs. Lorem ipsum | CODE |
| LOW | tests/functional/Extension/DescriptionList/spec.txt | 317 | dolor sit amet, consectetuer adipiscing elit. Aliquam | CODE |
| LOW | tests/functional/Extension/DescriptionList/spec.txt | 345 | <dd><p>This is a description with two paragraphs. Lorem ipsum | CODE |
| LOW | tests/functional/Extension/DescriptionList/spec.txt | 346 | dolor sit amet, consectetuer adipiscing elit. Aliquam | CODE |
| LOW | …sion/DescriptionList/DescriptionListRegressionTest.php | 36 | [Lorem ipsum dolor sit amet][foo], consectetur adipiscing elit. Cras vitae | CODE |
| LOW | …sion/DescriptionList/DescriptionListRegressionTest.php | 36 | [Lorem ipsum dolor sit amet][foo], consectetur adipiscing elit. Cras vitae | CODE |
| LOW | …sion/DescriptionList/DescriptionListRegressionTest.php | 47 | <p><a href="https://example.com">Lorem ipsum dolor sit amet</a>, consectetur adipiscing elit. Cras vitae | CODE |
| LOW | …sion/DescriptionList/DescriptionListRegressionTest.php | 47 | <p><a href="https://example.com">Lorem ipsum dolor sit amet</a>, consectetur adipiscing elit. Cras vitae | CODE |
| LOW⚡ | docs/1.x/extensions/footnotes.md | 28 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi[^note1] leo risus, porta ac consectetur ac. | CODE |
| LOW⚡ | docs/1.x/extensions/footnotes.md | 28 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi[^note1] leo risus, porta ac consectetur ac. | CODE |
| LOW⚡ | docs/1.x/extensions/footnotes.md | 38 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | CODE |
| LOW⚡ | docs/1.x/extensions/footnotes.md | 38 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | CODE |
| LOW | docs/1.x/extensions/table-of-contents.md | 52 | 'placeholder' => null, | CODE |
| LOW | docs/1.x/extensions/table-of-contents.md | 85 | - `'placeholder'` - Location is manually defined by a user-provided placeholder somewhere in the document (see the `plac | CODE |
| LOW | docs/1.x/extensions/table-of-contents.md | 91 | When combined with `'position' => 'placeholder'`, this setting tells the extension which placeholder content should be r | CODE |
| LOW⚡ | docs/2.x/extensions/footnotes.md | 37 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi[^note1] leo risus, porta ac consectetur ac. | CODE |
| LOW⚡ | docs/2.x/extensions/footnotes.md | 37 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi[^note1] leo risus, porta ac consectetur ac. | CODE |
| LOW⚡ | docs/2.x/extensions/footnotes.md | 47 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | CODE |
| LOW⚡ | docs/2.x/extensions/footnotes.md | 47 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | CODE |
| LOW | docs/2.x/extensions/table-of-contents.md | 55 | 'placeholder' => null, | CODE |
| LOW | docs/2.x/extensions/table-of-contents.md | 96 | - `'placeholder'` - Location is manually defined by a user-provided placeholder somewhere in the document (see the `plac | CODE |
| LOW | docs/2.x/extensions/table-of-contents.md | 102 | When combined with `'position' => 'placeholder'`, this setting tells the extension which placeholder content should be r | CODE |
| LOW | …c/Extension/TableOfContents/TableOfContentsBuilder.php | 31 | public const POSITION_PLACEHOLDER = 'placeholder'; | CODE |
| LOW | …Extension/TableOfContents/TableOfContentsExtension.php | 37 | 'placeholder' => Expect::anyOf(Expect::string(), Expect::null())->default(null), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ctional/Extension/TableOfContents/xml/style-ordered.md | 1 | --- | COMMENT |
| LOW | …nctional/Extension/TableOfContents/xml/style-bullet.md | 1 | --- | COMMENT |
| LOW | …nctional/Extension/TableOfContents/md/style-ordered.md | 1 | --- | COMMENT |
| LOW | …unctional/Extension/TableOfContents/md/style-bullet.md | 1 | --- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/2.x/customization/block-parsing.md | 144 | // TODO: implement your continuation parsing methods here | COMMENT |
| LOW | docs/2.x/customization/block-parsing.md | 150 | // TODO: implement the tryStart() method here | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/ISSUE_TEMPLATE/2_Bug_report.yaml | 23 | Markdown and/or config needed to reproduce the problem. Don't forget to mention any extensions you might h | CODE |
| LOW | src/Extension/FrontMatter/FrontMatterParser.php | 59 | // Don't forget to add 1 because we stripped one out when trimming the trailing delims | COMMENT |