68% checkout-plugins-stripe-woo

Code Review | Stripe Payments For WooCommerce by Checkout Plugins

WordPress plugin Stripe Payments For WooCommerce by Checkout Plugins scored68%from 54 tests.

About plugin

  • Plugin page: checkout-plugins-...
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 23, 2021
  • Latest release: Oct 16, 2023
  • Number of updates: 32
  • Update frequency: every 21.8 days
  • Top authors: brainstormworg (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

100,000+ active /1,221,219 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.16MB] [CPU: ▲8.21ms] Passed 4 tests

This is a short check of server-side resources used by Stripe Payments For WooCommerce by Checkout Plugins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /6.66 ▲3.1955.53 ▲15.29
Dashboard /wp-admin6.48 ▲3.1363.33 ▲2.64
Posts /wp-admin/edit.php6.53 ▲3.1771.00 ▲14.05
Add New Post /wp-admin/post-new.php9.06 ▲3.17105.46 ▲0.87
Media Library /wp-admin/upload.php6.40 ▲3.1755.48 ▲22.24

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 311 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Stripe Payments For WooCommerce by Checkout Plugins
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲10414.22 ▼0.061.51 ▼0.1139.56 ▼4.47
Dashboard /wp-admin2,271 ▲915.63 ▲0.0384.89 ▼1.2239.55 ▼5.76
Posts /wp-admin/edit.php2,156 ▲562.01 ▲0.0539.50 ▼2.2135.37 ▼1.23
Add New Post /wp-admin/post-new.php1,572 ▲4421.99 ▼1.36758.04 ▲153.4154.91 ▼2.69
Media Library /wp-admin/upload.php1,456 ▲564.24 ▲0.0198.65 ▼0.5642.09 ▼3.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/update_certs.php
    • > /wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/build.php
  • 221× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Stripe\\BaseStripeClientInterface' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/StripeStreamingClientInterface.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/BitcoinTransaction.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'CPSW\\Gateway\\Abstract_Payment_Gateway' not found in wp-content/plugins/checkout-plugins-stripe-woo/gateway/local-gateway.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/Price.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/Service/Reporting/ReportRunService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CPSW\\Gateway\\Local_Gateway' not found in wp-content/plugins/checkout-plugins-stripe-woo/gateway/stripe/ideal.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/Service/ProductService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/Service/AccountService.php:7
    • > PHP Fatal error
      Trait 'CPSW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/checkout-plugins-stripe-woo/wizard/onboarding.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: stripe, express checkout, credit card, apple pay, google pay

checkout-plugins-stripe-woo/checkout-plugins-stripe-woo.php 85% from 13 tests

The entry point to "Stripe Payments For WooCommerce by Checkout Plugins" version 1.5.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.4" instead of "3.0")
  • Description: The description should be shorter than 140 characters (currently 180 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/data/ca-certificates.crt
19,394 lines of code in 303 files:
LanguageFilesBlank linesComment linesLines of code
PHP2553,21212,74914,028
JavaScript17303572,521
CSS42401171,307
Markdown26080951
SVG2007452
Bourne Shell114871
XML10031
make19027
Sass1003
YAML1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.89
▷ Minimum class complexity1.00
▷ Maximum class complexity237.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces31
Interfaces9
Traits10
Classes231
▷ Abstract classes114.76%
▷ Concrete classes22095.24%
▷ Final classes00.00%
Methods1,052
▷ Static methods18417.49%
▷ Public methods96892.02%
▷ Protected methods383.61%
▷ Private methods464.37%
Functions18
▷ Named functions00.00%
▷ Anonymous functions18100.00%
Constants778
▷ Global constants121.54%
▷ Class constants76698.46%
▷ Public constants766100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected