repowiseprocessing/p5.js

Code health of processing/p5.js

Repowise scores processing/p5.js at 6.5 out of 10 for code health, which reads as fair, alongside maintainability 7.8 and static performance 9.8 on the same scale. There are 952 open findings across the three pillars, and the lowest-scoring file is p5.Renderer3D.js at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

101 critical, 185 high, 223 medium, 290 low.

Hotspots

47 files are flagged as hotspots. The top 5:

  • src/webgpu/p5.RendererWebGPU.js: 11 commits in the last 90 days from 7 contributors with 8 recent bug fixes
  • src/strands/strands_api.js: 6 commits in the last 90 days from 9 contributors with 7 recent bug fixes
  • test/unit/webgl/p5.Shader.js: 7 commits in the last 90 days from 12 contributors with 3 recent bug fixes
  • src/core/p5.Renderer3D.js: 19 commits in the last 90 days from 9 contributors with 4 recent bug fixes
  • src/shape/custom_shapes.js: 5 commits in the last 90 days from 6 contributors with 4 recent bug fixes

Lowest-scoring files

  • src/core/p5.Renderer3D.js: 1.0 out of 10 with 4 bug fixes in the last 180 days
  • src/core/p5.Renderer2D.js: 1.0 out of 10 with 4 bug fixes in the last 180 days
  • src/webgl/p5.RendererGL.js: 1.0 out of 10 with 2 bug fixes in the last 180 days
  • src/webgpu/strands_wgslBackend.js: 1.0 out of 10 with 3 bug fixes in the last 180 days
  • src/strands/strands_transpiler.js: 1.0 out of 10 with 3 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 16 had a bug fix in the last 180 days. Across all 1,299 scored files, 4.2% had a bug fix in that window.

Dead code and refactoring

Repowise found 46 unused exports. 65 refactoring targets across 65 files would raise the score.

More on p5.js: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language