83% stripe-checkouts

Code Review | WP Simple Pay Lite Companion

WordPress plugin WP Simple Pay Lite Companion scored83%from 54 tests.

About plugin

  • Plugin page: stripe-checkouts
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.5-5.0.2
  • WordPress version: 6.3.1
  • First release: Dec 9, 2014
  • Latest release: Dec 24, 2018
  • Number of updates: 24
  • Update frequency: every 61.5 days
  • Top authors: kmb40 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /13,115 total downloads

Benchmarks

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.00MB] [CPU: ▼1.97ms] Passed 4 tests

Analyzing server-side resources used by WP Simple Pay Lite Companion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.23 ▼1.31
Dashboard /wp-admin3.31 ▲0.0054.45 ▲2.49
Posts /wp-admin/edit.php3.36 ▲0.0049.78 ▲1.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.46 ▼10.07
Media Library /wp-admin/upload.php3.23 ▲0.0034.27 ▲2.30

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Simple Pay Lite Companion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.14 ▼1.441.89 ▼0.1443.52 ▼0.48
Dashboard /wp-admin2,206 ▲184.83 ▼0.01111.29 ▲4.9842.68 ▲2.45
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0041.37 ▼3.0136.18 ▼5.95
Add New Post /wp-admin/post-new.php1,514 ▼517.51 ▼5.87653.70 ▼8.8564.19 ▲12.23
Media Library /wp-admin/upload.php1,388 ▲64.21 ▼0.0198.86 ▼2.6040.97 ▼6.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% 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 50% 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stripe-checkouts/wp-simple-pay-companion.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: shortcode, ecommerce, e-commerce, payments, stripe...

stripe-checkouts/wp-simple-pay-companion.php 77% from 13 tests

This is the main PHP file of "WP Simple Pay Lite Companion" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stripe-checkouts.php" instead of "wp-simple-pay-companion.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin344 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14531258
JavaScript10075
CSS12011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/powered-by-stripe.png2.29KB1.21KB▼ 47.22%
includes/icon-16x16.png4.17KB0.78KB▼ 81.36%