83% multiline-files-for-contact-form-7

Code Review | Multiline files upload for contact form 7

WordPress plugin Multiline files upload for contact form 7 scored83%from 54 tests.

About plugin

  • Plugin page: multiline-files-f...
  • Plugin version: 2.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Jun 5, 2018
  • Latest release: Nov 29, 2023
  • Number of updates: 58
  • Update frequency: every 34.6 days
  • Top authors: zluck (98.28%)divyeshk71 (3.45%)

Code review

54 tests

User reviews

43 reviews

Install metrics

10,000+ active /72,897 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Multiline files upload for contact form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.46 ▼5.33
Dashboard /wp-admin3.31 ▲0.0049.82 ▲1.17
Posts /wp-admin/edit.php3.36 ▲0.0049.01 ▲2.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.02 ▲1.35
Media Library /wp-admin/upload.php3.23 ▲0.0033.43 ▼2.18

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
mfcf7-zl-admin-do-not-show-pro-tip
db_upgraded
widget_theysaidso_widget
can_compress_scripts
mfcf7-zl-admin-do-not-show-rating-tip
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Multiline files upload for contact form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.20 ▼0.091.74 ▲0.0737.43 ▼7.00
Dashboard /wp-admin2,192 ▲155.63 ▼0.0195.11 ▼10.2142.49 ▼1.96
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0439.16 ▼1.0135.06 ▼4.06
Add New Post /wp-admin/post-new.php1,526 ▼323.12 ▼0.02684.92 ▲97.3155.69 ▲2.00
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0097.03 ▼1.4345.03 ▲2.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • mfcf7-zl-admin-do-not-show-rating-tip
    • db_upgraded
    • can_compress_scripts
    • mfcf7-zl-admin-do-not-show-pro-tip
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% 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 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
Please fix the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/multiline-files-for-contact-form-7/multiline-files-upload-for-contact-form-7.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiline-files-for-contact-form-7/multiline-admin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/multiline-files-for-contact-form-7/multiline-files-upload-for-contact-form-7.php:19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multiline-files-for-contact-form-7/multiline-files-upload-for-contact-form-7.php on line 17
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/multiline-files-for-contact-form-7/multiline-files-upload-for-contact-form-7.php on line 17

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

multiline-files-for-contact-form-7/multiline-files-upload-for-contact-form-7.php 85% from 13 tests

The main PHP script in "Multiline files upload for contact form 7" version 2.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("multiline-files-for-contact-form-7.php" instead of "multiline-files-upload-for-contact-form-7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,052 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP283151716
PO File28282246
CSS381545
JavaScript161645

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions23
▷ Named functions23100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/multiline_file_plugin_icon.png33.36KB12.99KB▼ 61.08%