Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.96ms] Passed 4 tests
Analyzing server-side resources used by SIBS woocommerce payment gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 53.53 ▲11.74 |
Dashboard /wp-admin | 3.47 ▲0.17 | 44.73 ▼7.58 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 47.77 ▼0.67 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 81.94 ▲0.22 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.60 ▲0.21 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 207 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_sibs_payment_information |
wp_sibs_transaction |
New WordPress options |
---|
my_plugin_page_name |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
my_plugin_page_id |
db_upgraded |
theysaidso_admin_options |
sibs_version |
my_plugin_page_title |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by SIBS woocommerce payment gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.34 ▼1.02 | 2.37 ▲0.69 | 59.95 ▲20.18 |
Dashboard /wp-admin | 2,219 ▲28 | 5.83 ▲0.95 | 103.46 ▼11.35 | 37.77 ▼5.93 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.00 ▼0.02 | 40.73 ▼0.66 | 36.96 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 17.43 ▼0.96 | 678.13 ▲18.65 | 57.05 ▼14.05 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.22 ▲0.02 | 98.08 ▼2.20 | 41.77 ▼3.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_sibs_payment_information
- wp_sibs_transaction
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
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 | 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
- 64× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_ChaCha20' not found in wp-content/plugins/sibs-woocommerce/external/sodium_compat-1.7.0/namespaced/Core/ChaCha20.php:4
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Util' not found in wp-content/plugins/sibs-woocommerce/external/sodium_compat-1.7.0/src/Core/Curve25519/H.php:12
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Compat' not found in wp-content/plugins/sibs-woocommerce/external/sodium_compat-1.7.0/lib/constants.php:6
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519' not found in wp-content/plugins/sibs-woocommerce/external/sodium_compat-1.7.0/namespaced/Core/Curve25519.php:4
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519_Ge_P2' not found in wp-content/plugins/sibs-woocommerce/external/sodium_compat-1.7.0/namespaced/Core/Curve25519/Ge/P2.php:4
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_SipHash' not found in wp-content/plugins/sibs-woocommerce/external/sodium_compat-1.7.0/namespaced/Core/SipHash.php:4
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_ChaCha20_Ctx' not found in wp-content/plugins/sibs-woocommerce/external/sodium_compat-1.7.0/src/Core/ChaCha20/IetfCtx.php:10
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Util' not found in wp-content/plugins/sibs-woocommerce/external/sodium_compat-1.7.0/src/Core/Poly1305.php:10
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_ChaCha20' not found in wp-content/plugins/sibs-woocommerce/external/sodium_compat-1.7.0/src/Core/HChaCha20.php:10
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core32_HSalsa20' not found in wp-content/plugins/sibs-woocommerce/external/sodium_compat-1.7.0/src/Core32/XSalsa20.php:10
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Requires php: Invalid version format
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
sibs-woocommerce/class-sibs-payment-gateway.php 92% from 13 tests
"SIBS woocommerce payment gateway" version 2.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sibs-woocommerce.php" instead of "class-sibs-payment-gateway.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 plugin28,260 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 3,497 | 10,013 | 23,898 |
PO File | 7 | 1,527 | 1,925 | 3,661 |
CSS | 2 | 49 | 10 | 258 |
Markdown | 3 | 66 | 0 | 223 |
JSON | 2 | 0 | 0 | 95 |
JavaScript | 3 | 12 | 13 | 42 |
XML | 1 | 0 | 0 | 28 |
make | 1 | 9 | 4 | 26 |
YAML | 1 | 2 | 0 | 24 |
Bourne Shell | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 16.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 304.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 106 | |
▷ Abstract classes | 20 | 18.87% |
▷ Concrete classes | 86 | 81.13% |
▷ Final classes | 0 | 0.00% |
Methods | 704 | |
▷ Static methods | 517 | 73.44% |
▷ Public methods | 603 | 85.65% |
▷ Protected methods | 45 | 6.39% |
▷ Private methods | 56 | 7.95% |
Functions | 156 | |
▷ Named functions | 154 | 98.72% |
▷ Anonymous functions | 2 | 1.28% |
Constants | 198 | |
▷ Global constants | 4 | 2.02% |
▷ Class constants | 194 | 97.98% |
▷ Public constants | 194 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
35 PNG files occupy 0.61MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dankort.png | 8.13KB | 3.13KB | ▼ 61.45% |
assets/images/postepay.png | 25.98KB | 8.36KB | ▼ 67.83% |
assets/images/visaelectron.png | 13.17KB | 4.30KB | ▼ 67.31% |
assets/images/swisspostfinance.png | 24.16KB | 6.76KB | ▼ 72.04% |
assets/images/paypal.png | 43.04KB | 6.82KB | ▼ 84.14% |