100% multiple-files-for-contact-form-7

Code Review | Multiple Files for Contact Form 7

WordPress plugin Multiple Files for Contact Form 7 scored 100% from 54 tests.

About plugin

  • Plugin page: multiple-files-fo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.6
  • WordPress version: 5.8.1
  • First release: Jul 4, 2017
  • Latest release: Jul 4, 2017
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: D001928403 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 831 total downloads


Plugin footprint Passed 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.06MB] [CPU: ▼136.59ms] Passed 4 tests

Server-side resources used by Multiple Files for Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1829.71 ▲4.00
Dashboard /wp-admin3.13 ▲0.0747.72 ▲0.11
Posts /wp-admin/edit.php3.18 ▲0.0749.84 ▲4.00
Add New Post /wp-admin/post-new.php5.48 ▲0.0596.72 ▼554.45
Media Library /wp-admin/upload.php3.07 ▲0.0637.18 ▲5.45

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Multiple Files for Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,688 ▲9215.90 ▲0.388.08 ▼1.3549.89 ▲2.77
Dashboard /wp-admin2,976 ▲455.92 ▼0.20149.22 ▼11.21114.55 ▼9.21
Posts /wp-admin/edit.php2,748 ▲92.69 ▼0.0065.25 ▼2.2296.92 ▼5.26
Add New Post /wp-admin/post-new.php1,689 ▼1,94718.82 ▲3.88389.32 ▼71.46116.49 ▼1.01
Media Library /wp-admin/upload.php1,819 ▲95.00 ▼0.02157.50 ▲0.08127.40 ▼2.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot.png) image required
Please take inspiration from this readme.txt

multiple-files-for-contact-form-7/multiple-files-for-contact-form-7.php Passed 13 tests

The primary PHP file in "Multiple Files for Contact Form 7" version 1.0 is used by WordPress to initiate all plugin functionality
55 characters long description:
You can able to choose multiple files in contact form 7

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
Good job! No executable or dangerous file extensions detected155 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.95KB10.51KB▼ 57.88%