79% admin-commenters-comments-count

Code Review | Admin Commenters Comments Count

WordPress plugin Admin Commenters Comments Count scored79%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: 6.3.1
  • 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 /17,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.74ms] Passed 4 tests

This is a short check of server-side resources used by Admin Commenters Comments Count
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.41 ▼6.93
Dashboard /wp-admin3.36 ▲0.0144.11 ▼13.51
Posts /wp-admin/edit.php3.41 ▲0.0544.71 ▼7.06
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.53 ▼15.44
Media Library /wp-admin/upload.php3.28 ▲0.0533.53 ▼1.95

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Commenters Comments Count
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.35 ▼1.231.74 ▼0.1943.43 ▼5.38
Dashboard /wp-admin2,224 ▲425.87 ▲0.99117.08 ▲14.3841.71 ▼2.72
Posts /wp-admin/edit.php2,091 ▼12.05 ▲0.0240.52 ▼1.3934.93 ▼2.11
Add New Post /wp-admin/post-new.php1,539 ▼318.07 ▼0.39603.69 ▼38.4847.75 ▼13.57
Media Library /wp-admin/upload.php1,393 ▲114.21 ▼0.0396.04 ▼0.5043.39 ▲0.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/admin-commenters-comments-count/phpunit/bootstrap.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > 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
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: comments, commenters, comment count, comment, comment author...

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

"Admin Commenters Comments Count" version 1.9.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin722 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4155244447
Markdown3400213
CSS13127
Bourne Shell16221
XML10014

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods1228.57%
▷ Public methods3890.48%
▷ Protected methods00.00%
▷ Private methods49.52%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin