Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼293.80ms] Passed 4 tests
A check of server-side resources used by Commenter Emails
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 58.74 ▲4.04 |
Dashboard /wp-admin | 3.47 ▲0.06 | 47.34 ▲9.15 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 42.35 ▼0.67 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.03 | 99.90 ▼1,179.70 |
Media Library /wp-admin/upload.php | 3.35 ▲0.06 | 31.82 ▲1.15 |
All Comments /wp-admin/edit-comments.php | 3.42 | 35.50 |
Commenter Emails /wp-admin/edit-comments.php?page=commenter-emails/commenter-emails.php | 3.38 | 31.75 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Commenter Emails: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,817 ▲63 | 15.92 ▲0.31 | 7.06 ▲0.74 | 2.67 ▼0.05 |
Dashboard /wp-admin | 2,914 ▲53 | 6.07 ▼0.18 | 118.50 ▼20.49 | 152.81 ▼9.25 |
Posts /wp-admin/edit.php | 2,710 ▲19 | 3.24 ▲0.00 | 62.60 ▼3.88 | 144.16 ▲1.01 |
Add New Post /wp-admin/post-new.php | 1,767 ▲106 | 21.51 ▲4.97 | 450.59 ▲8.42 | 157.12 ▼3.51 |
Media Library /wp-admin/upload.php | 1,717 ▲22 | 5.52 ▲0.05 | 149.64 ▲10.28 | 185.93 ▼7.08 |
All Comments /wp-admin/edit-comments.php | 2,396 | 3.41 | 62.37 | 135.50 |
Commenter Emails /wp-admin/edit-comments.php?page=commenter-emails/commenter-emails.php | 1,115 | 2.37 | 53.59 | 124.76 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/commenter-emails/tests/bootstrap.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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/commenter-emails/tests/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/commenter-emails/tests/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
No browser errors were detected
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
8 plugin tags: visitor, address, coffee2code, comment, email...
commenter-emails/commenter-emails.php Passed 13 tests
The principal PHP file in "Commenter Emails" v. 2.6.1 is loaded by WordPress automatically on each request
125 characters long description:
Extract a listing of data for all commenters (email addresses, names, URLs), and an option to export that data as a CSV file.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin838 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 184 | 304 | 566 |
Markdown | 3 | 48 | 0 | 210 |
CSS | 1 | 0 | 0 | 27 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 55 | |
▷ Static methods | 15 | 27.27% |
▷ Public methods | 50 | 90.91% |
▷ Protected methods | 1 | 1.82% |
▷ Private methods | 4 | 7.27% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
c2c_minilogo.png | 3.49KB | 1.91KB | ▼ 45.43% |