90% securepay-for-gravityforms

Code Review | SecurePay For GravityForms

WordPress plugin SecurePay For GravityForms scored90%from 54 tests.

About plugin

  • Plugin page: securepay-for-gra...
  • Plugin version: 1.0.12
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2021
  • Latest release: Sep 6, 2023
  • Number of updates: 34
  • Update frequency: every 26.6 days
  • Top authors: nawawijamili (97.06%)securepay (5.88%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /981 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.78ms] Passed 4 tests

This is a short check of server-side resources used by SecurePay For GravityForms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.52 ▼4.19
Dashboard /wp-admin3.33 ▲0.0345.34 ▼1.68
Posts /wp-admin/edit.php3.38 ▲0.0344.99 ▼0.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.76 ▼15.67
Media Library /wp-admin/upload.php3.25 ▲0.0334.09 ▼1.56

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SecurePay For GravityForms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.19 ▼0.541.92 ▲0.3339.35 ▼0.07
Dashboard /wp-admin2,209 ▲315.58 ▼0.0789.60 ▼17.0437.49 ▼4.15
Posts /wp-admin/edit.php2,114 ▲352.02 ▲0.0444.16 ▲5.4237.32 ▲2.06
Add New Post /wp-admin/post-new.php1,532 ▲623.40 ▼0.11619.89 ▲12.6882.41 ▲32.94
Media Library /wp-admin/upload.php1,408 ▲114.22 ▲0.0398.55 ▼2.6741.90 ▼3.84

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: payment platform, fpx, payment gateway, online banking, malaysia

securepay-for-gravityforms/securepay-for-gravityforms.php 92% from 13 tests

"SecurePay For GravityForms" version 1.0.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin1,332 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4228531,255
CSS25039
JavaScript25138

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity116.00
▷ Minimum class complexity6.00
▷ Maximum class complexity226.00
Average method complexity5.91
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods50
▷ Static methods1122.00%
▷ Public methods3978.00%
▷ Protected methods00.00%
▷ Private methods1122.00%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants10
▷ Global constants10100.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
29 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/bnk/rhb0218.png2.56KB1.38KB▼ 46.13%
includes/admin/bnk/scb0216.png4.63KB2.54KB▼ 45.01%
includes/admin/bnk/test0022.png2.88KB1.52KB▼ 47.23%
includes/admin/bnk/bimb0340.png2.05KB1.33KB▼ 35.39%
includes/admin/bnk/hlb0224.png4.09KB2.13KB▼ 48.01%