Leaderboard github.com
leafo/scssphp
SCSS compiler written in PHP
AI provenance
0%
none-detected
- Confidence
- 65%
- Coverage
- 100%
Estimated share of AI-generated code. Explicit attribution is a lower bound.
Code quality
66/100
adequate
- Confidence
- 90%
- Coverage
- 100%
Complexity, duplication, lint density, tests, CI, docs and review process.
Security
69/100
weak
- Confidence
- 85%
- Coverage
- 100%
Secrets, static analysis, vulnerable dependencies, CI and supply-chain posture.
AI provenance
0% none-detected
No AI attribution or AI-consistent velocity signals detected.
How the score is built
- Explicitly attributed share0%
- Unattributed share in AI-pace bursts0%
- Estimated AI-generated share0%
- AI tool configuration files0
- Work sessions at AI pace0
- Releases at AI pace0
- Coding-style index (1.0+ means possible)0.00
Lines added per month all AI-attributed share
- 2012-062,080 · 0% AI
- 2012-072,507 · 0% AI
- 2012-08149 · 0% AI
- 2012-1089 · 0% AI
- 2012-11462 · 0% AI
- 2012-123 · 0% AI
- 2013-011 · 0% AI
- 2013-02127 · 0% AI
- 2013-03264 · 0% AI
- 2013-04168 · 0% AI
- 2013-05320 · 0% AI
- 2013-0610 · 0% AI
- 2013-071 · 0% AI
- 2013-086 · 0% AI
- 2013-092 · 0% AI
- 2013-1011 · 0% AI
- 2013-1233 · 0% AI
- 2014-0117 · 0% AI
- 2014-0387 · 0% AI
- 2014-043 · 0% AI
- 2014-0532 · 0% AI
- 2014-07839 · 0% AI
- 2014-0811,345 · 0% AI
- 2014-102 · 0% AI
- 2014-110 · 0% AI
- 2014-1268 · 0% AI
- 2015-013 · 0% AI
- 2015-021 · 0% AI
- 2015-0439 · 0% AI
- 2015-05211 · 0% AI
- 2015-0610,493 · 0% AI
- 2015-07384 · 0% AI
- 2015-081,395 · 0% AI
- 2015-091,072 · 0% AI
- 2015-10358 · 0% AI
- 2015-112,252 · 0% AI
- 2015-121,279 · 0% AI
- 2016-0114 · 0% AI
- 2016-0268 · 0% AI
- 2016-0655 · 0% AI
- 2016-07148 · 0% AI
- 2016-083 · 0% AI
- 2016-0933 · 0% AI
- 2016-11113 · 0% AI
- 2017-0152 · 0% AI
- 2017-0213 · 0% AI
- 2017-038 · 0% AI
- 2017-081 · 0% AI
- 2017-091 · 0% AI
- 2017-1031 · 0% AI
- 2017-11580 · 0% AI
- 2017-12523 · 0% AI
- 2018-0251 · 0% AI
- 2018-031 · 0% AI
- 2018-0413 · 0% AI
- 2018-0528 · 0% AI
- 2018-0640 · 0% AI
- 2018-076 · 0% AI
- 2018-0817 · 0% AI
- 2018-0954 · 0% AI
- 2018-10376 · 0% AI
- 2019-0348 · 0% AI
- 2019-04775 · 0% AI
- 2019-051,113 · 0% AI
- 2019-06905 · 0% AI
Evidence by analyzer
Explicit AI attributionok
- attributed_commit_share
- 0.0%
- attributed_commits
- 0
- attributed_loc
- 0
- attributed_loc_share
- 0.0%
- commits
- 989
- effective_loc
- 41,183
- tools_detected
- 0
AI tool configurationok
- artifacts
- 0
- tools_configured
- 0
- workflow_agents
- 0
Commit velocityok
- excluded_import_loc
- 0
- flagged_loc
- 0
- flagged_loc_share
- 0.0%
- flagged_units
- 0
- max_loc_per_hour
- 1,473.75
- measured_loc
- 41,183
- median_loc_per_hour
- 58.45
- pr_timed_units
- 6
- pre_ai_era_burst_loc
- 19,297
- pre_ai_era_bursts
- 4
- pre_ai_era_measured_loc
- 41,183
- work_units
- 505
Release velocityok
- flagged_releases
- 0
- max_loc_per_day
- 6,120
- releases
- 53
Coding styleok
- count:assistant_voice
- 0
- count:emoji_in_code
- 0
- count:narrated_steps
- 0
- count:placeholder
- 0
- files:assistant_voice
- 0
- files:emoji_in_code
- 0
- files:narrated_steps
- 0
- files:placeholder
- 0
- index
- 0
- lines_scanned
- 13,047
- per_kloc:assistant_voice
- 0
- per_kloc:emoji_in_code
- 0
- per_kloc:narrated_steps
- 0
- per_kloc:placeholder
- 0
Code quality
66 adequate
Code quality is adequate: test-to-source ratio 0.40, CI runs tests; 25% of function code in complex or long functions; 5% duplicated lines. Weakest area: process.
How the score is built
- Complexity47
- Duplication72
- Lint and smells100
- Tests and CI76
- Documentation65
- Type safetynot measured
- Review process20
Evidence by analyzer
Complexity (lizard)ok10 items
- Parser::parseChunk in src/Parser.php: complexity 132, 310 lines
- Compiler::compileChild in src/Compiler.php: complexity 106, 307 lines
- Compiler::reduce in src/Compiler.php: complexity 64, 136 lines
- Parser::selectorSingle in src/Parser.php: complexity 54, 143 lines
- Parser::value in src/Parser.php: complexity 41, 101 lines
- Compiler::compileValue in src/Compiler.php: complexity 33, 104 lines
- Compiler::compileMediaQuery in src/Compiler.php: complexity 28, 91 lines
- Compiler::applyArguments in src/Compiler.php: complexity 27, 91 lines
- Compiler::matchExtends in src/Compiler.php: complexity 23, 75 lines
- Compiler::compile in src/Compiler.php: complexity 22, 76 lines
- complex_functions
- 15
- function_nloc
- 6,768
- functions
- 393
- long_functions
- 6
- many_param_functions
- 0
- mean_ccn
- 5.24
- p90_ccn
- 10
- risky_nloc_share
- 25.1%
Duplication (jscpd)ok10 items
- 6+ duplicated lines: src/Block.php:1 and src/Cache.php:1
- 6+ duplicated lines: src/Block.php:37 and src/Node.php:27
- 6+ duplicated lines: src/Compiler.php:853 and src/Compiler.php:1304
- 6+ duplicated lines: src/Exception/CompilerException.php:1 and src/Exception/ParserException.php:1
- 6+ duplicated lines: src/Formatter.php:147 and src/Formatter/Compressed.php:56
- 6+ duplicated lines: src/Formatter.php:195 and src/Formatter/Nested.php:128
- 6+ duplicated lines: src/Formatter/Compact.php:1 and src/Formatter/Compressed.php:1
- 6+ duplicated lines: src/Formatter/Compressed.php:25 and src/Formatter/Crunched.php:25
- 6+ duplicated lines: src/Formatter/Debug.php:31 and src/Formatter/Nested.php:36
- 6+ duplicated lines: src/Formatter/Expanded.php:25 and src/Formatter/Nested.php:30
- compared_lines
- 7,239
- duplicated_lines
- 387
- duplicated_share
- 5.3%
- files
- 30
Lintok
- findings
- 0
- scanned_lines
- 13,047
- weighted_findings
- 0
Tests and CIok2 items
- CI config: .travis.yml
.travis.yml - CI runs tests (phpunit)
- check:ci_present
- yes
- check:ci_runs_lint
- no
- check:ci_runs_tests
- yes
- check:has_tests
- yes
- check:test_ratio
- no
- check:tests_cochange
- no
- ci_files
- 1
- cochange_commits
- 226
- cochange_share
- 2.2%
- source_lines
- 13,047
- test_lines
- 5,210
- test_ratio
- 0.40
Documentationok2 items
- README.md
README.md - LICENSE.md
LICENSE.md
- check:changelog
- no
- check:contributing
- no
- check:license
- yes
- check:readme
- yes
- readme_lines
- 29
Type safetyskipped
Security
69 weak
Security posture is weak: 5 high-severity SAST findings. Weakest area: posture.
How the score is built
- Secrets100
- Static analysis (SAST)88
- Vulnerable dependenciesnot measured
- CI workflowsnot measured
- Security posture0
- OpenSSF Scorecard25
Evidence by analyzer
OpenSSF Scorecardok9 items
- Scorecard Maintained: 0/10 (0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0)
- Scorecard Binary-Artifacts: 10/10 (no binaries found in the repo)
- Scorecard Code-Review: 4/10 (Found 5/11 approved changesets -- score normalized to 4)
- Scorecard CII-Best-Practices: 0/10 (no effort to earn an OpenSSF best practices badge detected)
- Scorecard Security-Policy: 0/10 (security policy file not detected)
- Scorecard Fuzzing: 0/10 (project is not fuzzed)
- Scorecard License: 10/10 (license file detected)
- Scorecard Branch-Protection: 0/10 (branch protection not enabled on development/release branches)
- Scorecard SAST: 0/10 (SAST tool is not run on all commits -- score normalized to 0)
- aggregate
- 2.60
- check:Binary-Artifacts
- yes
- check:Branch-Protection
- no
- check:CII-Best-Practices
- no
- check:Code-Review
- yes
- check:Fuzzing
- no
- check:License
- yes
- check:Maintained
- no
- check:SAST
- no
- check:Security-Policy
- no
Package registriesskipped
no registry dependencies declared
Secrets (gitleaks)ok
- secrets_current
- 0
- secrets_history
- 0
- secrets_low_confidence
- 0
- secrets_nonprod
- 0
Static analysis (opengrep)ok
- findings
- 9
- findings_high
- 5
- findings_low
- 0
- findings_medium
- 4
- parse_errors
- 0
- scanned_lines
- 13,047
- weighted_findings
- 4.75
Dependencies (osv-scanner)skipped
CI workflows (zizmor)skipped
Security postureok1 item
- composer.json has no lockfile alongside it (unpinned dependencies)
composer.json
- check:dependency_updates
- no
- check:lockfiles
- no
- check:security_policy
- no
- check:signed_commits
- no
- signed_commit_share
- 2.0%
- unpinned_manifests
- 1
Release downloadsok
- binary_assets
- 0
- signals
- 0
- suspicious
- 0
Findings
5 high4 medium
| Severity | Rule | Location | Message | Tool |
|---|---|---|---|---|
| high | opengrep/php.lang.security.weak-crypto |
example/Server.php:103 | Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] | Static analysis (opengrep) |
| high | opengrep/php.lang.security.weak-crypto |
example/Server.php:212 | Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] | Static analysis (opengrep) |
| high | opengrep/php.lang.security.weak-crypto |
src/Cache.php:161 | Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] | Static analysis (opengrep) |
| high | opengrep/php.lang.security.weak-crypto |
src/Compiler.php:206 | Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] | Static analysis (opengrep) |
| high | opengrep/php.lang.security.weak-crypto |
src/Parser.php:158 | Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] | Static analysis (opengrep) |
| medium | opengrep/php.lang.security.unserialize-use |
example/Server.php:135 | Calling `unserialize()` with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers). [confidence low] | Static analysis (opengrep) |
| medium | opengrep/php.lang.security.unserialize-use |
src/Cache.php:109 | Calling `unserialize()` with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers). [confidence low] | Static analysis (opengrep) |
| medium | opengrep/php.lang.security.unlink-use |
src/Cache.php:236 | Using user input when deleting files with `unlink()` is potentially dangerous. A malicious actor could use this to modify or access files they have no right to. [confidence low] | Static analysis (opengrep) |
| medium | opengrep/php.lang.security.unserialize-use |
src/Compiler.php:459 | Calling `unserialize()` with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers). [confidence low] | Static analysis (opengrep) |
Tools and coverage
Every analyzer that ran on this commit. A failed or skipped tool is a coverage gap: its share of the score is left out and the coverage figure drops.
| Analyzer | Pillar | Status | Version | Findings | Note |
|---|---|---|---|---|---|
| AI tool configuration | AI provenance | ok | signatures-v1 | 0 | |
| Explicit AI attribution | AI provenance | ok | signatures-v1 | 0 | |
| Release velocity | AI provenance | ok | prov-4 | 0 | |
| Coding style | AI provenance | ok | — | 0 | |
| Commit velocity | AI provenance | ok | prov-4 | 0 | |
| Complexity (lizard) | Code quality | ok | lizard 1.25.1 | 0 | |
| Documentation | Code quality | ok | — | 0 | |
| Duplication (jscpd) | Code quality | ok | repotrust-dup-w6 | 0 | |
| Lint | Code quality | ok | opengrep 1.33.1; rules f1d2b562b414 | 0 | |
| Tests and CI | Code quality | ok | — | 0 | |
| Type safety | Code quality | skipped | — | 0 | |
| CI workflows (zizmor) | Security | skipped | — | 0 | |
| Dependencies (osv-scanner) | Security | skipped | — | 0 | |
| Release downloads | Security | ok | — | 0 | |
| Security posture | Security | ok | — | 0 | |
| Package registries | Security | skipped | — | 0 | no registry dependencies declared |
| Static analysis (opengrep) | Security | ok | opengrep 1.33.1; rules f1d2b562b414 | 9 | |
| OpenSSF Scorecard | Security | ok | scorecard v5.6.0 | 0 | |
| Secrets (gitleaks) | Security | ok | gitleaks 8.30.1 | 0 |
Score history
Scores from different scoring versions aren't directly comparable.
| Scored | Commit | Scoring | AI provenance | Quality | Security |
|---|---|---|---|---|---|
| 2026-11-14 | b9cdea3e42c3 | prov-5+qual-2+sec-2 | 0% | 66 | 69 |
| 2026-11-14 | b9cdea3e42c3 | prov-4+qual-2+sec-2 | 0% | 66 | 69 |
Full text report
- Repository: https://github.com/leafo/scssphp
- Commit:
b9cdea3e42c3bcb1a9faafd04ccce4e8ec860ad9 - Generated: 2026-11-14T14:52:06+00:00
- Scorer 0.1.0, scoring prov-5+qual-2+sec-2, report schema v2
Scores
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 0 | none-detected | 65% | 100% |
| Code quality | 66 | adequate | 90% | 100% |
| Security | 69 | weak | 85% | 100% |
AI provenance
No AI attribution or AI-consistent velocity signals detected.
- Explicitly attributed share (lower bound): 0.0%
- Unattributed share in AI-consistent velocity bursts: 0.0%
- Estimated AI-generated share: 0.0%
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2018-03 | 1 | 0% |
| 2018-04 | 13 | 0% |
| 2018-05 | 28 | 0% |
| 2018-06 | 40 | 0% |
| 2018-07 | 6 | 0% |
| 2018-08 | 17 | 0% |
| 2018-09 | 54 | 0% |
| 2018-10 | 376 | 0% |
| 2019-03 | 48 | 0% |
| 2019-04 | 775 | 0% |
| 2019-05 | 1,113 | 0% |
| 2019-06 | 905 | 0% |
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is adequate: test-to-source ratio 0.40, CI runs tests; 25% of function code in complex or long functions; 5% duplicated lines. Weakest area: process.
| Area | Score |
|---|---|
| Complexity (lizard) | 47 |
| Duplication | 72 |
| Code smells (Opengrep) | 100 |
| Tests and CI | 76 |
| Documentation | 65 |
| Type safety | n/a |
| Process (Scorecard review/maintenance) | 20 |
- Functions: 393; mean complexity 5.2, 90th percentile 10; 15 complex and 6 long functions
- Duplicated lines: 5.3% of 7,239 compared
- Tests: 5,210 test lines for 13,047 source lines (ratio 0.40); CI test commands: phpunit; 2% of recent source commits also change tests
- Docs missing or thin: contributing, changelog
Most complex functions:
- Parser::parseChunk in src/Parser.php: complexity 132, 310 lines
- Compiler::compileChild in src/Compiler.php: complexity 106, 307 lines
- Compiler::reduce in src/Compiler.php: complexity 64, 136 lines
- Parser::selectorSingle in src/Parser.php: complexity 54, 143 lines
- Parser::value in src/Parser.php: complexity 41, 101 lines
Security
Security posture is weak: 5 high-severity SAST findings. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 88 |
| Vulnerable dependencies (OSV) | n/a |
| CI workflows (zizmor) | n/a |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | 25 |
- Posture checks passed: none; missing: security policy, dependency updates, signed commits, lockfiles
- OpenSSF Scorecard aggregate: 2.6/10 (published 2026-11-09)
Top findings
| Severity | Finding | Location |
|---|---|---|
| high | opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] |
example/Server.php:103 |
| high | opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] |
example/Server.php:212 |
| high | opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] |
src/Cache.php:161 |
| high | opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] |
src/Compiler.php:206 |
| high | opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] |
src/Parser.php:158 |
| medium | opengrep/php.lang.security.unserialize-use: Calling unserialize() with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers). [confidence low] |
example/Server.php:135 |
| medium | opengrep/php.lang.security.unserialize-use: Calling unserialize() with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers). [confidence low] |
src/Cache.php:109 |
| medium | opengrep/php.lang.security.unlink-use: Using user input when deleting files with unlink() is potentially dangerous. A malicious actor could use this to modify or access files they have no right to. [confidence low] |
src/Cache.php:236 |
| medium | opengrep/php.lang.security.unserialize-use: Calling unserialize() with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers). [confidence low] |
src/Compiler.php:459 |
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 13,047; test lines: 5,210
| Language | Lines |
|---|---|
| PHP | 13,994 |
| Ruby | 4,238 |
| Shell | 25 |