79% relay-sender-petals-exchange-for-gravity-forms

Code Review | Relay Sender - Petals Exchange for Gravity Forms

WordPress plugin Relay Sender - Petals Exchange for Gravity Forms scored79%from 54 tests.

About plugin

  • Plugin page: relay-sender-peta...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2023
  • Latest release: Apr 6, 2023
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: bakkbone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /291 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.24ms] Passed 4 tests

Server-side resources used by Relay Sender - Petals Exchange for Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.83 ▲0.75
Dashboard /wp-admin3.33 ▲0.0350.31 ▼1.49
Posts /wp-admin/edit.php3.38 ▲0.0249.10 ▼7.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.77 ▼19.48
Media Library /wp-admin/upload.php3.25 ▲0.0235.84 ▼0.81

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Relay Sender - Petals Exchange for Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.231.93 ▲0.3551.61 ▲9.74
Dashboard /wp-admin2,192 ▲125.53 ▼0.1380.93 ▼5.4937.70 ▼9.11
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0533.00 ▼8.7234.50 ▼5.27
Add New Post /wp-admin/post-new.php1,526 ▼223.27 ▲0.02652.41 ▼6.5676.84 ▲20.43
Media Library /wp-admin/upload.php1,394 ▼34.22 ▲0.0298.21 ▼5.4742.15 ▼6.19

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-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/relay-sender-petals-exchange-for-gravity-forms/incl/localisation.php
    • > /wp-content/plugins/relay-sender-petals-exchange-for-gravity-forms/incl/core.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/relay-sender-petals-exchange-for-gravity-forms/relay-sender-petals-exchange-for-gravity-forms.php:25

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: florist, gravity forms, integrate, gravity, petals...

relay-sender-petals-exchange-for-gravity-forms/relay-sender-petals-exchange-for-gravity-forms.php Passed 13 tests

The entry point to "Relay Sender - Petals Exchange for Gravity Forms" version 1.0.0 is a PHP file that has certain tags in its header comment area
49 characters long description:
Integrates the Petals Exchange with Gravity Forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin460 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45128460

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity16.00
▷ Minimum class complexity2.00
▷ Maximum class complexity30.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants73
▷ Global constants73100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin