10% wp-full-stripe-free

Code Review | WP Full Stripe Free

WordPress plugin WP Full Stripe Free scored 10% from 54 tests.

About plugin

  • Plugin page: wp-full-stripe-free
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.4
  • WordPress version: 5.9.2
  • First release: Jul 29, 2014
  • Latest release: Feb 12, 2018
  • Number of updates: 23
  • Update frequency: every 56.3 days
  • Top authors: Mammothology (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active / 30,495 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-full-stripe-free/include/wp-full-stripe-main.php+54
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.99MB] [CPU: ▼298.65ms] Passed 4 tests

A check of server-side resources used by WP Full Stripe Free
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.60 ▲1.0557.24 ▲4.37
Dashboard /wp-admin4.46 ▲1.0236.86 ▲1.23
Posts /wp-admin/edit.php4.68 ▲1.0141.94 ▼1.69
Add New Post /wp-admin/post-new.php7.92 ▲0.9297.13 ▼1,198.51
Media Library /wp-admin/upload.php4.34 ▲1.0131.71 ▲8.58
Help /wp-admin/admin.php?page=fullstripe-help-f4.2824.01
About /wp-admin/admin.php?page=fullstripe-about-f4.2824.45
Edit Form /wp-admin/admin.php?page=fullstripe-edit-form-f4.2824.98
Payments /wp-admin/admin.php?page=fullstripe-payments-f4.2824.09
Settings /wp-admin/admin.php?page=fullstripe-settings-f4.2824.44

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 184 new files
Database: 2 new tables, 1 new option
New tables
wp_fullstripe_payment_forms
wp_fullstripe_payments
New WordPress options
fullstripe_options_f

Browser metrics Passed 4 tests

Checking browser requirements for WP Full Stripe Free
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,839 ▲11715.74 ▲0.126.35 ▲0.403.06 ▲0.82
Dashboard /wp-admin2,937 ▲796.08 ▼0.15117.68 ▼20.58158.62 ▼5.15
Posts /wp-admin/edit.php2,733 ▲393.23 ▼0.0064.12 ▼4.30132.15 ▼9.90
Add New Post /wp-admin/post-new.php1,739 ▲7820.76 ▲4.93482.59 ▲58.75154.73 ▲0.54
Media Library /wp-admin/upload.php1,747 ▲525.44 ▼0.08150.00 ▲7.89186.08 ▲1.87
Help /wp-admin/admin.php?page=fullstripe-help-f1,6956.07306.57118.89
About /wp-admin/admin.php?page=fullstripe-about-f1,7716.07148.86173.44
Edit Form /wp-admin/admin.php?page=fullstripe-edit-form-f1,3727.72117.39102.73
Payments /wp-admin/admin.php?page=fullstripe-payments-f1,6407.70119.58113.38
Settings /wp-admin/admin.php?page=fullstripe-settings-f2,1956.18129.39155.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_fullstripe_payments
    • wp_fullstripe_payment_forms
  • Zombie WordPress options detected upon uninstall: 1 option
    • fullstripe_options_f

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fullstripe-settings-f
    • > User notice in wp-includes/functions.php+5768
    WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/build.php
    • > /wp-content/plugins/wp-full-stripe-free/pages/forms/fullstripe_invalid_shortcode.php
    • > /wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/examples/oauth.php
  • 134× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/tests/InvoiceTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/lib/Source.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/lib/Error/Api.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ExternalAccount' not found in wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/lib/BankAccount.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/tests/TransferTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/lib/CountrySpec.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Error\\OAuth\\OAuthBase' not found in wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/lib/Error/OAuth/UnsupportedGrantType.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/tests/PayoutTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/lib/Error/SignatureVerification.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Error\\OAuth\\OAuthBase' not found in wp-content/plugins/wp-full-stripe-free/vendor/stripe/stripe-php/lib/Error/OAuth/InvalidScope.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-full-stripe-free === )
The official readme.txt might help

wp-full-stripe-free/wp-full-stripe-free.php Passed 13 tests

This is the main PHP file of "WP Full Stripe Free" version 1.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Free version of WP Full Stripe, a Stripe payments plugin.

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/wp-full-stripe-free/vendor/stripe/stripe-php/data/ca-certificates.crt
11,905 lines of code in 158 files:
LanguageFilesBlank linesComment linesLines of code
PHP1451,3412,2918,755
CSS4469291,973
JavaScript412558730
Markdown22770381
JSON10036
XML20030

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.10
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces5
Interfaces4
Traits0
Classes126
▷ Abstract classes86.35%
▷ Concrete classes11893.65%
▷ Final classes00.00%
Methods574
▷ Static methods18031.36%
▷ Public methods51890.24%
▷ Protected methods274.70%
▷ Private methods295.05%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants34
▷ Global constants720.59%
▷ Class constants2779.41%
▷ Public constants27100.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
19 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
vendor/stripe/stripe-php/data/test.png0.09KB0.09KB0.00%
img/checkout.png5.83KB3.09KB▼ 46.98%