<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          PHPLOC測量 PHP 項(xiàng)目大小和分析結(jié)構(gòu)

          聯(lián)合創(chuàng)作 · 2023-10-01 09:15

          PHPLOC 是一個快速測量 PHP 項(xiàng)目大小和分析結(jié)構(gòu)的工具。

          此工具是以 PHP Archive (PHAR) 的形式分發(fā)的:

          $ wget https://phar.phpunit.de/phploc.phar
          
          $ php phploc.phar --version

          使用 Phive 是管理項(xiàng)目工具依賴項(xiàng)的推薦方式:

          $ phive install phploc
          
          $ ./tools/phploc --version

          不建議使用 Composer 下載安裝此工具。

          示例:

          $ php phploc.phar src
          phploc 7.0.0 by Sebastian Bergmann.
          
          Directories                                          3
          Files                                               10
          
          Size
            Lines of Code (LOC)                             1882
            Comment Lines of Code (CLOC)                     255 (13.55%)
            Non-Comment Lines of Code (NCLOC)               1627 (86.45%)
            Logical Lines of Code (LLOC)                     377 (20.03%)
              Classes                                        351 (93.10%)
                Average Class Length                          35
                  Minimum Class Length                         0
                  Maximum Class Length                       172
                Average Method Length                          2
                  Minimum Method Length                        1
                  Maximum Method Length                      117
              Functions                                        0 (0.00%)
                Average Function Length                        0
              Not in classes or functions                     26 (6.90%)
          
          Cyclomatic Complexity
            Average Complexity per LLOC                     0.49
            Average Complexity per Class                   19.60
              Minimum Class Complexity                      1.00
              Maximum Class Complexity                    139.00
            Average Complexity per Method                   2.43
              Minimum Method Complexity                     1.00
              Maximum Method Complexity                    96.00
          
          Dependencies
            Global Accesses                                    0
              Global Constants                                 0 (0.00%)
              Global Variables                                 0 (0.00%)
              Super-Global Variables                           0 (0.00%)
            Attribute Accesses                                85
              Non-Static                                      85 (100.00%)
              Static                                           0 (0.00%)
            Method Calls                                     280
              Non-Static                                     276 (98.57%)
              Static                                           4 (1.43%)
          
          Structure
            Namespaces                                         3
            Interfaces                                         1
            Traits                                             0
            Classes                                            9
              Abstract Classes                                 0 (0.00%)
              Concrete Classes                                 9 (100.00%)
            Methods                                          130
              Scope
                Non-Static Methods                           130 (100.00%)
                Static Methods                                 0 (0.00%)
              Visibility
                Public Methods                               103 (79.23%)
                Non-Public Methods                            27 (20.77%)
            Functions                                          0
              Named Functions                                  0 (0.00%)
              Anonymous Functions                              0 (0.00%)
            Constants                                          0
              Global Constants                                 0 (0.00%)
              Class Constants                                  0 (0.00%)
          瀏覽 8
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  av天堂首页 | 永久视频 | 欧美日韩操逼视频 | 竹菊视频一区二区三区 | 大鸡吧操小逼 |