89% kineticpay-for-gravityforms

Code Review | Kineticpay for GravityForms

WordPress plugin Kineticpay for GravityForms scored89%from 54 tests.

About plugin

  • Plugin page: kineticpay-for-gr...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2022
  • Latest release: Jun 22, 2023
  • Number of updates: 10
  • Update frequency: every 42.8 days
  • Top authors: faizalbahasan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /304 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
This plugin's installer ran successfully

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

Server-side resources used by Kineticpay for GravityForms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.28 ▼7.06
Dashboard /wp-admin3.32 ▲0.0145.83 ▼3.65
Posts /wp-admin/edit.php3.37 ▲0.0147.84 ▲2.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.36 ▼4.45
Media Library /wp-admin/upload.php3.24 ▲0.0134.58 ▼1.12

Server storage [IO: ▲0.10MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Kineticpay for GravityForms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.25 ▼1.132.23 ▲0.1638.35 ▼6.10
Dashboard /wp-admin2,213 ▲254.90 ▼0.14105.68 ▼8.2941.58 ▼0.74
Posts /wp-admin/edit.php2,096 ▲102.09 ▲0.0843.82 ▲4.7037.57 ▲6.24
Add New Post /wp-admin/post-new.php1,537 ▲1723.19 ▼0.20674.40 ▲8.4359.38 ▲7.62
Media Library /wp-admin/upload.php1,392 ▲14.42 ▲0.2297.57 ▼1.1842.77 ▼2.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

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
Attributes that need to be fixed: Please take inspiration from this readme.txt

kineticpay-for-gravityforms/kineticpay.php 85% from 13 tests

This is the main PHP file of "Kineticpay for GravityForms" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kineticpay-for-gravityforms.php" instead of "kineticpay.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin959 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6240119959

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity34.00
▷ Minimum class complexity2.00
▷ Maximum class complexity118.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods53
▷ Static methods47.55%
▷ Public methods5094.34%
▷ Protected methods00.00%
▷ Private methods35.66%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/kineticpay.png15.70KB8.30KB▼ 47.12%
assets/images/icon-256x256.png37.21KB11.62KB▼ 68.79%
assets/images/kineticpay-icon.png3.14KB1.92KB▼ 38.88%