10% filesfm-file-upload-form

Code Review | Customizable File Upload Form with Backend Cloud Storage

WordPress plugin Customizable File Upload Form with Backend Cloud Storage scored 10% from 54 tests.

About plugin

  • Plugin page: filesfm-file-uplo...
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.3.2
  • WordPress version: 5.8.1
  • First release: Jan 31, 2016
  • Latest release: Mar 24, 2020
  • Number of updates: 33
  • Update frequency: every 47.0 days
  • Top authors: Files.fm (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

800+ active / 22,388 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/filesfm-file-upload-form/files-fm-file-upload-form.php+29
    Function create_function() is deprecated

Server metrics [RAM: ▼1.62MB] [CPU: ▼184.84ms] Passed 4 tests

Server-side resources used by Customizable File Upload Form with Backend Cloud Storage
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.01 ▼0.826.41 ▼27.36
Dashboard /wp-admin2.03 ▼1.026.20 ▼37.53
Posts /wp-admin/edit.php2.03 ▼1.085.58 ▼37.16
Add New Post /wp-admin/post-new.php2.03 ▼3.405.85 ▼637.32
Media Library /wp-admin/upload.php2.03 ▼0.975.80 ▼25.28

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_filesfmupload_widget_idbase

Browser metrics Passed 4 tests

Customizable File Upload Form with Backend Cloud Storage: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11716.29 ▲0.549.52 ▲0.8547.65 ▲0.14
Dashboard /wp-admin3,007 ▲735.91 ▼0.07144.93 ▲4.42106.88 ▼10.23
Posts /wp-admin/edit.php2,775 ▲362.73 ▲0.0167.29 ▲1.0485.26 ▼13.11
Add New Post /wp-admin/post-new.php1,894 ▲22219.15 ▲0.46372.44 ▲9.45108.02 ▼13.06
Media Library /wp-admin/upload.php1,844 ▲375.03 ▼0.02144.29 ▼8.76119.64 ▼10.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/filesfm-file-upload-form/files-fm-file-upload-form.php+29
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_filesfmupload_widget_idbase

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/filesfm-file-upload-form/files-fm-file-upload-form.php:28

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: receive, storage, custom, email, form...

filesfm-file-upload-form/files-fm-file-upload-form.php 85% from 13 tests

The primary PHP file in "Customizable File Upload Form with Backend Cloud Storage" version 1.3.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("filesfm-file-upload-form.php" instead of "files-fm-file-upload-form.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)

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
Everything looks great! No dangerous files found in this plugin767 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP117532767

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin