mozilla / mozilla-new-products-wp
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
txt
editorconfig
mo
ini
mjs
eslintignore
po
prettierignore
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main56999 LOC (82%) 300 files
test82 LOC (<1%) 2 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other12304 LOC (17%) 33 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mo
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 300 files match defined criteria (56,999 LOC, 100.0% vs. main code):
    • 194 *.php files (44,074 LOC)
    • 24 *.js files (6,240 LOC)
    • 6 *.css files (4,130 LOC)
    • 68 *.twig files (2,074 LOC)
    • 1 *.mo files (243 LOC)
    • 6 *.scss files (185 LOC)
    • 1 *.mjs files (53 LOC)
  • " *.php" is biggest, containing 77.32% of LOC.
  • " *.mjs" is smallest, containing 0.09% of LOC.


*.php44074 LOC (77%) 194 files
*.js6240 LOC (10%) 24 files
*.css4130 LOC (7%) 6 files
*.twig2074 LOC (3%) 68 files
*.mo243 LOC (<1%) 1 file
*.scss185 LOC (<1%) 6 files
*.mjs53 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
  • 2 files match defined criteria (82 LOC, 0.1% vs. main code):
    • 1 *.js files (75 LOC)
    • 1 *.php files (7 LOC)
  • " *.js" is biggest, containing 91.46% of LOC.
  • " *.php" is smallest, containing 8.54% of LOC.


*.js75 LOC (91%) 1 file
*.php7 LOC (8%) 1 file
Other Code
po
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]prettierignore".
  • 33 files match defined criteria (12,304 LOC, 21.6% vs. main code):
    • 1 *.po files (6,337 LOC)
    • 30 *.json files (3,762 LOC)
    • 1 *.txt files (2,053 LOC)
    • 1 *.md files (152 LOC)
  • " *.po" is biggest, containing 51.5% of LOC.
  • " *.md" is smallest, containing 1.24% of LOC.


*.po6337 LOC (51%) 1 file
*.json3762 LOC (30%) 30 files
*.txt2053 LOC (16%) 1 file
*.md152 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 20:00