Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 54.00 ▲2.52 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.72 ▼3.12 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.39 ▼1.32 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 91.72 ▼1,219.32 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 26.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲68 | 15.88 ▲0.25 | 5.73 ▼0.37 | 2.01 ▼0.18 |
Dashboard /wp-admin | 2,921 ▲68 | 6.11 ▼0.01 | 121.22 ▼4.12 | 160.44 ▼6.56 |
Posts /wp-admin/edit.php | 2,672 ▼22 | 3.25 ▲0.02 | 85.09 ▼2.73 | 138.14 ▼9.09 |
Add New Post /wp-admin/post-new.php | 1,670 ▼2 | 18.21 ▼4.02 | 412.51 ▼43.44 | 162.52 ▲9.83 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.53 ▲0.05 | 151.79 ▲13.48 | 187.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
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
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:
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
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin