62% stripe-manager

Code Review | WP Simple Pay Lite Manager

WordPress plugin WP Simple Pay Lite Manager scored62%from 54 tests.

About plugin

  • Plugin page: stripe-manager
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.5-5.0.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2015
  • Latest release: Jan 18, 2019
  • Number of updates: 15
  • Update frequency: every 86.7 days
  • Top authors: kmb40 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,396 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by WP Simple Pay Lite Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.08 ▼5.44
Dashboard /wp-admin3.31 ▼0.0352.14 ▼13.51
Posts /wp-admin/edit.php3.36 ▲0.0151.59 ▼0.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.90 ▼10.80
Media Library /wp-admin/upload.php3.24 ▲0.0135.63 ▲0.62
Manager /wp-admin/admin.php?page=stripe-transaction-page3.2637.52

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables
wp_stripe_transaction_details
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Simple Pay Lite Manager: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.23 ▼0.031.80 ▼0.1139.52 ▼4.12
Dashboard /wp-admin2,194 ▲175.55 ▼0.1092.62 ▼10.2740.76 ▼3.99
Posts /wp-admin/edit.php2,102 ▼12.02 ▲0.0635.26 ▲0.8235.42 ▼3.08
Add New Post /wp-admin/post-new.php1,528 ▲223.08 ▲0.04690.57 ▲19.8451.34 ▼9.46
Media Library /wp-admin/upload.php1,402 ▲24.23 ▲0.0298.34 ▼9.0642.12 ▼1.42
Manager /wp-admin/admin.php?page=stripe-transaction-page9032.0524.6826.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_stripe_transaction_details
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 return non-empty strings:
    • > /wp-content/plugins/stripe-manager/transaction-view.php
  • 70× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/stripe-manager/transaction-view.php on line 70
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/stripe-manager/transaction-view.php on line 86
    • > PHP Notice
      Trying to get property 'stripe_object' of non-object in wp-content/plugins/stripe-manager/transaction-view.php on line 52
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/stripe-manager/transaction-view.php on line 44
    • > PHP Notice
      Trying to get property 'stripe_amount' of non-object in wp-content/plugins/stripe-manager/transaction-view.php on line 40
    • > PHP Notice
      Trying to get property 'stripe_paid' of non-object in wp-content/plugins/stripe-manager/transaction-view.php on line 44
    • > PHP Notice
      Trying to get property 'stripe_card_object' of non-object in wp-content/plugins/stripe-manager/transaction-view.php on line 74
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/stripe-manager/transaction-view.php on line 94
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/stripe-manager/transaction-view.php on line 16
    • > PHP Notice
      Trying to get property 'stripe_address_line1' of non-object in wp-content/plugins/stripe-manager/transaction-view.php on line 106

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=stripe-transaction-page
    • > Network (severe)
    wp-content/plugins/simple-stripe-checkout-manager/css/stripe-transaction-style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 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
5 plugin tags: ecommerce, simple stripe checkout, stripe, e-commerce, stripe checkout

stripe-manager/simple-stripe-checkout-manager.php 92% from 13 tests

The primary PHP file in "WP Simple Pay Lite Manager" version 1.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("stripe-manager.php" instead of "simple-stripe-checkout-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin477 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP48339412
CSS10060
JavaScript1015

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.19
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin