Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.44ms] Passed 4 tests
This is a short check of server-side resources used by Sargapay
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.70 ▲3.39 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.94 ▲1.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.33 ▼2.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.18 ▼16.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.20 ▼0.41 |
Server storage [IO: ▲21.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 140 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Sargapay
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.11 ▼1.38 | 2.16 ▲0.27 | 48.26 ▲1.94 |
Dashboard /wp-admin | 2,206 ▲15 | 4.83 ▼1.05 | 111.79 ▲4.50 | 41.35 ▼3.17 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.01 | 34.55 ▼0.89 | 33.32 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.28 ▲0.06 | 675.52 ▲28.89 | 60.73 ▲9.00 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▼0.01 | 110.41 ▲9.99 | 46.74 ▼2.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/sargapay/public/partials/sargapay-public-display.php
- > /wp-content/plugins/sargapay/admin/partials/sargapay-admin-display.php
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/sargapay/paymentGateway/cardano/vendor/chillerlan/php-qrcode/public/qrcode.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Data\\QRDataAbstract' not found in wp-content/plugins/sargapay/paymentGateway/cardano/vendor/chillerlan/php-qrcode/src/Data/Number.php:25
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Data\\QRDataAbstract' not found in wp-content/plugins/sargapay/paymentGateway/cardano/vendor/chillerlan/php-qrcode/src/Data/Kanji.php:25
- > PHP Fatal error
Uncaught Error: Interface 'chillerlan\\QRCode\\Data\\QRDataInterface' not found in wp-content/plugins/sargapay/paymentGateway/cardano/vendor/chillerlan/php-qrcode/src/Data/QRDataAbstract.php:24
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Data\\QRDataAbstract' not found in wp-content/plugins/sargapay/paymentGateway/cardano/vendor/chillerlan/php-qrcode/src/Data/AlphaNum.php:25
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QROutputAbstract' not found in wp-content/plugins/sargapay/paymentGateway/cardano/vendor/chillerlan/php-qrcode/src/Output/QRMarkup.php:22
- > PHP Fatal error
Uncaught Error: Interface 'chillerlan\\QRCode\\Output\\QROutputInterface' not found in wp-content/plugins/sargapay/paymentGateway/cardano/vendor/chillerlan/php-qrcode/src/Output/QROutputAbstract.php:23
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QROutputAbstract' not found in wp-content/plugins/sargapay/paymentGateway/cardano/vendor/chillerlan/php-qrcode/src/Output/QRImagick.php:30
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QROutputAbstract' not found in wp-content/plugins/sargapay/paymentGateway/cardano/vendor/chillerlan/php-qrcode/src/Output/QRString.php:25
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Data\\QRDataAbstract' not found in wp-content/plugins/sargapay/paymentGateway/cardano/vendor/chillerlan/php-qrcode/src/Data/Byte.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== sargapay ===
)
sargapay/sargapay.php Passed 13 tests
The primary PHP file in "Sargapay" version 2.1.1 is used by WordPress to initiate all plugin functionality
37 characters long description:
WordPress payment gateway for crypto.
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 plugin379,840 lines of code in 120 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 4,904 | 3,816 | 368,570 |
PHP | 63 | 1,726 | 7,792 | 5,475 |
CSS | 7 | 916 | 9 | 4,378 |
Markdown | 2 | 105 | 0 | 473 |
PO File | 2 | 188 | 258 | 424 |
JSON | 21 | 0 | 0 | 283 |
HTML | 1 | 26 | 0 | 137 |
XML | 3 | 0 | 0 | 72 |
YAML | 2 | 2 | 0 | 28 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 3 | |
Traits | 1 | |
Classes | 35 | |
▷ Abstract classes | 3 | 8.57% |
▷ Concrete classes | 32 | 91.43% |
▷ Final classes | 8 | 25.00% |
Methods | 234 | |
▷ Static methods | 21 | 8.97% |
▷ Public methods | 162 | 69.23% |
▷ Protected methods | 50 | 21.37% |
▷ Private methods | 22 | 9.40% |
Functions | 27 | |
▷ Named functions | 22 | 81.48% |
▷ Anonymous functions | 5 | 18.52% |
Constants | 52 | |
▷ Global constants | 3 | 5.77% |
▷ Class constants | 49 | 94.23% |
▷ Public constants | 43 | 87.76% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
paymentGateway/cardano/assets/img/ada_logo.png | 2.61KB | 0.89KB | ▼ 65.92% |
build/admin/images/discord.cc59f4a2.png | 11.35KB | 5.97KB | ▼ 47.35% |
build/admin/images/banner.a117014b.png | 52.23KB | 20.14KB | ▼ 61.45% |