A pure PHP library for reading and writing spreadsheet files
This report summarizes scanner evidence for PHPOffice/PhpSpreadsheet, a PHP project with 13,995 GitHub stars. SynthScan examined 341,893 lines of code across 2795 source files, recording 1441 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 4.4 (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.
Can maintainers explain intent, assumptions, and trade-offs? 1423 finding(s).
Are imports declared and package/API names verified? 18 finding(s).
Are wrappers, guards, and repeated structures necessary? 1351 finding(s).
Which changes need focused human review? 1441 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 1441 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 | infra/LocaleGenerator.php | 129 | protected function writeConfigArgumentSeparator($configFile, string $column): void | CODE |
| LOW | infra/LocaleGenerator.php | 145 | protected function writeConfigCurrencySymbol($configFile, string $column): void | CODE |
| LOW | infra/LocaleGenerator.php | 163 | protected function buildFunctionsFileForLocale(string $column, string $locale): void | CODE |
| LOW | infra/DocumentGenerator.php | 22 | public static function generateFunctionListByCategory($phpSpreadsheetFunctions): string | CODE |
| LOW | infra/DocumentGenerator.php | 74 | private static function getPhpSpreadsheetFunctionText(mixed $functionCall): string | CODE |
| LOW | infra/DocumentGenerator.php | 94 | public static function generateFunctionListByName(array $phpSpreadsheetFunctions, bool $compact = false): string | CODE |
| LOW | tests/Benchmark/CsvStreamingEncodingTest.php | 65 | public static function providerExistingEncodings(): array | CODE |
| LOW | tests/Benchmark/CsvStreamingEncodingTest.php | 290 | public function testLargeFileProducesCorrectResults(): void | CODE |
| LOW | tests/Benchmark/CsvStreamingEncodingTest.php | 572 | public function testLoadFromStringWithConvertedEncoding(): void | CODE |
| LOW | tests/Benchmark/CsvStreamingEncodingTest.php | 591 | public function testGuessEncodingWithStreaming(string $filename): void | CODE |
| LOW | tests/Benchmark/CsvStreamingEncodingTest.php | 602 | public static function providerGuessEncodingStreaming(): array | CODE |
| LOW | tests/Benchmark/SpreadsheetCopyBenchmarkTest.php | 31 | private function createPopulatedSpreadsheet(): Spreadsheet | CODE |
| LOW | tests/Benchmark/SpreadsheetCopyBenchmarkTest.php | 114 | public function testCloneVsSerializeBenchmark(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 80 | public function testStreamingLoadsIdenticalToSimpleXml(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 113 | public function testStreamingNumericCells(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 127 | public function testStreamingSharedStrings(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 141 | public function testStreamingBooleanCells(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 153 | public function testStreamingFormulaCells(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 171 | public function testStreamingBooleanFormulaCalculatedValue(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 184 | public function testStreamingWithExistingXlsxFile(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 228 | public function testStreamingInlineString(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 292 | public function testStreamingMultipleSheets(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 330 | public function testStreamingLargeCoordinates(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 359 | public function testStreamingDateFormattedCells(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 399 | public function testStreamingStyleIndexHandling(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 446 | public function testStreamingSharedFormulas(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 505 | public function testStreamingReadDataOnlyFalseWithFormulas(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 536 | public function testStreamingEmptyValueCells(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 571 | public function testStreamingCalculatedValuePreserved(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 597 | public function testStreamingStringFormula(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 623 | public function testStreamingRealSharedFormulae(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadTest.php | 686 | public function testStreamingFullComparisonWithStyles(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReaderBenchmarkTest.php | 89 | public function testStreamingReaderPerformanceAndCorrectness(): void | CODE |
| LOW | tests/Benchmark/FormulaTokenCacheBenchmarkTest.php | 41 | public function testParseFormulaCacheEnabledVsDisabled(): void | CODE |
| LOW | tests/Benchmark/FormulaTokenCacheBenchmarkTest.php | 108 | public function testParseFormulaCacheVsNocache(): void | CODE |
| LOW | tests/Benchmark/LargeXlsxWriteBenchmarkTest.php | 24 | public function testPopulateAndSaveLargeSheet(): void | CODE |
| LOW | tests/Benchmark/CsvStreamingEncodingBenchmarkTest.php | 175 | public function testMemoryScalingWithFileSize(): void | CODE |
| LOW | tests/Benchmark/XlsxStreamingReadClass.php | 353 | private function storeStreamingFormulaAttributes(SimpleXMLElement $f, Worksheet $docSheet, string $r): void | CODE |
| LOW | tests/PhpSpreadsheetTests/IOFactoryRegisterTest.php | 36 | public function testRegisterInvalidWriter(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/IOFactoryRegisterTest.php | 43 | public function testRegisterInvalidReader(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 41 | public function testAddDuplicateDefinedName(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 56 | public function testAddScopedDefinedNameWithSameName(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 89 | public function testRemoveGlobalDefinedName(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 101 | public function testRemoveGlobalDefinedNameWhenDuplicateNames(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 118 | public function testRemoveScopedDefinedNameWhenDuplicateNames(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 135 | public function testDefinedNameNoWorksheetNoScope(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/NamedFormulaTest.php | 42 | public function testAddDuplicateNamedRange(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/NamedFormulaTest.php | 60 | public function testAddScopedNamedFormulaWithSameName(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/NamedFormulaTest.php | 98 | public function testRemoveGlobalNamedFormulaWhenDuplicateNames(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/NamedFormulaTest.php | 118 | public function testRemoveScopedNamedFormulaWhenDuplicateNames(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/NamedFormulaTest.php | 138 | public function testRemoveNonExistentNamedFormula(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCopyCloneTest.php | 216 | public function testCopySheetCountMatches(string $type): void | CODE |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCopyCloneTest.php | 268 | public function testCopyNamedRangesReferenceNewSpreadsheet(string $type): void | CODE |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCopyCloneTest.php | 294 | public function testCopyCanBeSavedWithoutErrors(string $type): void | CODE |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCopyCloneTest.php | 333 | public function testCopyWorksheetsAreIndependent(string $type): void | CODE |
| LOW | tests/PhpSpreadsheetTests/RichTextTest.php | 15 | public function testConstructorSpecifyingCell(): void | CODE |
| LOW⚡ | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 121 | public function testUpdateFormulaForMultipleWorksheets(string $formula, int $insertRows, int $insertColumns, string | CODE |
| LOW⚡ | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 130 | public static function providerMultipleWorksheetFormulaUpdates(): array | CODE |
| LOW⚡ | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 135 | public function testInsertNewBeforeRetainDataType(): void | CODE |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 154 | public function testRemoveColumnShiftsCorrectColumnValueIntoRemovedColumnCoordinates(): void | CODE |
| 1291 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mkdocs.mkdocs.yml | 21 | # These are used on features-cross-reference page. | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/ChartCloneTest.php | 201 | ), // 2011 | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/ChartMethodTest.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), // 2010 | COMMENT |
| LOW | …/PhpSpreadsheetTests/Chart/GridlinesShadowGlowTest.php | 61 | // Cell reference for data | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisGlowTest.php | 41 | ['Q4', 30, 32, 0], | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisGlowTest.php | 61 | // Number of datapoints in series | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisGlowTest.php | 181 | ]; | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/DataTableTest.php | 81 | ]; | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/LegendColorTest.php | 61 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), //Max / Open | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisPropertiesTest.php | 61 | // Format Code | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/MultiplierTest.php | 41 | $dataSeriesLabels = [ | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/PR3163Test.php | 61 | // Datatype | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/PieFillTest.php | 61 | DataSeriesValues::DATASERIES_TYPE_STRING, | COMMENT |
| LOW | …s/PhpSpreadsheetTests/Chart/GridlinesLineStyleTest.php | 61 | // Cell reference for data | COMMENT |
| LOW | …s/PhpSpreadsheetTests/Chart/GridlinesLineStyleTest.php | 241 | ); | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/DataSeriesColorTest.php | 61 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), // was 2010 | COMMENT |
| LOW | …ts/PhpSpreadsheetTests/Chart/DataSeriesValues2Test.php | 41 | ] | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisShadowTest.php | 41 | ['Q4', 30, 32, 0], | COMMENT |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisShadowTest.php | 61 | // Number of datapoints in series | COMMENT |
| LOW | tests/data/Calculation/Statistical/LINEST.php | 81 | ], | COMMENT |
| LOW | tests/data/Calculation/Statistical/LINEST.php | 101 | // [2517, 4, 4, 55], | COMMENT |
| LOW | tests/data/Calculation/Statistical/COUNTIFS.php | 21 | ['C', 'B', 'A', 'B', 'B'], | COMMENT |
| LOW | tests/data/Calculation/Statistical/LOGEST.php | 41 | [ | COMMENT |
| LOW | tests/data/Calculation/Statistical/LOGEST.php | 61 | // [ | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_area.php | 21 | ['Q4', 30, 32, 0], | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_area.php | 41 | // Number of datapoints in series | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_column.php | 21 | ['Q4', 30, 32, 0], | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_column.php | 41 | // Number of datapoints in series | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_bar_stacked.php | 21 | ['Q4', 30, 32, 0], | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_bar_stacked.php | 41 | // Number of datapoints in series | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_bar_custom_colors.php | 41 | // Set the X-Axis Labels | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_bar_custom_colors.php | 101 | // Add the chart to the worksheet | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_bar_custom_colors.php | 121 | // Data values | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_line.php | 41 | // Cell reference for data | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_column_2.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$C$1', null, 1), // 'Budget' | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_bubble.php | 41 | COMMENT | |
| LOW | samples/Chart33a/33_Chart_create_area_2.php | 41 | // Datatype | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_area_3.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$D$1', null, 1), // 2012 | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_bar_labels_lines.php | 41 | $dataSeriesLabels1 = [ | COMMENT |
| LOW | samples/Chart33a/33_Chart_create_bar_labels_lines.php | 141 | // Set the X-Axis Labels | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_multiple_charts.php | 21 | ['Q4', 30, 32, 0], | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_multiple_charts.php | 41 | // Number of datapoints in series | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_multiple_charts.php | 101 | // Cell reference for data | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_pie_custom_colors.php | 41 | // Set the X-Axis Labels | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_pie_custom_colors.php | 101 | // Add the chart to the worksheet | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_pie_custom_colors.php | 121 | // Data values | COMMENT |
| LOW | …mples/Chart33b/33_Chart_create_scatter5_trendlines.php | 61 | // Datatype | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_scatter3.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$C$1', null, 1), // was 2011 | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_scatter2.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), // was 2010 | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_stock2.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), //Max / Open | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_pie.php | 21 | ['Q3', 52, 61, 69], | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_pie.php | 101 | // Datatype | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_radar.php | 41 | $dataSeriesLabels = [ | COMMENT |
| LOW | samples/Chart33b/33_Chart_create_stock.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), //Max / Open | COMMENT |
| LOW | samples/templates/chartSpreadsheet.php | 21 | ); | COMMENT |
| LOW | src/PhpSpreadsheet/Reader/Xls.php | 41 | // Modelled moreso after Perl Excel Parse/Write modules | COMMENT |
| LOW | src/PhpSpreadsheet/Reader/Xls.php | 401 | if (!isset($this->summaryInformation)) { | COMMENT |
| LOW | src/PhpSpreadsheet/Reader/Xls/Escher.php | 221 | COMMENT | |
| LOW | src/PhpSpreadsheet/Reader/Xls/LoadSpreadsheet.php | 621 | COMMENT | |
| LOW | src/PhpSpreadsheet/Worksheet/AutoFilter/Column/Rule.php | 161 | // Unimplemented Rule Operators (Numeric, Boolean etc) | COMMENT |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/PhpSpreadsheetTests/Writer/Ods/ContentTest.php | 66 | $worksheet1->setCellValue('E1', 'Lorem ipsum'); // String | CODE |
| LOW | tests/PhpSpreadsheetTests/Writer/Ods/ContentTest.php | 88 | $worksheet1->setCellValueExplicit('G1', 'Lorem ipsum', DataType::TYPE_INLINE); | CODE |
| LOW | …s/PhpSpreadsheetTests/Writer/Html/TextRotationTest.php | 19 | $sheet->setCellValue('A7', 'Lorem Ipsum'); | CODE |
| LOW | …s/PhpSpreadsheetTests/Writer/Mpdf/TextRotationTest.php | 19 | $sheet->setCellValue('A7', 'Lorem Ipsum'); | CODE |
| LOW | …PhpSpreadsheetTests/Writer/Dompdf/TextRotationTest.php | 19 | $sheet->setCellValue('A7', 'Lorem Ipsum'); | CODE |
| LOW | …pSpreadsheetTests/Writer/Dompdf/PaperSizeArrayTest.php | 36 | $sheet->setCellValue('A7', 'Lorem Ipsum'); | CODE |
| LOW | …pSpreadsheetTests/Writer/Dompdf/PaperSizeArrayTest.php | 56 | $sheet->setCellValue('A7', 'Lorem Ipsum'); | CODE |
| LOW | tests/data/Writer/Ods/content-with-data.xml | 87 | <text:p>Lorem ipsum</text:p> | CODE |
| LOW | tests/data/Writer/Ods/content-with-data.xml | 93 | <text:p>Lorem ipsum</text:p> | CODE |
| LOW | samples/Pdf/21b_Pdf.php | 12 | $lorem = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dol | CODE |
| LOW | samples/Pdf/21b_Pdf.php | 12 | $lorem = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dol | CODE |
| LOW⚡ | samples/templates/sampleSpreadsheet2.php | 322 | // Llorem ipsum... | COMMENT |
| LOW⚡ | samples/templates/sampleSpreadsheet2.php | 323 | $sLloremIpsum = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus eget ante. Sed cursus nunc semper tor | CODE |
| LOW⚡ | samples/templates/sampleSpreadsheet2.php | 323 | $sLloremIpsum = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus eget ante. Sed cursus nunc semper tor | CODE |
| LOW⚡ | samples/templates/sampleSpreadsheet.php | 322 | // Llorem ipsum... | COMMENT |
| LOW⚡ | samples/templates/sampleSpreadsheet.php | 323 | $sLloremIpsum = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus eget ante. Sed cursus nunc semper tor | CODE |
| LOW⚡ | samples/templates/sampleSpreadsheet.php | 323 | $sLloremIpsum = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus eget ante. Sed cursus nunc semper tor | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | samples/bootstrap/js/jquery.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/PhpSpreadsheet/Reader/Xlsx.php | 2121 | // But in some cases, this attribute isn't set; so we need to delve a level deeper and look at | COMMENT |