firebase / quickstart-js
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 43% duplication:
    • 6,530 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,818 duplicated lines
  • 734 duplicates
system43% (2,818 lines)
Duplication per Extension
html59% (2,357 lines)
css37% (424 lines)
js2% (37 lines)
Duplication per Component (primary)
auth63% (2,313 lines)
functions/public50% (171 lines)
database45% (159 lines)
auth/chromextension53% (73 lines)
remote-config45% (47 lines)
messaging18% (38 lines)
storage19% (17 lines)
firestore/scripts0% (0 lines)
firestore0% (0 lines)
firestore/styles0% (0 lines)
auth/exampletokengenerator0% (0 lines)
functions/functions0% (0 lines)
database/scripts0% (0 lines)

Duplication Between Components (50+ lines)

G database database functions/public functions/public database--functions/public 316 auth/chromextension auth/chromextension auth auth auth/chromextension--auth 157 remote-config remote-config auth/chromextension--remote-config 62 messaging messaging auth/chromextension--messaging 62 auth--remote-config 107 auth--messaging 53 storage storage auth--storage 70 messaging--remote-config 76

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 734 duplicates...
Size#FoldersFilesLinesCode
87 x 2 auth
auth
phone-invisible.html
phone-visible.html
162:255 (34%)
170:263 (32%)
view
59 x 2 database
functions/public/styles
main.css
main.css
38:101 (21%)
50:113 (33%)
view
57 x 2 auth
auth
apple-popup.html
apple-redirect.html
101:167 (39%)
106:172 (37%)
view
54 x 2 auth
auth
phone-invisible.html
phone-visible.html
271:329 (21%)
292:350 (20%)
view
48 x 2 auth
auth
github-popup.html
google-popup.html
48:96 (47%)
48:96 (47%)
view
43 x 2 auth
auth
facebook-popup.html
github-popup.html
48:91 (42%)
48:91 (42%)
view
43 x 2 auth
auth
facebook-popup.html
google-popup.html
48:91 (42%)
48:91 (42%)
view
42 x 2 database
functions/public/styles
main.css
main.css
132:176 (15%)
124:168 (24%)
view
40 x 2 auth
auth
github-redirect.html
google-redirect.html
65:105 (36%)
65:105 (36%)
view
39 x 2 auth
auth
twitter-popup.html
twitter-redirect.html
83:133 (36%)
92:142 (33%)
view
39 x 2 auth
auth
microsoft-popup.html
microsoft-redirect.html
83:133 (37%)
91:141 (34%)
view
38 x 2 auth
auth
google-popup.html
google-redirect.html
80:129 (37%)
89:138 (34%)
view
38 x 2 auth
auth
facebook-popup.html
facebook-redirect.html
80:129 (37%)
89:138 (34%)
view
38 x 2 messaging
remote-config
main.css
main.css
17:54 (100%)
17:54 (100%)
view
38 x 2 auth
auth
github-popup.html
github-redirect.html
80:129 (37%)
89:138 (34%)
view
36 x 2 auth
auth
github-redirect.html
twitter-redirect.html
69:105 (32%)
72:108 (31%)
view
36 x 2 auth
auth
google-redirect.html
twitter-redirect.html
69:105 (32%)
72:108 (31%)
view
35 x 2 auth
auth
phone-invisible.html
phone-visible.html
85:134 (13%)
88:137 (13%)
view
35 x 2 auth
auth
facebook-redirect.html
github-redirect.html
65:100 (31%)
65:100 (31%)
view
35 x 2 auth
auth
facebook-redirect.html
google-redirect.html
65:100 (31%)
65:100 (31%)
view