84% epf-upload-field

Code Review | Upload Field For Elementor Forms

WordPress plugin Upload Field For Elementor Forms scored84%from 54 tests.

About plugin

  • Plugin page: epf-upload-field
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2018
  • Latest release: Jan 3, 2018
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: yehudah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,880 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.52ms] Passed 4 tests

A check of server-side resources used by Upload Field For Elementor Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.17 ▲0.69
Dashboard /wp-admin3.34 ▲0.0452.27 ▲2.63
Posts /wp-admin/edit.php3.39 ▲0.0453.88 ▲4.67
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.39 ▼10.06
Media Library /wp-admin/upload.php3.27 ▲0.0438.42 ▲5.93

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Upload Field For Elementor Forms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.071.71 ▼0.0841.19 ▼6.47
Dashboard /wp-admin2,206 ▲155.84 ▲0.93102.36 ▲1.9941.50 ▲2.97
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0138.63 ▼4.0733.72 ▼2.49
Add New Post /wp-admin/post-new.php1,533 ▼023.14 ▼0.03666.27 ▼29.7352.20 ▼6.35
Media Library /wp-admin/upload.php1,385 ▲34.21 ▼0.0898.22 ▼3.1343.36 ▲0.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/epf-upload-field/plugin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: elementor, upload field

epf-upload-field/plugin.php 85% from 13 tests

The principal PHP file in "Upload Field For Elementor Forms" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("epf-upload-field.php" instead of "plugin.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin149 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14410135
JavaScript13014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin