89% admin-commenters-comments-count

Code Review | Admin Commenters Comments Count

WordPress plugin Admin Commenters Comments Count scored 89% from 54 tests.

About plugin

  • Plugin page: admin-commenters-...
  • Plugin version: 1.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 5.9.2
  • First release: Jun 15, 2009
  • Latest release: May 2, 2021
  • Number of updates: 29
  • Update frequency: every 150.2 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active / 16,773 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼307.78ms] Passed 4 tests

Server-side resources used by Admin Commenters Comments Count
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.00 ▲2.52
Dashboard /wp-admin3.43 ▲0.0232.72 ▼3.12
Posts /wp-admin/edit.php3.65 ▲0.0136.39 ▼1.32
Add New Post /wp-admin/post-new.php6.89 ▼0.0891.72 ▼1,219.32
Media Library /wp-admin/upload.php3.30 ▲0.0126.95 ▼7.34

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Commenters Comments Count: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲6815.88 ▲0.255.73 ▼0.372.01 ▼0.18
Dashboard /wp-admin2,921 ▲686.11 ▼0.01121.22 ▼4.12160.44 ▼6.56
Posts /wp-admin/edit.php2,672 ▼223.25 ▲0.0285.09 ▼2.73138.14 ▼9.09
Add New Post /wp-admin/post-new.php1,670 ▼218.21 ▼4.02412.51 ▼43.44162.52 ▲9.83
Media Library /wp-admin/upload.php1,703 ▲55.53 ▲0.05151.79 ▲13.48187.35 ▼2.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/admin-commenters-comments-count/phpunit/bootstrap.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/admin-commenters-comments-count/phpunit/bootstrap.php on line 17
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/admin-commenters-comments-count/phpunit/bootstrap.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: admin, commenters, comments, coffee2code, comment count...

admin-commenters-comments-count/admin-commenters-comments-count.php Passed 13 tests

The main file in "Admin Commenters Comments Count" v. 1.9.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
126 characters long description:
Displays a count of each commenter's total number of comments (linked to those comments) next to their name on any admin page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin722 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
Bourne Shell16221

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity23.00
▷ Minimum class complexity18.00
▷ Maximum class complexity28.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1228.57%
▷ Public methods3890.48%
▷ Protected methods00.00%
▷ Private methods49.52%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin