83% payflexi-instalment-payment-gateway-for-gravity-forms

Code Review | PayFlexi Installment Payment Plans for Gravity Forms

WordPress plugin PayFlexi Installment Payment Plans for Gravity Forms scored83%from 54 tests.

About plugin

  • Plugin page: payflexi-instalme...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9
  • WordPress version: 6.3.1
  • First release: Apr 6, 2021
  • Latest release: Feb 11, 2022
  • Number of updates: 10
  • Update frequency: every 31.2 days
  • Top authors: payflexi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /600 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.01MB] [CPU: ▼2.50ms] Passed 4 tests

Server-side resources used by PayFlexi Installment Payment Plans for Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.81 ▲3.35
Dashboard /wp-admin3.31 ▲0.0145.94 ▲1.11
Posts /wp-admin/edit.php3.36 ▲0.0145.94 ▼3.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.29 ▼6.73
Media Library /wp-admin/upload.php3.23 ▲0.0035.30 ▼0.64

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

Browser metrics Passed 4 tests

PayFlexi Installment Payment Plans for Gravity Forms: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.091.74 ▼0.2344.20 ▲1.91
Dashboard /wp-admin2,198 ▲245.56 ▼0.1181.27 ▼4.4338.75 ▼3.87
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0835.49 ▼11.0433.67 ▼0.90
Add New Post /wp-admin/post-new.php1,531 ▲523.41 ▲0.28655.88 ▼25.1260.65 ▲0.37
Media Library /wp-admin/upload.php1,400 ▲94.17 ▼0.0794.29 ▼7.8341.94 ▼2.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/payflexi-instalment-payment-gateway-for-gravity-forms/class-gf-payflexi-api.php

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 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: The official readme.txt is a good inspiration

payflexi-instalment-payment-gateway-for-gravity-forms/payflexi.php 69% from 13 tests

The primary PHP file in "PayFlexi Installment Payment Plans for Gravity Forms" version 1.3.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("payflexi-instalment-payment-gateway-for-gravity-forms.php" instead of "payflexi.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected791 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3230592791

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity30.33
▷ Minimum class complexity2.00
▷ Maximum class complexity84.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-payflexi-settings.png190.36KB80.94KB▼ 57.48%