84% sparkle-paddle-payment-gateway-lite

Code Review | Sparkle Paddle Payment Gateway Lite

WordPress plugin Sparkle Paddle Payment Gateway Lite scored84%from 54 tests.

About plugin

  • Plugin page: sparkle-paddle-pa...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2
  • WordPress version: 6.3.1
  • First release: Oct 6, 2021
  • Latest release: Apr 2, 2023
  • Number of updates: 14
  • Update frequency: every 38.8 days
  • Top authors: sparklewpthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,536 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.82ms] Passed 4 tests

Analyzing server-side resources used by Sparkle Paddle Payment Gateway Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0250.37 ▲7.40
Dashboard /wp-admin3.32 ▲0.0249.22 ▲1.32
Posts /wp-admin/edit.php3.38 ▲0.0245.32 ▼2.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.90 ▼2.01
Media Library /wp-admin/upload.php3.25 ▲0.0236.18 ▼0.17

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Sparkle Paddle Payment Gateway Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.19 ▼1.611.81 ▲0.1036.55 ▼10.84
Dashboard /wp-admin2,212 ▲215.76 ▼0.1498.04 ▼4.4039.61 ▼5.94
Posts /wp-admin/edit.php2,095 ▲62.01 ▲0.0237.09 ▲0.6337.21 ▲1.62
Add New Post /wp-admin/post-new.php1,534 ▲2018.65 ▲0.96654.51 ▼29.7352.57 ▼5.31
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0097.08 ▼1.2439.79 ▼5.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/sparkle-paddle-payment-gateway-lite/includes/class_sparkle_paddle_payment_woo_gateway_inline.php
    • > /wp-content/plugins/sparkle-paddle-payment-gateway-lite/sparkle-paddle-payment-gateway-lite.php
    • > /wp-content/plugins/sparkle-paddle-payment-gateway-lite/includes/edd_plugin_init.php
    • > /wp-content/plugins/sparkle-paddle-payment-gateway-lite/includes/class_sparkle_sppg_library.php
    • > /wp-content/plugins/sparkle-paddle-payment-gateway-lite/includes/woo_plugin_init.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: paddle addon, paddle, paddle for easy digital downloads, paddle payment gateway, paddle payment...

sparkle-paddle-payment-gateway-lite/sparkle-paddle-payment-gateway-lite.php 85% from 13 tests

This is the main PHP file of "Sparkle Paddle Payment Gateway Lite" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,039 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP52362721,039

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity25.80
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods43
▷ Static methods1023.26%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon1.png1.33KB0.76KB▼ 42.69%
assets/images/icon2.png5.01KB2.65KB▼ 47.02%
assets/images/icon3.png7.79KB3.36KB▼ 56.84%