62% accept-stripe-payments-using-contact-form-7

Code Review | Accept Stripe Payments Using Contact Form 7

WordPress plugin Accept Stripe Payments Using Contact Form 7 scored62%from 54 tests.

About plugin

  • Plugin page: accept-stripe-pay...
  • Plugin version: 1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Nov 3, 2020
  • Latest release: Aug 18, 2023
  • Number of updates: 31
  • Update frequency: every 32.8 days
  • Top authors: zealopensource (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /1,864 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Accept Stripe Payments Using Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.01 ▲0.73
Dashboard /wp-admin3.31 ▼0.0444.43 ▼16.69
Posts /wp-admin/edit.php3.36 ▲0.0046.74 ▼6.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.68 ▼25.96
Media Library /wp-admin/upload.php3.23 ▲0.0035.61 ▲1.31
Stripe Add-on /wp-admin/edit.php?post_type=cf7sa_data3.0426.25

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 309 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Accept Stripe Payments Using Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.23 ▼1.151.91 ▲0.2341.19 ▼3.10
Dashboard /wp-admin2,206 ▲215.85 ▼0.03102.29 ▼0.3838.09 ▼1.84
Posts /wp-admin/edit.php2,071 ▼181.97 ▼0.0834.45 ▼8.5634.27 ▼2.20
Add New Post /wp-admin/post-new.php1,533 ▲1423.08 ▼0.09671.13 ▲13.2655.12 ▼4.08
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0693.01 ▼7.9139.30 ▼3.52
Stripe Add-on /wp-admin/edit.php?post_type=cf7sa_data280.440.073.74

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/front/template/cf7sa-info.php
    • > /wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/update_certs.php
  • 249× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/sdk/Mandate.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/sdk/Collection.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/sdk/Service/BillingPortal/ConfigurationService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/sdk/Service/Treasury/TransactionService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/sdk/Tax/Transaction.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/sdk/Service/SetupAttemptService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/sdk/Service/Radar/ValueListItemService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/sdk/Coupon.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/sdk/CreditNoteLineItem.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Stripe\\BaseStripeClientInterface' not found in wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/sdk/StripeStreamingClientInterface.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=cf7sa_data
    • > Network (severe)
    wp-admin/edit.php?post_type=cf7sa_data - Failed to load resource: the server responded with a status of 500 (Internal Server Error)


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Stripe Demo Form), #2 (Stripe Settings and Configuration), #3 (Stripe Card Field Configuration), #4 (Stripe Payments List Page), #5 (Stripe Transaction Detail Page)
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt might help

accept-stripe-payments-using-contact-form-7/accept-stripe-payments-using-contact-form-7.php 92% from 13 tests

The principal PHP file in "Accept Stripe Payments Using Contact Form 7" v. 1.9 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/accept-stripe-payments-using-contact-form-7/inc/lib/data/ca-certificates.crt
17,026 lines of code in 306 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.53
▷ Minimum class complexity1.00
▷ Maximum class complexity204.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
▷ Abstract classes103.72%
▷ Concrete classes25996.28%
▷ Final classes00.00%
▷ Static methods18219.51%
▷ Public methods84991.00%
▷ Protected methods414.39%
▷ Private methods434.61%
▷ Named functions317.65%
▷ Anonymous functions1482.35%
▷ Global constants100.96%
▷ Class constants1,02799.04%
▷ Public constants1,027100.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
There were not PNG files found in your plugin