89% cf7-posts-fields-in-mail

Code Review | CF7 Posts Fields In Mail

WordPress plugin CF7 Posts Fields In Mail scored89%from 54 tests.

About plugin

  • Plugin page: cf7-posts-fields-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.6.0
  • WordPress version: 6.3.1
  • First release: Sep 8, 2016
  • Latest release: Sep 8, 2016
  • Number of updates: 6
  • Update frequency: every 13.5 days
  • Top authors: prabhakar.umpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /954 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.84ms] Passed 4 tests

Server-side resources used by CF7 Posts Fields In Mail
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.51 ▼4.31
Dashboard /wp-admin3.34 ▲0.0446.16 ▼3.50
Posts /wp-admin/edit.php3.39 ▲0.0348.96 ▲2.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.11 ▼13.61
Media Library /wp-admin/upload.php3.26 ▲0.0335.68 ▼1.95

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CF7 Posts Fields In Mail
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲7113.22 ▼1.161.76 ▼0.3439.09 ▼12.33
Dashboard /wp-admin2,234 ▲465.86 ▼0.03110.19 ▼1.3362.85 ▲13.22
Posts /wp-admin/edit.php2,120 ▲312.02 ▲0.0138.24 ▲3.4234.55 ▲0.69
Add New Post /wp-admin/post-new.php1,541 ▲623.06 ▼0.14696.27 ▲19.7554.31 ▲0.61
Media Library /wp-admin/upload.php1,413 ▲254.15 ▼0.09112.28 ▼0.1549.03 ▲0.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

cf7-posts-fields-in-mail/cf7_posts_fields.php 85% from 13 tests

The principal PHP file in "CF7 Posts Fields In Mail" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-posts-fields-in-mail.php" instead of "cf7_posts_fields.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,557 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS33572162,144
PHP122982461,209
JavaScript2182114
PO File1363890

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity39.62
▷ Minimum class complexity2.00
▷ Maximum class complexity165.00
Average method complexity6.07
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods61
▷ Static methods23.28%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/vtdesigns.png1.50KB0.71KB▼ 52.99%
assets/images/vtdlogo.png2.49KB1.58KB▼ 36.49%
(invalid) assets/images/question_mark.png0.86KB0.00KB▼ 100.00%
assets/images/placeholder.png2.75KB2.92KB0.00%
assets/images/vtdesigns_logo.png9.60KB4.36KB▼ 54.62%