Loading...
 

Source Lines of Code

Tiki ships with approx 1M lines of code.

The Tiki project re-uses a lot of code from various external libraries so a quick guesstimate is that less than half of the code shipped in Tiki is maintained by the Tiki community and the rest is Standing on the shoulders of giants. For example, Zend Framework (which is bundled in Tiki) is 400k+ LOCs.

We always upstream patches when we find issues. There is a discussion on how to reduce disk space.

File count of the zip file

12.2

  • Total: 14 803 Files, 1 979 Folders
  • Included from other projects (/vendor & /vendor_extra): 7511 Files, 1316 Folders
  • Maintained by the Tiki community: 7,292 Files, 663 Folders

CLOC

http://cloc.sourceforge.net/

12.0

These stats seems wrong (too low) Marc Laporte

D:\cloc>cloc-1.60.exe tiki-12.0
    4448 text files.
    4009 unique files.
    1786 files ignored.

http://cloc.sourceforge.net v 1.60  T=15.53 s (180.5 files/s, 39038.1 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
PHP                           2059          51615         105234         308285
Javascript                     128           6496           7153          44897
CSS                            139           9834           3275          42634
SQL                            424           1000             43          19112
XML                             26             26              2           1250
Bourne Shell                     2            135            144            866
XSD                              8            125            108            755
Pascal                           2            171           1661            750
HTML                            12             80             23            374
ActionScript                     1              7             12             51
ASP.Net                          2              0              0             22
-------------------------------------------------------------------------------
SUM:                          2803          69489         117655         418996
-------------------------------------------------------------------------------

7.0

D:\cloc>cloc-1.53.exe tiki-7.0.RC1
    8768 text files.
    8354 unique files.
    1265 files ignored.

http://cloc.sourceforge.net v 1.53  T=614.0 s (11.6 files/s, 2856.3 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
PHP                           5197         110589         346616         756290
XML                            526            820             34         239020
Javascript                     712          20156          22145         129987
CSS                            243          10637           7181          54734
HTML                           105           4795           1521          30230
SQL                            330           1035             85          13524
XSD                             12            197             74           1672
XSLT                             6            176             46            800
ASP                              1            129            347            479
Bourne Shell                     2             33             26            170
DTD                              2              0              0             82
ASP.Net                          4              0              0             61
ActionScript                     1              8             21             47
-------------------------------------------------------------------------------
SUM:                          7141         148575         378096        1227096
-------------------------------------------------------------------------------

6.3

D:\cloc>cloc-1.53.exe tiki-6.3
    8131 text files.
    7804 unique files.
    1208 files ignored.

http://cloc.sourceforge.net v 1.53  T=653.0 s (10.2 files/s, 2426.6 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
PHP                           4939         104360         331078         706592
XML                            512            565              2         237210
Javascript                     606          10802          11649          64287
CSS                            205           9618           6456          49171
HTML                            77           4263           1808          28444
SQL                            294           1001             86          12800
XSD                             12            197             74           1672
XSLT                             6            176             46            800
ASP                              1            129            347            479
Bourne Shell                     3             37             25            185
DTD                              2              0              0             82
ASP.Net                          4              0              0             61
ActionScript                     1              8             21             47
-------------------------------------------------------------------------------
SUM:                          6662         131156         351592        1101830
-------------------------------------------------------------------------------

3.8

D:\cloc>cloc-1.53.exe tikiwiki-3.8
    6297 text files.
    5978 unique files.
    1087 files ignored.

http://cloc.sourceforge.net v 1.53  T=493.0 s (10.1 files/s, 3183.4 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
PHP                           3537          86137         474385         547665
XML                            485            150            147         204961
Javascript                     563          17563          25267          95743
CSS                            161           6479           3258          35348
SQL                             95           8151            308          29780
HTML                           101           4170           1746          26088
XSLT                             8            200             53            988
Bourne Shell                     3             39             14            150
Perl                             1             26             20            135
ColdFusion                       1             24             23            101
XSD                              1             28             28             98
DTD                              2              0              0             82
ActionScript                     1              8             21             47
-------------------------------------------------------------------------------
SUM:                          4959         122975         505270         941186
-------------------------------------------------------------------------------

Zend Framework

This is

D:\cloc>cloc-1.53.exe tiki-6.3\tiki-6.3\lib\core\Zend
    2736 text files.
    2736 unique files.
       9 files ignored.

http://cloc.sourceforge.net v 1.53  T=232.0 s (11.8 files/s, 2933.1 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
XML                            475            188              0         233973
PHP                           2244          44310         200648         200024
XSD                              5            108              6           1058
SQL                              3             36             57             71
-------------------------------------------------------------------------------
SUM:                          2727          44642         200711         435126
-------------------------------------------------------------------------------

PHPLOC

1.9.11

First release of the 1.9.x series: 2005-04

phploc of Tiki 1.9.11
$ php phploc.phar tikiwiki-1.9.11/
phploc 1.7.1 by Sebastian Bergmann.

Directories:                                        270
Files:                                             1414

Lines of Code (LOC):                             454555
  Cyclomatic Complexity / Lines of Code:           0.14
Comment Lines of Code (CLOC):                    232297
Non-Comment Lines of Code (NCLOC):               222258

Namespaces:                                           0
Interfaces:                                           0
Traits:                                               0
Classes:                                            475
  Abstract:                                           0 (0.00%)
  Concrete:                                         475 (100.00%)
  Average Class Length (NCLOC):                     237
Methods:                                           5627
  Scope:
    Non-Static:                                    5627 (100.00%)
    Static:                                           0 (0.00%)
  Visibility:
    Public:                                        5626 (99.98%)
    Non-Public:                                       1 (0.02%)
  Average Method Length (NCLOC):                     20
  Cyclomatic Complexity / Number of Methods:       4.01

Anonymous Functions:                                  3
Functions:                                          634

Constants:                                          498
  Global constants:                                 498
  Class constants:                                    0

2.4

First release of the 2.x series: 2008-08

phploc of Tiki 2.4
$ php phploc.phar tikiwiki-2.4/
phploc 1.7.1 by Sebastian Bergmann.

Directories:                                        403
Files:                                             2017

Lines of Code (LOC):                             685005
  Cyclomatic Complexity / Lines of Code:           0.21
Comment Lines of Code (CLOC):                    433053
Non-Comment Lines of Code (NCLOC):               251952

Namespaces:                                           0
Interfaces:                                           1
Traits:                                               0
Classes:                                           1021
  Abstract:                                           7 (0.69%)
  Concrete:                                        1014 (99.31%)
  Average Class Length (NCLOC):                     199
Methods:                                           9485
  Scope:
    Non-Static:                                    9461 (99.75%)
    Static:                                          24 (0.25%)
  Visibility:
    Public:                                        9219 (97.20%)
    Non-Public:                                     266 (2.80%)
  Average Method Length (NCLOC):                     21
  Cyclomatic Complexity / Number of Methods:       4.53

Anonymous Functions:                                  4
Functions:                                         1005

Constants:                                         1041
  Global constants:                                 953
  Class constants:                                   88

3.9

First release of the 3.x series: 2009-05

phploc of Tiki 3.9
$ php phploc.phar tikiwiki-3.9/
phploc 1.7.1 by Sebastian Bergmann.

Directories:                                        707
Files:                                             3607

Lines of Code (LOC):                            1108169
  Cyclomatic Complexity / Lines of Code:           0.22
Comment Lines of Code (CLOC):                    764386
Non-Comment Lines of Code (NCLOC):               343783

Namespaces:                                           0
Interfaces:                                          58
Traits:                                               0
Classes:                                           2573
  Abstract:                                         138 (5.36%)
  Concrete:                                        2435 (94.64%)
  Average Class Length (NCLOC):                     148
Methods:                                          20287
  Scope:
    Non-Static:                                   19484 (96.04%)
    Static:                                         803 (3.96%)
  Visibility:
    Public:                                       17835 (87.91%)
    Non-Public:                                    2452 (12.09%)
  Average Method Length (NCLOC):                     18
  Cyclomatic Complexity / Number of Methods:       3.68

Anonymous Functions:                                  3
Functions:                                         1200

Constants:                                         4244
  Global constants:                                 950
  Class constants:                                 3294

4.3

First release of the 4.x series: 2009-11

phloc of Tiki 4.3
$ php phploc.phar tikiwiki-4.3/
phploc 1.7.1 by Sebastian Bergmann.

Directories:                                        826
Files:                                             4275

Lines of Code (LOC):                            1285693
  Cyclomatic Complexity / Lines of Code:           0.23
Comment Lines of Code (CLOC):                    923936
Non-Comment Lines of Code (NCLOC):               361757

Namespaces:                                           0
Interfaces:                                         107
Traits:                                               0
Classes:                                           3304
  Abstract:                                         184 (5.57%)
  Concrete:                                        3120 (94.43%)
  Average Class Length (NCLOC):                     135
Methods:                                          24378
  Scope:
    Non-Static:                                   23267 (95.44%)
    Static:                                        1111 (4.56%)
  Visibility:
    Public:                                       21147 (86.75%)
    Non-Public:                                    3231 (13.25%)
  Average Method Length (NCLOC):                     18
  Cyclomatic Complexity / Number of Methods:       3.55

Anonymous Functions:                                  3
Functions:                                         1538

Constants:                                         4648
  Global constants:                                 945
  Class constants:                                 3703

5.4

First release of the 5.x series: 2010-06

phloc of Tiki 5.4
$ php phploc.phar tiki-5.4/
phploc 1.7.1 by Sebastian Bergmann.

Directories:                                       1011
Files:                                             5133

Lines of Code (LOC):                            1110368
  Cyclomatic Complexity / Lines of Code:           0.12
Comment Lines of Code (CLOC):                    378203
Non-Comment Lines of Code (NCLOC):               732165

Namespaces:                                           0
Interfaces:                                         136
Traits:                                               0
Classes:                                           3914
  Abstract:                                         229 (5.85%)
  Concrete:                                        3685 (94.15%)
  Average Class Length (NCLOC):                     130
Methods:                                          28069
  Scope:
    Non-Static:                                   26671 (95.02%)
    Static:                                        1398 (4.98%)
  Visibility:
    Public:                                       23927 (85.24%)
    Non-Public:                                    4142 (14.76%)
  Average Method Length (NCLOC):                     18
  Cyclomatic Complexity / Number of Methods:       3.48

Anonymous Functions:                                  3
Functions:                                         1724

Constants:                                         5067
  Global constants:                                1002
  Class constants:                                 4065

6.8

First release of the 6.x series: 2010-11

phloc of Tiki 6.8
$ php phploc.phar tiki-6.8/
phploc 1.7.1 by Sebastian Bergmann.

Directories:                                        976
Files:                                             5236

Lines of Code (LOC):                            1181233
  Cyclomatic Complexity / Lines of Code:           0.12
Comment Lines of Code (CLOC):                    396085
Non-Comment Lines of Code (NCLOC):               785148

Namespaces:                                           0
Interfaces:                                         138
Traits:                                               0
Classes:                                           4251
  Abstract:                                         236 (5.55%)
  Concrete:                                        4015 (94.45%)
  Average Class Length (NCLOC):                     128
Methods:                                          29608
  Scope:
    Non-Static:                                   28100 (94.91%)
    Static:                                        1508 (5.09%)
  Visibility:
    Public:                                       25226 (85.20%)
    Non-Public:                                    4382 (14.80%)
  Average Method Length (NCLOC):                     18
  Cyclomatic Complexity / Number of Methods:       3.49

Anonymous Functions:                                  5
Functions:                                         1795

Constants:                                         5666
  Global constants:                                 965
  Class constants:                                 4701

7.2

First release of the 7.x series: 2011-06

phploc of Tiki 7.2
$ php phploc.phar tiki-7.2
phploc 1.7.1 by Sebastian Bergmann.

Directories:                                       1018
Files:                                             5461

Lines of Code (LOC):                            1221220
  Cyclomatic Complexity / Lines of Code:           0.12
Comment Lines of Code (CLOC):                    402302
Non-Comment Lines of Code (NCLOC):               818918

Namespaces:                                           0
Interfaces:                                         158
Traits:                                               0
Classes:                                           4406
  Abstract:                                         245 (5.56%)
  Concrete:                                        4161 (94.44%)
  Average Class Length (NCLOC):                     127
Methods:                                          30367
  Scope:
    Non-Static:                                   28870 (95.07%)
    Static:                                        1497 (4.93%)
  Visibility:
    Public:                                       25734 (84.74%)
    Non-Public:                                    4633 (15.26%)
  Average Method Length (NCLOC):                     18
  Cyclomatic Complexity / Number of Methods:       3.46

Anonymous Functions:                                  7
Functions:                                         1744

Constants:                                         5747
  Global constants:                                 930
  Class constants:                                 4817

8.5

First release of the 8.x series: 2011-11

phploc of Tiki 8.5
$ php phploc.phar tiki-8.5/
phploc 1.7.1 by Sebastian Bergmann.

Directories:                                       1038
Files:                                             5647

Lines of Code (LOC):                            1184504
  Cyclomatic Complexity / Lines of Code:           0.13
Comment Lines of Code (CLOC):                    403479
Non-Comment Lines of Code (NCLOC):               781025

Namespaces:                                           0
Interfaces:                                         163
Traits:                                               0
Classes:                                           4596
  Abstract:                                         252 (5.48%)
  Concrete:                                        4344 (94.52%)
  Average Class Length (NCLOC):                     125
Methods:                                          31696
  Scope:
    Non-Static:                                   30006 (94.67%)
    Static:                                        1690 (5.33%)
  Visibility:
    Public:                                       26785 (84.51%)
    Non-Public:                                    4911 (15.49%)
  Average Method Length (NCLOC):                     18
  Cyclomatic Complexity / Number of Methods:       3.40

Anonymous Functions:                                  3
Functions:                                         1774

Constants:                                         5867
  Global constants:                                 861
  Class constants:                                 5006

9.2

First release of the 9.x series: 2012-06

phploc of Tiki 9.2
$ php phploc.phar tiki-9.2/
phploc 1.7.1 by Sebastian Bergmann.

Directories:                                       1160
Files:                                             6163

Lines of Code (LOC):                            1281719
  Cyclomatic Complexity / Lines of Code:           0.13
Comment Lines of Code (CLOC):                    436256
Non-Comment Lines of Code (NCLOC):               845463

Namespaces:                                           0
Interfaces:                                         172
Traits:                                               0
Classes:                                           4780
  Abstract:                                         275 (5.75%)
  Concrete:                                        4505 (94.25%)
  Average Class Length (NCLOC):                     131
Methods:                                          33470
  Scope:
    Non-Static:                                   31594 (94.39%)
    Static:                                        1876 (5.61%)
  Visibility:
    Public:                                       28188 (84.22%)
    Non-Public:                                    5282 (15.78%)
  Average Method Length (NCLOC):                     18
  Cyclomatic Complexity / Number of Methods:       3.44

Anonymous Functions:                                  3
Functions:                                         1885

Constants:                                         6021
  Global constants:                                 980
  Class constants:                                 5041


phploc of Zend Framework in Tiki 9.2
$ php phploc.phar tiki-9.2/lib/core/Zend/
phploc 1.7.1 by Sebastian Bergmann.

Directories:                                        495
Files:                                             2379

Lines of Code (LOC):                             470465
  Cyclomatic Complexity / Lines of Code:           0.11
Comment Lines of Code (CLOC):                    219665
Non-Comment Lines of Code (NCLOC):               250800

Namespaces:                                           0
Interfaces:                                         119
Traits:                                               0
Classes:                                           2258
  Abstract:                                         194 (8.59%)
  Concrete:                                        2064 (91.41%)
  Average Class Length (NCLOC):                     114
Methods:                                          15714
  Scope:
    Non-Static:                                   14619 (93.03%)
    Static:                                        1095 (6.97%)
  Visibility:
    Public:                                       12401 (78.92%)
    Non-Public:                                    3313 (21.08%)
  Average Method Length (NCLOC):                     16
  Cyclomatic Complexity / Number of Methods:       2.80

Anonymous Functions:                                  2
Functions:                                            0

Constants:                                         3767
  Global constants:                                   2
  Class constants:                                 3765

12.0

phploc of Tiki 12.0
phploc$ php phploc.phar tiki-12.0
phploc 2.0.4 by Sebastian Bergmann.

Directories                                       1467
Files                                             7670

Size
  Lines of Code (LOC)                          1566541
  Comment Lines of Code (CLOC)                  466975 (29.81%)
  Non-Comment Lines of Code (NCLOC)            1099566 (70.19%)
  Logical Lines of Code (LLOC)                  322113 (20.56%)
    Classes                                     261551 (81.20%)
      Average Class Length                          39
      Average Method Length                          6
    Functions                                    24440 (7.59%)
      Average Function Length                       10
    Not in classes or functions                  36122 (11.21%)

Complexity
  Cyclomatic Complexity / LLOC                    0.39
  Cyclomatic Complexity / Number of Methods       3.35

Dependencies
  Global Accesses                                26023
    Global Constants                              6460 (24.82%)
    Global Variables                              4284 (16.46%)
    Super-Global Variables                       15279 (58.71%)
  Attribute Accesses                             97255
    Non-Static                                   94385 (97.05%)
    Static                                        2870 (2.95%)
  Method Calls                                  121237
    Non-Static                                  107572 (88.73%)
    Static                                       13665 (11.27%)

Structure
  Namespaces                                        32
  Interfaces                                       248
  Traits                                             0
  Classes                                         6606
    Abstract Classes                               447 (6.77%)
    Concrete Classes                              6159 (93.23%)
  Methods                                        42230
    Scope
      Non-Static Methods                         39999 (94.72%)
      Static Methods                              2231 (5.28%)
    Visibility
      Public Method                              37453 (88.69%)
      Non-Public Methods                          4777 (11.31%)
  Functions                                       2422
    Named Functions                               2213 (91.37%)
    Anonymous Functions                            209 (8.63%)
  Constants                                       7637
    Global Constants                              1092 (14.30%)
    Class Constants                               6545 (85.70%)

Nice to have

  • A graphical representation of LOCs over time, with some dots for releases
    • Overlay of number of active devs and commit stats would be nice... (data could be taken from Ohloh...)
    • Also, number of prefs, modules and plugins, where we’ll perhaps see the rate of new features vs refinement of features.


Related

alias

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting 7.x
Administration
Ajax 2.x
Articles & Submissions
Backlinks
Banner
Batch 6.x
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Credits 6.x
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
DogFood
Draw 7.x
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Group
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping 3.x
Mobile Tiki and Voice Tiki
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Payment 5.x
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Score
Search engine optimization (SEO)
Search
Security
Semantic links 3.x
Share
Shopping Cart 5.x
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags 2.x
Task
Tell a Friend, alert + Social Bookmarking
Terms and Conditions
Theme
TikiTests 2.x
Timesheet
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
WebHelp
Webmail and Groupmail
WebServices 3.x
Wiki 3D
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives 4.x
WYSIWTSN 4.x
WYSIWYCA
WYSIWYG 2.x
XMLRPC




Useful Tools