microsoft / msphpsql
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 46 files with 20,513 lines of code.
    • 8 very long files (11,708 lines of code)
    • 6 long files (4,288 lines of code)
    • 9 medium size files (2,756 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,179 lines of code)
    • 15 very small files (582 lines of code)
57% | 20% | 13% | 5% | 2%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cpp66% | 23% | 6% | 2% | <1%
h41% | 17% | 25% | 8% | 6%
py0% | 0% | 54% | 32% | 12%
yml0% | 0% | 64% | 31% | 3%
hpp0% | 0% | 0% | 100% | 0%
php0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source60% | 22% | 11% | 4% | 1%
buildscripts0% | 0% | 54% | 32% | 12%
ROOT0% | 0% | 64% | 31% | 3%
sample0% | 0% | 0% | 0% | 100%
Longest Files (Top 46)
File# lines# units
core_stmt.cpp
in source/shared
2542 81
core_sqlsrv.h
in source/shared
1908 100
pdo_dbh.cpp
in source/pdo_sqlsrv
1456 18
stmt.cpp
in source/sqlsrv
1411 17
core_results.cpp
in source/shared
1167 36
FormattedPrint.cpp
in source/shared
1157 27
pdo_stmt.cpp
in source/pdo_sqlsrv
1062 25
conn.cpp
in source/sqlsrv
1005 17
localizationimpl.cpp
in source/shared
950 17
sal_def.h
in source/shared
787 -
core_conn.cpp
in source/shared
747 25
util.cpp
in source/sqlsrv
691 7
pdo_util.cpp
in source/pdo_sqlsrv
596 8
init.cpp
in source/sqlsrv
517 3
core_util.cpp
in source/shared
466 18
msodbcsql.h
in source/shared
328 -
buildtools.py
in buildscripts
326 25
globalization.h
in source/shared
304 14
297 -
php_sqlsrv_int.h
in source/sqlsrv
287 3
pdo_parser.cpp
in source/pdo_sqlsrv
285 13
php_pdo_sqlsrv_int.h
in source/pdo_sqlsrv
261 2
core_stream.cpp
in source/shared
202 2
pdo_init.cpp
in source/pdo_sqlsrv
200 4
builddrivers.py
in buildscripts
197 7
FormattedPrint.h
in source/shared
161 9
localization.hpp
in source/shared
159 10
147 -
xplat.h
in source/shared
110 -
xplat_winerror.h
in source/shared
104 -
StringFunctions.cpp
in source/shared
101 4
indexsymbols.py
in buildscripts
77 3
core_init.cpp
in source/shared
75 2
interlockedslist.h
in source/shared
75 5
php_sqlsrv.h
in source/sqlsrv
64 -
56 1
49 1
typedefs_for_linux.h
in source/shared
34 -
xplat_intsafe.h
in source/shared
30 -
version.h
in source/shared
27 -
xplat_winnls.h
in source/shared
24 -
php_pdo_sqlsrv.h
in source/pdo_sqlsrv
21 -
18 -
StringFunctions.h
in source/shared
11 -
interlockedatomic.h
in source/shared
11 -
interlockedatomic_gcc.h
in source/shared
10 1
Files With Most Units (Top 31)
File# lines# units
core_sqlsrv.h
in source/shared
1908 100
core_stmt.cpp
in source/shared
2542 81
core_results.cpp
in source/shared
1167 36
FormattedPrint.cpp
in source/shared
1157 27
buildtools.py
in buildscripts
326 25
pdo_stmt.cpp
in source/pdo_sqlsrv
1062 25
core_conn.cpp
in source/shared
747 25
pdo_dbh.cpp
in source/pdo_sqlsrv
1456 18
core_util.cpp
in source/shared
466 18
localizationimpl.cpp
in source/shared
950 17
conn.cpp
in source/sqlsrv
1005 17
stmt.cpp
in source/sqlsrv
1411 17
globalization.h
in source/shared
304 14
pdo_parser.cpp
in source/pdo_sqlsrv
285 13
localization.hpp
in source/shared
159 10
FormattedPrint.h
in source/shared
161 9
pdo_util.cpp
in source/pdo_sqlsrv
596 8
builddrivers.py
in buildscripts
197 7
util.cpp
in source/sqlsrv
691 7
interlockedslist.h
in source/shared
75 5
pdo_init.cpp
in source/pdo_sqlsrv
200 4
StringFunctions.cpp
in source/shared
101 4
indexsymbols.py
in buildscripts
77 3
init.cpp
in source/sqlsrv
517 3
php_sqlsrv_int.h
in source/sqlsrv
287 3
php_pdo_sqlsrv_int.h
in source/pdo_sqlsrv
261 2
core_init.cpp
in source/shared
75 2
core_stream.cpp
in source/shared
202 2
49 1
56 1
interlockedatomic_gcc.h
in source/shared
10 1
Files With Long Lines (Top 29)

There are 29 files with lines longer than 120 characters. In total, there are 667 long lines.

File# lines# units# long lines
core_sqlsrv.h
in source/shared
1908 100 101
core_stmt.cpp
in source/shared
2542 81 95
core_results.cpp
in source/shared
1167 36 71
pdo_util.cpp
in source/pdo_sqlsrv
596 8 53
util.cpp
in source/sqlsrv
691 7 49
pdo_dbh.cpp
in source/pdo_sqlsrv
1456 18 41
core_conn.cpp
in source/shared
747 25 39
stmt.cpp
in source/sqlsrv
1411 17 34
core_util.cpp
in source/shared
466 18 28
conn.cpp
in source/sqlsrv
1005 17 27
pdo_stmt.cpp
in source/pdo_sqlsrv
1062 25 24
php_sqlsrv_int.h
in source/sqlsrv
287 3 14
init.cpp
in source/sqlsrv
517 3 12
FormattedPrint.cpp
in source/shared
1157 27 11
147 - 10
297 - 10
buildtools.py
in buildscripts
326 25 9
php_pdo_sqlsrv_int.h
in source/pdo_sqlsrv
261 2 8
pdo_parser.cpp
in source/pdo_sqlsrv
285 13 7
localizationimpl.cpp
in source/shared
950 17 7
core_stream.cpp
in source/shared
202 2 5
core_init.cpp
in source/shared
75 2 3
builddrivers.py
in buildscripts
197 7 2
pdo_init.cpp
in source/pdo_sqlsrv
200 4 2
49 1 1
56 1 1
globalization.h
in source/shared
304 14 1
version.h
in source/shared
27 - 1
xplat_winerror.h
in source/shared
104 - 1