84% solpress-payment-gateway

Code Review | SolPress WooCommerce Payment Gateway

WordPress plugin SolPress WooCommerce Payment Gateway scored84%from 54 tests.

About plugin

  • Plugin page: solpress-payment-...
  • Plugin version: 2.0.27
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2022
  • Latest release: Aug 13, 2023
  • Number of updates: 21
  • Update frequency: every 23.6 days
  • Top authors: solpressplugins (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /1,011 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
This plugin's installer ran successfully

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

Server-side resources used by SolPress WooCommerce Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0622.43 ▼19.13
Dashboard /wp-admin3.32 ▲0.0247.71 ▲0.99
Posts /wp-admin/edit.php3.37 ▲0.0248.25 ▼1.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.96 ▼20.62
Media Library /wp-admin/upload.php3.25 ▲0.0235.71 ▲3.17

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 111 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for SolPress WooCommerce Payment Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,484 ▼25113.22 ▼1.080.52 ▼1.6116.97 ▼26.30
Dashboard /wp-admin2,228 ▲374.85 ▼1.0298.72 ▼9.1339.34 ▼1.46
Posts /wp-admin/edit.php2,107 ▲152.00 ▼0.0240.79 ▼1.2136.36 ▼0.73
Add New Post /wp-admin/post-new.php1,528 ▲923.17 ▲0.20663.51 ▼10.8269.75 ▲14.41
Media Library /wp-admin/upload.php1,401 ▲134.24 ▲0.0495.60 ▼13.8543.78 ▲0.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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

SRP 50% 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 take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/solpress-payment-gateway/admin/partials/solpress-admin-display.php
    • > /wp-content/plugins/solpress-payment-gateway/public/partials/solpress-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: crypto woocommerce, phantom, payment gateway, phantom wallet, solana pay...

solpress-payment-gateway/solpress.php 85% from 13 tests

The primary PHP file in "SolPress WooCommerce Payment Gateway" version 2.0.27 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("solpress-payment-gateway.php" instead of "solpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,831 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
TypeScript323002401,646
PHP15192718616
Sass7353212
JSON500175
JavaScript162192104
SVG40029
Markdown115023
HTML232021
Bourne Shell2004
CSS3081

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.11
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods3280.00%
▷ Protected methods12.50%
▷ Private methods717.50%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants7
▷ Global constants7100.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
There were not PNG files found in your plugin