Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.17ms] Passed 4 tests
Server-side resources used by Salamantex Payment for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.33 ▼4.84 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.49 ▼5.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.81 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.34 ▼9.38 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.08 ▲4.87 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Salamantex Payment for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.12 | 1.63 ▼0.25 | 43.26 ▼2.53 |
Dashboard /wp-admin | 2,192 ▲18 | 5.54 ▼0.14 | 88.29 ▼11.29 | 39.56 ▼2.81 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▼0.01 | 36.96 ▲1.46 | 38.00 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.03 ▼0.05 | 661.32 ▼22.60 | 53.97 ▲1.94 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▲0.01 | 98.83 ▼7.71 | 43.18 ▼0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/salamantex-payment-for-woocommerce/public/partials/woocommerce-salamantex-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/salamantex-payment-for-woocommerce/admin/class-wc-gateway-salamantex.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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
9 plugin tags: crypto, dash, bitcoin, nimiq, litecoin...
salamantex-payment-for-woocommerce/salamantex-payment-for-woocommerce.php 85% from 13 tests
"Salamantex Payment for WooCommerce" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "4.0")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin718 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 197 | 671 | 571 |
PO File | 1 | 47 | 47 | 128 |
CSS | 2 | 2 | 8 | 13 |
JavaScript | 2 | 6 | 56 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 34 | 80.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.05% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.27MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/salamantex-icon.png | 74.25KB | 26.90KB | ▼ 63.77% |
public/images/dash.png | 0.94KB | 0.93KB | ▼ 1.14% |
public/images/eth.png | 1.34KB | 1.01KB | ▼ 24.64% |
public/images/btc.png | 1.31KB | 1.00KB | ▼ 24.24% |
public/images/ltc.png | 0.80KB | 0.80KB | 0.24% |