89% commenter-emails

Code Review | Commenter Emails

WordPress plugin Commenter Emails scored 89% from 54 tests.

About plugin

  • Plugin page: commenter-emails
  • Plugin version: 2.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.4
  • WordPress version: 5.9.2
  • First release: Jun 15, 2009
  • Latest release: Jul 7, 2020
  • Number of updates: 20
  • Update frequency: every 202.9 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

900+ active / 21,864 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0658.74 ▲4.04
Dashboard /wp-admin3.47 ▲0.0647.34 ▲9.15
Posts /wp-admin/edit.php3.70 ▲0.0642.35 ▼0.67
Add New Post /wp-admin/post-new.php6.95 ▼0.0399.90 ▼1,179.70
Media Library /wp-admin/upload.php3.35 ▲0.0631.82 ▲1.15
All Comments /wp-admin/edit-comments.php3.4235.50
Commenter Emails /wp-admin/edit-comments.php?page=commenter-emails/commenter-emails.php3.3831.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,817 ▲6315.92 ▲0.317.06 ▲0.742.67 ▼0.05
Dashboard /wp-admin2,914 ▲536.07 ▼0.18118.50 ▼20.49152.81 ▼9.25
Posts /wp-admin/edit.php2,710 ▲193.24 ▲0.0062.60 ▼3.88144.16 ▲1.01
Add New Post /wp-admin/post-new.php1,767 ▲10621.51 ▲4.97450.59 ▲8.42157.12 ▼3.51
Media Library /wp-admin/upload.php1,717 ▲225.52 ▲0.05149.64 ▲10.28185.93 ▼7.08
All Comments /wp-admin/edit-comments.php2,3963.4162.37135.50
Commenter Emails /wp-admin/edit-comments.php?page=commenter-emails/commenter-emails.php1,1152.3753.59124.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP4184304566
Markdown3480210
CSS10027
Bourne Shell16221
XML10014

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 code0.16
Average class complexity20.50
▷ Minimum class complexity15.00
▷ Maximum class complexity26.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods55
▷ Static methods1527.27%
▷ Public methods5090.91%
▷ Protected methods11.82%
▷ Private methods47.27%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
c2c_minilogo.png3.49KB1.91KB▼ 45.43%