84% upload-field-lite-formidable

Code Review | File Upload Field for Formidable Forms (lite)

WordPress plugin File Upload Field for Formidable Forms (lite) scored84%from 54 tests.

About plugin

  • Plugin page: upload-field-lite...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2022
  • Latest release: Aug 4, 2023
  • Number of updates: 11
  • Update frequency: every 21.9 days
  • Top authors: desolint (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /721 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
Installer ran successfully

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

An overview of server-side resources used by File Upload Field for Formidable Forms (lite)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.39 ▼7.09
Dashboard /wp-admin3.31 ▲0.0140.24 ▼10.87
Posts /wp-admin/edit.php3.36 ▲0.0050.24 ▲6.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.93 ▼8.15
Media Library /wp-admin/upload.php3.23 ▲0.0033.36 ▼0.56

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by File Upload Field for Formidable Forms (lite)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.131.89 ▲0.0837.98 ▼5.91
Dashboard /wp-admin2,206 ▲185.85 ▲0.03111.03 ▼6.3244.08 ▼0.75
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0139.14 ▲2.3234.18 ▼2.29
Add New Post /wp-admin/post-new.php1,544 ▲3018.10 ▲0.61605.51 ▼85.8948.16 ▲0.80
Media Library /wp-admin/upload.php1,385 ▼04.10 ▼0.11103.79 ▼6.2442.75 ▼6.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/upload-field-lite-formidable/classes/model/builder-settings.php
    • > /wp-content/plugins/upload-field-lite-formidable/classes/view/back-end/builder-field.php
    • > /wp-content/plugins/upload-field-lite-formidable/upload-field-lite-formidable.php
    • > /wp-content/plugins/upload-field-lite-formidable/classes/view/front-end/front-end-field.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

upload-field-lite-formidable/upload-field-lite-formidable.php 92% from 13 tests

This is the main PHP file of "File Upload Field for Formidable Forms (lite)" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected198 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP622156198

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods321.43%
▷ Public methods857.14%
▷ Protected methods535.71%
▷ Private methods17.14%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin