Skip to main content

Total File, Folder & Line Counters

Summary

Track a full compilation footprint of your Joomla component โ€” including the total number of files, folders, and lines of generated code โ€” to assess component size, manage scope, and monitor growth over time.

๐Ÿงพ Whatโ€™s Included

Each time you compile a JCB component, the compiler records:

  • ๐Ÿ“„ Total number of generated files (PHP, XML, INI, JS, CSS, etc.)
  • ๐Ÿ“ Total number of folders created in the compiled output
  • ๐Ÿ“ Total number of lines of code (across all file types)

This includes core MVC files, templates, snippets, language files, helpers, updates, and installer scripts.

๐Ÿ“Œ Where You See It

  • ๐Ÿงฉ On the compiler summary screen post-build
  • ๐Ÿชต Included in the JSON metadata export (if enabled)
  • ๐Ÿ“ฆ Shown inline in build reports and CLI logs
  • โœ… Tracked historically in JCBโ€™s metadata tables for version comparison

๐Ÿ“Š Why It Matters

Knowing your componentโ€™s compiled footprint helps with:

  • Estimating deployment weight (file count, size)
  • Debugging version bloating or redundancy
  • Reviewing generated output against expectations
  • Monitoring build complexity over time

๐Ÿ›  Example Use Cases

  • A small plugin should generate < 30 files โ€” you notice 80? Review what's compiling.
  • Your component grows from 1,200 to 5,000 lines in a month โ€” analyze blueprint changes.
  • Rebuilding with fewer views โ€” did the compiled folders drop accordingly?

๐Ÿš€ Best Practices

  • Watch for unexpected file growth (especially under /views/ and /tmpl/)
  • Use counters to compare against previously compiled builds
  • Combine with per-view stats for deeper granularity

Conclusion

Total file/folder/line counters offer a quick but essential snapshot of your Joomla component's compiled output. Whether you're optimizing, auditing, or just monitoring growth, these stats provide high-level visibility into what your codebase truly consists of โ€” automatically, every time you compile.