84% gravityforms-file-upload-for-gae

Code Review | GravityForms File Upload for GAE

WordPress plugin GravityForms File Upload for GAE scored84%from 54 tests.

About plugin

  • Plugin page: gravityforms-file...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2014
  • Latest release: Jun 16, 2014
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: aucor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /908 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.20MB] [CPU: ▼12.76ms] Passed 4 tests

An overview of server-side resources used by GravityForms File Upload for GAE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.82 ▼0.6416.27 ▼29.77
Dashboard /wp-admin3.31 ▲0.0144.23 ▼3.34
Posts /wp-admin/edit.php3.17 ▼0.1829.55 ▼18.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.18 ▲0.50
Media Library /wp-admin/upload.php3.23 ▲0.0136.52 ▲5.30

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

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

Browser metrics Passed 4 tests

A check of browser resources used by GravityForms File Upload for GAE
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.191.77 ▲0.1441.70 ▲0.60
Dashboard /wp-admin2,206 ▲214.82 ▼0.08107.88 ▲8.0036.98 ▼7.50
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0940.21 ▼0.5633.98 ▼5.74
Add New Post /wp-admin/post-new.php1,533 ▼123.36 ▲0.04663.64 ▲1.8256.81 ▼7.44
Media Library /wp-admin/upload.php1,382 ▼64.24 ▼0.0597.91 ▼3.1343.76 ▼0.66

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravityforms-file-upload-for-gae/gravityforms-gae-file-upload.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === gravityforms-file-upload-for-gae === )
Please take inspiration from this readme.txt

gravityforms-file-upload-for-gae/gravityforms-gae-file-upload.php 92% from 13 tests

This is the main PHP file of "GravityForms File Upload for GAE" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gravityforms-file-upload-for-gae.php" instead of "gravityforms-gae-file-upload.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected55 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2262755

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin