hello i have question

sabapa

New member
Hi all,

I'm evaluating XenForo and I'm curious about the size of the current 2.3 codebase. Are there any figures (official or community-measured) for total lines of code, ideally broken down by language — PHP, JavaScript, LESS/CSS, and XML templates?

I've seen older phploc numbers from the 1.x days (around 400k PHP LOC including the framework), but nothing recent for 2.x. If anyone has run cloc/phploc on a recent install, I'd love to see the output.

Thanks!
 
Why do you care? It doesn't say anything about speed, efficiency, security or anything else.
Fair point — you're right that LOC doesn't measure quality, speed or security. I'm not trying to benchmark anything, I'm just genuinely curious about the scale of the project. XenForo has been around since 2010, got completely rewritten for 2.0, and keeps growing. Seeing the size (and how it's split across PHP / JS / LESS / templates) is just an interesting snapshot of the codebase for someone who finds that kind of thing fun to know. No deeper agenda.
 
Yeah not something we generally monitor but just ran it on a 2.3.9 install I have lying around (more of a shipped version than our development repo)

Code:
  ┌────────────┬────────┬─────────┐
  │  Language  │ Files  │  Code   │
  ├────────────┼────────┼─────────┤
  │ PHP        │  5,000 │ 587,755 │
  ├────────────┼────────┼─────────┤
  │ JavaScript │    311 │ 103,470 │
  ├────────────┼────────┼─────────┤
  │ XML        │     37 │  87,021 │
  ├────────────┼────────┼─────────┤
  │ JSON       │     86 │  45,040 │
  ├────────────┼────────┼─────────┤
  │ CSS        │      6 │  33,592 │
  ├────────────┼────────┼─────────┤
  │ Markdown   │    171 │  14,643 │
  ├────────────┼────────┼─────────┤
  │ SVG        │  7,875 │  10,998 │
  ├────────────┼────────┼─────────┤
  │ SCSS       │      2 │   3,738 │
  ├────────────┼────────┼─────────┤
  │ CSV        │      1 │   3,703 │
  ├────────────┼────────┼─────────┤
  │ (others)   │        │  ~2,100 │
  ├────────────┼────────┼─────────┤
  │ Total      │ 13,530 │ 891,987 │
  └────────────┴────────┴─────────┘
 
Back
Top Bottom