84% multiupload-field-for-contact-form-7

Code Review | Multiupload field for Contact Form 7

WordPress plugin Multiupload field for Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: multiupload-field...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2016
  • Latest release: Dec 14, 2016
  • Number of updates: 2
  • Update frequency: every 5.0 days
  • Top authors: mgongee (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /952 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Multiupload field for Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.14 ▼1.92
Dashboard /wp-admin3.33 ▲0.0246.93 ▼12.27
Posts /wp-admin/edit.php3.44 ▲0.0948.26 ▼3.20
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.92 ▼21.20
Media Library /wp-admin/upload.php3.25 ▲0.0239.75 ▲8.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Multiupload field for Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.35 ▲0.042.99 ▲1.0438.19 ▼7.20
Dashboard /wp-admin2,197 ▲235.70 ▲0.1687.85 ▼4.4244.39 ▲7.30
Posts /wp-admin/edit.php2,102 ▼12.04 ▼0.0137.86 ▼5.2233.59 ▼3.94
Add New Post /wp-admin/post-new.php1,551 ▲1118.08 ▼0.09637.36 ▲12.6452.80 ▼6.01
Media Library /wp-admin/upload.php1,402 ▲54.20 ▼0.0596.06 ▼5.4445.99 ▲1.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Cf7mu_Extension' not found in wp-content/plugins/multiupload-field-for-contact-form-7/inc/class-cf7mu-multiupload.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiupload-field-for-contact-form-7/inc/class-cf7mu-extension.php:16

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 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
10 plugin tags: multiupload, contactform7, contact form 7, forms, file field...

multiupload-field-for-contact-form-7/multiupload-field-for-contact-form-7.php Passed 13 tests

The entry point to "Multiupload field for Contact Form 7" version 1.0 is a PHP file that has certain tags in its header comment area
84 characters long description:
Adds to Contact Form 7 plugin extra field-type for uploading multiple files at once.

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
Success! There were no dangerous files found in this plugin2,060 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3126731,639
PHP4136337301
CSS14068
PO File1132049
Markdown1103

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity30.50
▷ Minimum class complexity6.00
▷ Maximum class complexity55.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods13.03%
▷ Public methods3296.97%
▷ Protected methods00.00%
▷ Private methods13.03%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin