84% user-info-in-email-for-contact-form-7

Code Review | User Info In Email For Contact Form 7

WordPress plugin User Info In Email For Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: user-info-in-emai...
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7
  • WordPress version: 6.3.1
  • First release: May 25, 2017
  • Latest release: May 25, 2017
  • Number of updates: 9
  • Update frequency: every 11.8 days
  • Top authors: evgeniyjunior (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,582 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼4.02ms] Passed 4 tests

Analyzing server-side resources used by User Info In Email For Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.39 ▼2.78
Dashboard /wp-admin3.32 ▲0.0152.22 ▼4.24
Posts /wp-admin/edit.php3.37 ▲0.0152.21 ▲0.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.66 ▼10.04
Media Library /wp-admin/upload.php3.24 ▲0.0139.92 ▲1.09

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Info In Email For Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.41 ▲0.051.74 ▼0.1343.33 ▼2.95
Dashboard /wp-admin2,195 ▲185.59 ▼0.0693.31 ▼8.7242.34 ▼0.44
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0640.10 ▲3.8337.19 ▲1.62
Add New Post /wp-admin/post-new.php1,526 ▼023.17 ▼0.63704.63 ▲16.8152.05 ▲0.83
Media Library /wp-admin/upload.php1,403 ▲64.23 ▲0.0097.23 ▼4.3643.87 ▼0.66

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/user-info-in-email-for-contact-form-7/user-info-in-email-for-contact-form-7.php:97

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
The official readme.txt might help

user-info-in-email-for-contact-form-7/user-info-in-email-for-contact-form-7.php 92% from 13 tests

Analyzing the main PHP file in "User Info In Email For Contact Form 7" version 1.00
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 325 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1193444

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin