84% payform

Code Review | Stripe and PayPal Payment Forms for Wordpress - PayForm

WordPress plugin Stripe and PayPal Payment Forms for Wordpress - PayForm scored84%from 54 tests.

About plugin

  • Plugin page: payform
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Dec 9, 2017
  • Latest release: Sep 1, 2018
  • Number of updates: 31
  • Update frequency: every 8.6 days
  • Top authors: payform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /8,181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Stripe and PayPal Payment Forms for Wordpress - PayForm
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.86 ▼2.16
Dashboard /wp-admin3.31 ▼0.0347.82 ▼9.23
Posts /wp-admin/edit.php3.36 ▲0.0145.75 ▼0.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.69 ▼17.46
Media Library /wp-admin/upload.php3.23 ▲0.0136.56 ▲4.56

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Stripe and PayPal Payment Forms for Wordpress - PayForm
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲14913.60 ▼0.778.53 ▲6.7942.16 ▲0.72
Dashboard /wp-admin2,220 ▲324.86 ▼0.18100.87 ▼7.5643.23 ▼1.91
Posts /wp-admin/edit.php2,103 ▲142.04 ▲0.0535.20 ▼1.7435.02 ▼1.21
Add New Post /wp-admin/post-new.php1,540 ▲2623.23 ▲5.47627.23 ▼25.3248.36 ▼6.47
Media Library /wp-admin/upload.php1,402 ▲114.20 ▲0.0094.12 ▼8.0642.88 ▼0.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payform/payform.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

payform/payform.php Passed 13 tests

This is the main PHP file of "Stripe and PayPal Payment Forms for Wordpress - PayForm" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
Embed a payment form anywhere on your WordPress site

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 plugin131 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP115784
JavaScript211047

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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 functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin