90% upload-to-envira-via-gravity-forms

Code Review | Upload to Envira from Gravity Forms

WordPress plugin Upload to Envira from Gravity Forms scored 90% from 54 tests.

About plugin

  • Plugin page: upload-to-envira-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.0
  • WordPress version: 6.3.1
  • First release: Nov 16, 2018
  • Latest release: Mar 1, 2019
  • Number of updates: 7
  • Update frequency: every 15.1 days
  • Top authors: rhinogroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,136 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.03MB] [CPU: ▲1.18ms] Passed 4 tests

An overview of server-side resources used by Upload to Envira from Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.59 ▼0.23
Dashboard /wp-admin3.34 ▲0.0450.39 ▲2.96
Posts /wp-admin/edit.php3.39 ▲0.0345.83 ▼3.82
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.74 ▲6.95
Media Library /wp-admin/upload.php3.26 ▲0.0339.72 ▲5.80

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Upload to Envira from Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.57 ▼0.861.73 ▼0.0644.33 ▼2.17
Dashboard /wp-admin2,206 ▲214.85 ▼0.27103.66 ▼12.4039.01 ▼3.68
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.1335.46 ▼4.9233.10 ▼2.53
Add New Post /wp-admin/post-new.php1,528 ▼518.23 ▼4.97592.53 ▼106.2253.23 ▼7.18
Media Library /wp-admin/upload.php1,385 ▲34.24 ▼0.0296.62 ▼0.7542.26 ▼0.87

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: gravity forms, envira gallery

upload-to-envira-via-gravity-forms/addon.php 92% from 13 tests

"Upload to Envira from Gravity Forms" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("upload-to-envira-via-gravity-forms.php" instead of "addon.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
Everything looks great! No dangerous files found in this plugin239 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16389239

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods350.00%
▷ Protected methods00.00%
▷ Private methods350.00%
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
There are no PNG files in this plugin