83% gf-gourl-add-on

Code Review | GoUrl Bitcoin Altcoin Payment Gateway For Gravity Forms

WordPress plugin GoUrl Bitcoin Altcoin Payment Gateway For Gravity Forms scored83%from 54 tests.

About plugin

  • Plugin page: gf-gourl-add-on
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 2, 2018
  • Latest release: Aug 11, 2023
  • Number of updates: 16
  • Update frequency: every 118.6 days
  • Top authors: mohsinoffline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,787 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.47ms] Passed 4 tests

Server-side resources used by GoUrl Bitcoin Altcoin Payment Gateway For Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.97 ▼3.94
Dashboard /wp-admin3.31 ▲0.0147.68 ▲0.05
Posts /wp-admin/edit.php3.36 ▲0.0148.46 ▼1.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.42 ▼12.59
Media Library /wp-admin/upload.php3.24 ▲0.0136.36 ▲1.78

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

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

Browser metrics Passed 4 tests

GoUrl Bitcoin Altcoin Payment Gateway For Gravity Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.414.30 ▲2.1643.45 ▼0.61
Dashboard /wp-admin2,206 ▲184.84 ▲0.01110.19 ▼3.8043.11 ▼0.11
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0137.98 ▲0.4133.00 ▼3.10
Add New Post /wp-admin/post-new.php1,533 ▼123.01 ▼0.11678.03 ▼8.9955.92 ▼0.81
Media Library /wp-admin/upload.php1,391 ▲34.25 ▼0.01100.71 ▲1.6340.93 ▼1.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not 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 fix the following
  • 2× 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/gf-gourl-add-on/gourl.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-gourl-add-on/class-gf-gourl.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

gf-gourl-add-on/gourl.php 85% from 13 tests

The principal PHP file in "GoUrl Bitcoin Altcoin Payment Gateway For Gravity Forms" v. 1.0.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gf-gourl-add-on.php" instead of "gourl.php")

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
There were no executable files found in this plugin805 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2256150805

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.36
Average class complexity67.00
▷ Minimum class complexity3.00
▷ Maximum class complexity131.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods40
▷ Static methods37.50%
▷ Public methods3587.50%
▷ Protected methods00.00%
▷ Private methods512.50%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected