84% kineticpay-for-forminator

Code Review | Kineticpay for Forminator

WordPress plugin Kineticpay for Forminator scored84%from 54 tests.

About plugin

  • Plugin page: kineticpay-for-fo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2022
  • Latest release: Jun 22, 2023
  • Number of updates: 5
  • Update frequency: every 77.0 days
  • Top authors: faizalbahasan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Kineticpay for Forminator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.50 ▼10.19
Dashboard /wp-admin3.32 ▲0.0151.00 ▼4.99
Posts /wp-admin/edit.php3.37 ▲0.0155.24 ▲3.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.53 ▼9.61
Media Library /wp-admin/upload.php3.24 ▲0.0133.00 ▼5.04

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

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

Browser metrics Passed 4 tests

Kineticpay for Forminator: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.31 ▼0.411.68 ▼0.3943.45 ▼5.06
Dashboard /wp-admin2,195 ▲245.63 ▼0.0290.01 ▼28.8940.93 ▼8.77
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0038.33 ▼2.1134.05 ▼3.37
Add New Post /wp-admin/post-new.php1,526 ▼1023.03 ▲4.91695.70 ▼6.7463.77 ▼9.22
Media Library /wp-admin/upload.php1,397 ▼64.18 ▼0.03102.89 ▲1.6146.32 ▲3.13

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function forminator_plugin_url() in wp-content/plugins/kineticpay-for-forminator/views/admin/section-kineticpay.php:2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/kineticpay-for-forminator/views/admin/kineticpay.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/kineticpay-for-forminator/views/admin/kineticpay.php:16
    • > PHP Notice
      Undefined variable: template_vars in wp-content/plugins/kineticpay-for-forminator/views/admin/kineticpay.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
4 plugin tags: malaysia, paymentgateway, kineticpay, fpx

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

The main PHP file in "Kineticpay for Forminator" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("kineticpay-for-forminator.php" instead of "kineticpay.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin959 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9171154959

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.39
Average class complexity33.50
▷ Minimum class complexity3.00
▷ Maximum class complexity90.00
Average method complexity5.81
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/kineticpay.png15.70KB8.30KB▼ 47.12%
assets/images/kineticpay-icon.png15.70KB8.30KB▼ 47.12%