84% sprintcheckout

Code Review | Sprintcheckout - Accept crypto payments bankless, fast and cheap

WordPress plugin Sprintcheckout - Accept crypto payments bankless, fast and cheap scored84%from 54 tests.

About plugin

  • Plugin page: sprintcheckout
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 7, 2021
  • Latest release: Jun 6, 2023
  • Number of updates: 25
  • Update frequency: every 23.5 days
  • Top authors: klap (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /964 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▲1.58ms] Passed 4 tests

A check of server-side resources used by Sprintcheckout - Accept crypto payments bankless, fast and cheap
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.54 ▲6.30
Dashboard /wp-admin3.31 ▲0.0149.16 ▲1.43
Posts /wp-admin/edit.php3.36 ▲0.0153.77 ▲4.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.53 ▲0.92
Media Library /wp-admin/upload.php3.23 ▲0.0036.89 ▼0.98

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Sprintcheckout - Accept crypto payments bankless, fast and cheap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.30 ▼1.251.94 ▼0.2642.68 ▲0.13
Dashboard /wp-admin2,224 ▲186.04 ▲0.9696.97 ▼13.4441.38 ▼3.82
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0539.50 ▲3.1535.55 ▼3.06
Add New Post /wp-admin/post-new.php1,526 ▼1923.52 ▲0.19673.88 ▼17.4063.82 ▲6.37
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.0897.04 ▼38.1640.37 ▼20.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/sprintcheckout/includes/class-wc-payment-gateway-sprintcheckout.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: ecommerce, gateway, ethereum, bitcoin, woocommerce...

sprintcheckout/sprintcheckout-payments-woocommerce.php 92% from 13 tests

"Sprintcheckout - Accept crypto payments bankless, fast and cheap" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sprintcheckout.php" instead of "sprintcheckout-payments-woocommerce.php")

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 plugin117 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22653117

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods116.67%
▷ Private methods116.67%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 3.00MB with 2.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png604.52KB206.36KB▼ 65.86%
assets/banner-1544x500.png59.20KB27.70KB▼ 53.21%
assets/screenshot-3.png575.36KB159.47KB▼ 72.28%
assets/screenshot-6.png834.12KB235.45KB▼ 71.77%
assets/screenshot-4.png859.65KB203.18KB▼ 76.36%