74% simple-stripe-checkout

Code Review | Simple Stripe Checkout

WordPress plugin Simple Stripe Checkout scored74%from 54 tests.

About plugin

  • Plugin page: simple-stripe-che...
  • Plugin version: 1.1.27
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.13-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 28, 2020
  • Latest release: Nov 11, 2023
  • Number of updates: 39
  • Update frequency: every 34.0 days
  • Top authors: growniche (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,151 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.58MB] [CPU: ▲4.45ms] Passed 4 tests

A check of server-side resources used by Simple Stripe Checkout
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5536.06 ▼5.65
Dashboard /wp-admin3.94 ▲0.6449.53 ▲8.37
Posts /wp-admin/edit.php3.99 ▲0.6450.00 ▲9.32
Add New Post /wp-admin/post-new.php6.46 ▲0.5795.27 ▲11.27
Media Library /wp-admin/upload.php3.80 ▲0.5738.40 ▲5.74
Webhook /wp-admin/admin.php?page=gssc_hook-config-form6.5748.06
Simple Stripe Checkout /wp-admin/admin.php?page=gssc3.7733.47
Product registration /wp-admin/admin.php?page=gssc_product-edit-form3.7846.14
Initial setting /wp-admin/admin.php?page=gssc_initial-config-form3.7735.37
Product list /wp-admin/admin.php?page=gssc_product-list3.7733.17
Mail setting /wp-admin/admin.php?page=gssc_mail-config-form3.7838.28

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Stripe Checkout
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15213.38 ▼1.338.55 ▲6.7841.60 ▼3.85
Dashboard /wp-admin2,241 ▲605.57 ▼0.1088.85 ▼17.2739.93 ▲1.47
Posts /wp-admin/edit.php2,143 ▲431.96 ▼0.0538.97 ▼2.0136.85 ▼0.02
Add New Post /wp-admin/post-new.php1,563 ▲3723.40 ▲0.33597.16 ▼39.8249.01 ▼3.42
Media Library /wp-admin/upload.php1,446 ▲434.20 ▲0.0498.47 ▼6.6542.49 ▼1.31
Webhook /wp-admin/admin.php?page=gssc_hook-config-form7051.127.0217.03
Simple Stripe Checkout /wp-admin/admin.php?page=gssc1,1112.0125.2731.50
Product registration /wp-admin/admin.php?page=gssc_product-edit-form1,0492.0124.5460.08
Initial setting /wp-admin/admin.php?page=gssc_initial-config-form8342.0023.3330.46
Product list /wp-admin/admin.php?page=gssc_product-list1,1112.0324.5927.58
Mail setting /wp-admin/admin.php?page=gssc_mail-config-form9412.0224.6649.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 no errors were found, 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
  • 248× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/lib/Service/Apps/AppsServiceFactory.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/lib/Service/AccountService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/lib/Exception/CardException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/lib/Service/ApplePayDomainService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/lib/Plan.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/lib/Tax/Calculation.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/lib/Treasury/FinancialAccountFeatures.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/lib/Service/FileService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/lib/Service/SubscriptionScheduleService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/lib/Service/SubscriptionService.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: simple, stripe, checkout

simple-stripe-checkout/simple-stripe-checkout.php Passed 13 tests

The entry point to "Simple Stripe Checkout" version 1.1.27 is a PHP file that has certain tags in its header comment area
66 characters long description:
決済プラットフォーム「Stripe」の連携プラグイン

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 fix the following items
  • Do not distribute dangerous files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/simple-stripe-checkout/lib/stripe-php-10.12.1/data/ca-certificates.crt
13,380 lines of code in 285 files:
LanguageFilesBlank linesComment linesLines of code
PHP2802,62213,24811,426
Markdown277801,518
PO File1164164366
JSON10048
JavaScript10022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.88
▷ Minimum class complexity1.00
▷ Maximum class complexity358.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces36
Interfaces9
Traits9
Classes265
▷ Abstract classes103.77%
▷ Concrete classes25596.23%
▷ Final classes00.00%
Methods936
▷ Static methods19921.26%
▷ Public methods84390.06%
▷ Protected methods505.34%
▷ Private methods434.59%
Functions27
▷ Named functions00.00%
▷ Anonymous functions27100.00%
Constants1,143
▷ Global constants20.17%
▷ Class constants1,14199.83%
▷ Public constants1,141100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin