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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 34.41 ▼6.93 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.11 ▼13.51 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 44.71 ▼7.06 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.53 ▼15.44 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.35 ▼1.23 | 1.74 ▼0.19 | 43.43 ▼5.38 |
Dashboard /wp-admin | 2,224 ▲42 | 5.87 ▲0.99 | 117.08 ▲14.38 | 41.71 ▼2.72 |
Posts /wp-admin/edit.php | 2,091 ▼1 | 2.05 ▲0.02 | 40.52 ▼1.39 | 34.93 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 18.07 ▼0.39 | 603.69 ▼38.48 | 47.75 ▼13.57 |
Media Library /wp-admin/upload.php | 1,393 ▲11 | 4.21 ▼0.03 | 96.04 ▼0.50 | 43.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 155 | 244 | 447 |
Markdown | 3 | 40 | 0 | 213 |
CSS | 1 | 3 | 1 | 27 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
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 code | 0.23 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 12 | 28.57% |
▷ Public methods | 38 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.52% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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