RepoTrust

Leaderboard github.com

leafo/scssphp

SCSS compiler written in PHP

  • View repository ↗
  • PHP
  • ★ 1,330
  • commit b9cdea3e42c3
  • scored 2026-11-14
  • scoring prov-5+qual-2+sec-2

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

  1. 2012-062,080 · 0% AI
  2. 2012-072,507 · 0% AI
  3. 2012-08149 · 0% AI
  4. 2012-1089 · 0% AI
  5. 2012-11462 · 0% AI
  6. 2012-123 · 0% AI
  7. 2013-011 · 0% AI
  8. 2013-02127 · 0% AI
  9. 2013-03264 · 0% AI
  10. 2013-04168 · 0% AI
  11. 2013-05320 · 0% AI
  12. 2013-0610 · 0% AI
  13. 2013-071 · 0% AI
  14. 2013-086 · 0% AI
  15. 2013-092 · 0% AI
  16. 2013-1011 · 0% AI
  17. 2013-1233 · 0% AI
  18. 2014-0117 · 0% AI
  19. 2014-0387 · 0% AI
  20. 2014-043 · 0% AI
  21. 2014-0532 · 0% AI
  22. 2014-07839 · 0% AI
  23. 2014-0811,345 · 0% AI
  24. 2014-102 · 0% AI
  25. 2014-110 · 0% AI
  26. 2014-1268 · 0% AI
  27. 2015-013 · 0% AI
  28. 2015-021 · 0% AI
  29. 2015-0439 · 0% AI
  30. 2015-05211 · 0% AI
  31. 2015-0610,493 · 0% AI
  32. 2015-07384 · 0% AI
  33. 2015-081,395 · 0% AI
  34. 2015-091,072 · 0% AI
  35. 2015-10358 · 0% AI
  36. 2015-112,252 · 0% AI
  37. 2015-121,279 · 0% AI
  38. 2016-0114 · 0% AI
  39. 2016-0268 · 0% AI
  40. 2016-0655 · 0% AI
  41. 2016-07148 · 0% AI
  42. 2016-083 · 0% AI
  43. 2016-0933 · 0% AI
  44. 2016-11113 · 0% AI
  45. 2017-0152 · 0% AI
  46. 2017-0213 · 0% AI
  47. 2017-038 · 0% AI
  48. 2017-081 · 0% AI
  49. 2017-091 · 0% AI
  50. 2017-1031 · 0% AI
  51. 2017-11580 · 0% AI
  52. 2017-12523 · 0% AI
  53. 2018-0251 · 0% AI
  54. 2018-031 · 0% AI
  55. 2018-0413 · 0% AI
  56. 2018-0528 · 0% AI
  57. 2018-0640 · 0% AI
  58. 2018-076 · 0% AI
  59. 2018-0817 · 0% AI
  60. 2018-0954 · 0% AI
  61. 2018-10376 · 0% AI
  62. 2019-0348 · 0% AI
  63. 2019-04775 · 0% AI
  64. 2019-051,113 · 0% AI
  65. 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
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
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
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

SeverityRuleLocationMessageTool
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.

AnalyzerPillarStatusVersionFindingsNote
AI tool configurationAI provenanceoksignatures-v10
Explicit AI attributionAI provenanceoksignatures-v10
Release velocityAI provenanceokprov-40
Coding styleAI provenanceok—0
Commit velocityAI provenanceokprov-40
Complexity (lizard)Code qualityoklizard 1.25.10
DocumentationCode qualityok—0
Duplication (jscpd)Code qualityokrepotrust-dup-w60
LintCode qualityokopengrep 1.33.1; rules f1d2b562b4140
Tests and CICode qualityok—0
Type safetyCode qualityskipped—0
CI workflows (zizmor)Securityskipped—0
Dependencies (osv-scanner)Securityskipped—0
Release downloadsSecurityok—0
Security postureSecurityok—0
Package registriesSecurityskipped—0no registry dependencies declared
Static analysis (opengrep)Securityokopengrep 1.33.1; rules f1d2b562b4149
OpenSSF ScorecardSecurityokscorecard v5.6.00
Secrets (gitleaks)Securityokgitleaks 8.30.10

Score history

Scores from different scoring versions aren't directly comparable.

ScoredCommitScoringAI provenanceQualitySecurity
2026-11-14b9cdea3e42c3prov-5+qual-2+sec-20%6669
2026-11-14b9cdea3e42c3prov-4+qual-2+sec-20%6669

Embed a badge

Maintainers can show these in a README. Badges update when the repository is re-scored.

[![RepoTrust ai](https://repotrust.synapticcyber.com/badge/github.com/leafo/scssphp/ai.svg)](https://repotrust.synapticcyber.com/r/github.com/leafo/scssphp/)
[![RepoTrust quality](https://repotrust.synapticcyber.com/badge/github.com/leafo/scssphp/quality.svg)](https://repotrust.synapticcyber.com/r/github.com/leafo/scssphp/)
[![RepoTrust security](https://repotrust.synapticcyber.com/badge/github.com/leafo/scssphp/security.svg)](https://repotrust.synapticcyber.com/r/github.com/leafo/scssphp/)
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:

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