Highly-extensible PHP Markdown parser which fully supports the CommonMark and GFM specs.
This report summarizes scanner evidence for thephpleague/commonmark, a PHP project with 2,981 GitHub stars. SynthScan examined 64,125 lines of code across 908 source files, recording 395 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 6.4 (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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 351 finding(s).
Are imports declared and package/API names verified? 44 finding(s).
Are wrappers, guards, and repeated structures necessary? 343 finding(s).
Which changes need focused human review? 395 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 395 distinct pattern matches across 5 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/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/Attributes/Event/AttributesListenerTest.php | 37 | public function testSeededClassWithoutAnyClasses(string $markdown, $seededClass, string $expected): void | CODE |
| LOW | …/Extension/Attributes/Event/AttributesListenerTest.php | 56 | public static function dataForTestSeededClassWithoutAnyClasses(): 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 | …n/NormalizeHeadings/NormalizeHeadingsProcessorTest.php | 48 | public static function provideNormalizationCases(): iterable | CODE |
| LOW | …n/NormalizeHeadings/NormalizeHeadingsProcessorTest.php | 93 | public function testThrowsExceptionWhenMinLevelExceedsMaxLevel(): 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 | 120 | public static function dataProviderForTestWithCustomSettings(): iterable | CODE |
| 283 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/pathological/test.php | 466 | 'position' => 'placeholder', | CODE |
| LOW | tests/pathological/test.php | 467 | 'placeholder' => '[TOC]', | 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 | …nsion/TableOfContents/TableOfContentsExtensionTest.php | 55 | return ['table_of_contents' => ['position' => 'placeholder', 'placeholder' => '[TOC]']]; | 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/security.md | 133 | This only applies if you're using the [Table of Contents extension](/2.x/extensions/table-of-contents/) with `'position' | 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/footnotes.md | 69 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi^[Elit Malesuada Ridiculus] leo risus, porta ac consectetu | CODE |
| LOW⚡ | docs/2.x/extensions/footnotes.md | 69 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi^[Elit Malesuada Ridiculus] leo risus, porta ac consectetu | CODE |
| LOW⚡ | docs/2.x/extensions/footnotes.md | 76 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi<sup id="fnref:elit-malesuada-ridic"><a class="footnot | CODE |
| LOW⚡ | docs/2.x/extensions/footnotes.md | 76 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi<sup id="fnref:elit-malesuada-ridic"><a class="footnot | CODE |
| LOW | docs/2.x/extensions/table-of-contents.md | 55 | 'placeholder' => null, | CODE |
| LOW⚡ | docs/2.x/extensions/table-of-contents.md | 97 | - `'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 | 101 | In `'placeholder'` mode the document contains a single `TableOfContents` node, which is the one the listener above will | CODE |
| LOW⚡ | docs/2.x/extensions/table-of-contents.md | 105 | When combined with `'position' => 'placeholder'`, this setting tells the extension which placeholder content should be r | CODE |
| LOW⚡ | docs/2.x/extensions/table-of-contents.md | 109 | When combined with `'position' => 'placeholder'`, this option limits how many table of contents entries a single documen | CODE |
| LOW | …c/Extension/TableOfContents/TableOfContentsBuilder.php | 34 | public const POSITION_PLACEHOLDER = 'placeholder'; | CODE |
| LOW | …Extension/TableOfContents/TableOfContentsExtension.php | 39 | '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 |