84% installments-for-stripe-gf

Code Review | Installments for Gravity Forms and Stripe

WordPress plugin Installments for Gravity Forms and Stripe scored 84% from 54 tests.

About plugin

  • Plugin page: installments-for-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Jun 5, 2019
  • Number of updates: 4
  • Update frequency: every 236.2 days
  • Top authors: duplaja (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 1,957 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.90ms] Passed 4 tests

An overview of server-side resources used by Installments for Gravity Forms and Stripe
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.97 ▲1.13
Dashboard /wp-admin3.31 ▲0.0044.19 ▼9.29
Posts /wp-admin/edit.php3.36 ▲0.0042.42 ▼2.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.82 ▼15.35
Media Library /wp-admin/upload.php3.23 ▲0.0033.99 ▼0.54

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Installments for Gravity Forms and Stripe
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.044.39 ▲2.6142.24 ▲1.47
Dashboard /wp-admin2,200 ▲185.80 ▼0.0898.21 ▼5.9938.23 ▲1.06
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0337.00 ▼0.8434.13 ▲2.00
Add New Post /wp-admin/post-new.php1,537 ▲423.09 ▼0.06659.37 ▲10.1854.32 ▼3.96
Media Library /wp-admin/upload.php1,391 ▲64.30 ▲0.1297.01 ▼0.6141.28 ▼3.00

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

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

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/installments-for-stripe-gf/installments-for-stripe-gf.php:25

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: subscriptions, layaway, gf, installments, stripe...

installments-for-stripe-gf/installments-for-stripe-gf.php Passed 13 tests

Analyzing the main PHP file in "Installments for Gravity Forms and Stripe" version 1.2
90 characters long description:
A plugin for Gravity Forms and Stripe Integration (official) to allow installment payments

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
Everything looks great! No dangerous files found in this plugin152 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39522152

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected