84% email-id-from-comments

Code Review | Email id from comments

WordPress plugin Email id from comments scored84%from 54 tests.

About plugin

  • Plugin page: email-id-from-com...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7.4
  • WordPress version: 6.3.1
  • First release: Apr 27, 2017
  • Latest release: Apr 27, 2017
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: bisho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /684 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.96ms] Passed 4 tests

Server-side resources used by Email id from comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.47 ▼0.93
Dashboard /wp-admin3.31 ▲0.0150.24 ▼4.62
Posts /wp-admin/edit.php3.36 ▲0.0049.38 ▼0.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.10 ▼9.50
Media Library /wp-admin/upload.php3.23 ▲0.0037.08 ▼0.07

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Email id from comments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.20 ▼0.381.80 ▼0.0844.11 ▼1.66
Dashboard /wp-admin2,207 ▲305.68 ▲0.0084.10 ▼10.4240.44 ▼2.95
Posts /wp-admin/edit.php2,109 ▲91.99 ▼0.0234.25 ▼0.2334.49 ▼1.78
Add New Post /wp-admin/post-new.php1,555 ▲1023.30 ▲0.22704.41 ▲7.1065.88 ▲4.26
Media Library /wp-admin/upload.php1,412 ▲124.21 ▲0.0296.94 ▼19.5148.23 ▲0.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-id-from-comments/email-id-from-comments.php:12
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/email-id-from-comments/eifc_25042017_main.php:10
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/email-id-from-comments/eifc_25042017_main.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
3 plugin tags: get email id from comments, comments, email

email-id-from-comments/email-id-from-comments.php Passed 13 tests

The entry point to "Email id from comments" version 1.2 is a PHP file that has certain tags in its header comment area
90 characters long description:
This plugin gets all the emails ids which belong to the people who commented on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected49 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP221532
CSS11017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin