Skip to main content

Track Last Build, Size, Line Count, Field Count

๐Ÿ“Š Summary

JCB automatically records and displays key build metrics โ€” such as the most recent build time, total line count, field count, and compiled file size โ€” so you can monitor project complexity and performance at a glance.

๐Ÿงฎ What It Tracks

Every time you compile a component in Joomla Component Builder (JCB), the system logs build-related metadata that gives you insight into:

  • โฑ๏ธ Last Build Timestamp โ€” when the component was last successfully compiled
  • ๐Ÿ“ฆ File Size โ€” size of the generated ZIP package
  • ๐Ÿ“„ Line Count โ€” number of lines across compiled PHP/HTML/INI files
  • ๐Ÿง  Field Count โ€” total number of custom-defined fields across Admin Views
  • ๐Ÿงฑ View Count โ€” total Admin, Site, and Custom Admin Views used
  • ๐Ÿ“ File/Folder Counts โ€” number of files and folders output during build

This helps you estimate the size, complexity, and growth of your component over time.

๐Ÿงญ Where It Appears

  • ๐Ÿ“˜ At the bottom of the compiled README (if enabled)
  • ๐Ÿงฉ Inside the Compilerโ€™s summary output screen
  • ๐Ÿ“„ In the Component metadata page inside JCB
  • ๐Ÿ“ค Optional: exported via metadata.json file alongside builds

๐Ÿ” Use Cases

  • Track how your component grows in complexity over time
  • Compare different blueprint versions to see what's changed
  • Monitor field bloat or layout overuse during iterative development
  • Debug performance issues (large views or excessive custom logic)

๐Ÿ“˜ Pro Tip

Pair this feature with version-aware changelogs to gain insight into what triggered increases in line count or file generation between versions.

โœ… Why It Matters

These metrics provide a lightweight yet powerful form of component observability. They help you answer questions like:

  • โ€œWhen did this component last compile?โ€
  • โ€œHow big is the output ZIP?โ€
  • โ€œHow many fields/views are we managing?โ€
  • โ€œAre we trending toward over-complexity?โ€

This fosters awareness and helps teams keep Joomla components lean, efficient, and well-structured.

๐Ÿ“ Conclusion

Component metrics arenโ€™t just for curiosity โ€” they are essential for healthy long-term project maintenance. With JCBโ€™s automated tracking of build statistics, you always know where your component stands.