62% wp-payment-form

Code Review | Simple Payment Donations & Subscriptions Plugin by Paymattic - Best Payments Plugin for WP

WordPress plugin Simple Payment Donations & Subscriptions Plugin by Paymattic - Best Payments Plugin for WP scored62%from 54 tests.

About plugin

  • Plugin page: wp-payment-form
  • Plugin version: 4.4.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Feb 15, 2019
  • Latest release: Oct 16, 2023
  • Number of updates: 57
  • Update frequency: every 29.9 days
  • Top authors: adreastrian (50.88%)techjewel (47.37%)hasanuzzamanshamim (5.26%)

Code review

54 tests

User reviews

30 reviews

Install metrics

3,000+ active /67,799 total downloads

Benchmarks

Plugin footprint 65% 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: ▲3.00MB] [CPU: ▲15.46ms] Passed 4 tests

A check of server-side resources used by Simple Payment Donations & Subscriptions Plugin by Paymattic - Best Payments Plugin for WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /6.36 ▲2.8951.40 ▲12.51
Dashboard /wp-admin7.69 ▲4.3873.38 ▲25.08
Posts /wp-admin/edit.php6.34 ▲2.9868.48 ▲19.31
Add New Post /wp-admin/post-new.php9.12 ▲3.22105.51 ▲4.92
Media Library /wp-admin/upload.php6.15 ▲2.9262.77 ▲27.75

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 508 new files
Database: 7 new tables, 8 new options
New tables
wp_wpf_scheduled_actions
wp_wpf_submission_activities
wp_wpf_submissions
wp_wpf_meta
wp_wpf_order_transactions
wp_wpf_order_items
wp_wpf_subscriptions
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
fluentform_payment_settings_stripe
can_compress_scripts
widget_recent-comments
widget_recent-posts
wppayform_confirmation_pages

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Payment Donations & Subscriptions Plugin by Paymattic - Best Payments Plugin for WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,014 ▲22814.71 ▲0.301.57 ▼0.2925.04 ▼16.35
Dashboard /wp-admin2,381 ▲2045.61 ▼0.0983.08 ▼6.7276.55 ▲34.46
Posts /wp-admin/edit.php2,255 ▲1552.02 ▲0.0535.43 ▲1.6433.67 ▼0.41
Add New Post /wp-admin/post-new.php1,773 ▲23620.95 ▲2.82682.24 ▲54.0141.03 ▼36.32
Media Library /wp-admin/upload.php1,554 ▲1514.20 ▲0.00103.22 ▲5.6463.04 ▲20.05
Reports /wp-admin/admin.php?page=wppayform.php#/reports1,5889.49261.2440.41
Customers /wp-admin/admin.php?page=wppayform.php#/customers1,5749.32242.5234.07
All Forms /wp-admin/admin.php?page=wppayform.php#/1,66110.27119.4786.69
Entries /wp-admin/admin.php?page=wppayform.php#/entries1,7159.83144.92135.71
Support & Debug /wp-admin/admin.php?page=wppayform.php#/support1,9849.86100.79110.78
Payment Gateway /wp-admin/admin.php?page=wppayform.php#/gateways/stripe2,36010.24104.92103.88
Settings /wp-admin/wppayform.php?page=wppayform_settings260.420.0812.75
Create Form /wp-admin/admin.php?page=wppayform.php#/new-form3,48812.20114.56107.33
Integrations /wp-admin/admin.php?page=wppayform.php#/integrations1,8909.7899.5294.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie tables detected upon uninstall: 7 tables
    • wp_wpf_submissions
    • wp_wpf_scheduled_actions
    • wp_wpf_order_transactions
    • wp_wpf_subscriptions
    • wp_wpf_meta
    • wp_wpf_submission_activities
    • wp_wpf_order_items
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • wppayform_confirmation_pages
    • fluentform_payment_settings_stripe
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-payment-form/app/Views/receipt/custom_css.php
    • > /wp-content/plugins/wp-payment-form/app/Views/admin/notice/deactivate-form.php
  • 102× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'WPPayForm\\Framework\\Database\\ConnectionInterface' not found in wp-content/plugins/wp-payment-form/vendor/wpfluent/framework/src/WPFluent/Database/Query/WPDBConnection.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-payment-form/app/Views/admin/menu.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WPPayForm\\Framework\\Database\\Orm\\Relations\\Relation' not found in wp-content/plugins/wp-payment-form/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/BelongsTo.php:10
    • > PHP Fatal error
      Trait 'WPPayForm\\Framework\\Support\\MacroableTrait' not found in wp-content/plugins/wp-payment-form/vendor/wpfluent/framework/src/WPFluent/Database/Query/Builder.php on line 21
    • > PHP Fatal error
      Uncaught Error: Interface 'WPPayForm\\Framework\\Database\\Orm\\Scope' not found in wp-content/plugins/wp-payment-form/vendor/wpfluent/framework/src/WPFluent/Database/Orm/SoftDeletingScope.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPPayForm\\Framework\\Database\\Orm\\Relations\\HasOneOrMany' not found in wp-content/plugins/wp-payment-form/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/HasOne.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPPayForm\\Framework\\Support\\Collection' not found in wp-content/plugins/wp-payment-form/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Collection.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-payment-form/app/Views/admin/show_review.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WPPayForm\\Framework\\Database\\Orm\\Relations\\HasOneOrMany' not found in wp-content/plugins/wp-payment-form/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/MorphOneOrMany.php:9
    • > PHP Notice
      Undefined variable: js_files in wp-content/plugins/wp-payment-form/app/Views/frameless/footer.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/wppayform.php?page=wppayform_settings
    • > Network (severe)
    wp-admin/wppayform.php?page=wppayform_settings - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: stripe payments, payment form, paypal, payments, donations...

wp-payment-form/wp-payment-form.php Passed 13 tests

The primary PHP file in "Simple Payment Donations & Subscriptions Plugin by Paymattic - Best Payments Plugin for WP" version 4.4.4 is used by WordPress to initiate all plugin functionality
105 characters long description:
Create and Accept Payments in minutes with Stripe, PayPal & other top gateways with built-in form builder

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
There were no executable files found in this plugin62,541 lines of code in 415 files:
LanguageFilesBlank linesComment linesLines of code
PHP2786,79212,71135,153
JavaScript303,18094124,005
CSS146471,858
SVG88151,370
JSON400154
Markdown1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.41
▷ Minimum class complexity1.00
▷ Maximum class complexity251.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces42
Interfaces16
Traits12
Classes211
▷ Abstract classes125.69%
▷ Concrete classes19994.31%
▷ Final classes00.00%
Methods2,418
▷ Static methods37115.34%
▷ Public methods1,92779.69%
▷ Protected methods39816.46%
▷ Private methods933.85%
Functions158
▷ Named functions138.23%
▷ Anonymous functions14591.77%
Constants101
▷ Global constants98.91%
▷ Class constants9291.09%
▷ Public constants92100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
45 PNG files occupy 1.24MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/forms/demo_form.png22.10KB7.07KB▼ 68.02%
assets/images/vendor/intl-tel-input/build/flags.png69.20KB23.42KB▼ 66.16%
assets/images/integrations/sendinblue.png9.76KB10.20KB0.00%
assets/images/document.png4.58KB3.56KB▼ 22.23%
assets/images/integrations/webhook.png4.44KB4.61KB0.00%