Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼297.25ms] Passed 4 tests
A check of server-side resources used by PayStand for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 54.50 ▲4.51 |
Dashboard /wp-admin | 3.44 ▲0.02 | 34.38 ▼0.66 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 38.84 ▲1.49 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 97.05 ▼1,183.76 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 23.15 ▼6.05 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for PayStand for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,806 ▲52 | 16.33 ▲0.11 | 5.70 ▼1.22 | 19.66 ▲16.74 |
Dashboard /wp-admin | 2,921 ▲37 | 6.41 ▼0.14 | 133.83 ▼7.34 | 161.92 ▲1.15 |
Posts /wp-admin/edit.php | 2,694 ▲9 | 3.43 ▲0.00 | 62.33 ▼4.31 | 140.07 ▼11.80 |
Add New Post /wp-admin/post-new.php | 1,659 ▼2 | 19.28 ▲1.93 | 381.17 ▼57.34 | 162.71 ▲4.53 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.74 ▲0.02 | 140.82 ▼4.89 | 189.54 ▲2.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/paystand-for-woocommerce/woocommerce-paystand.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/paystand-for-woocommerce/includes/Httpful/Handlers/JsonHandler.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/paystand-for-woocommerce/PaystandCheckout.php:10
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/paystand-for-woocommerce/includes/Httpful/Handlers/CsvHandler.php:9
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/paystand-for-woocommerce/includes/Httpful/Handlers/XHtmlHandler.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/paystand-for-woocommerce/PaystandCheckoutToken.php:8
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/paystand-for-woocommerce/includes/Httpful/Handlers/XmlHandler.php:11
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/paystand-for-woocommerce/includes/Httpful/Handlers/FormHandler.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/paystand-for-woocommerce/includes/bootstrap.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/paystand-for-woocommerce/PaystandCheckoutFactory.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/paystand-for-woocommerce/WCGatewayPaystand.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: paystand, echeck, bitcoin, payment, woocommerce...
paystand-for-woocommerce/woocommerce-paystand.php 92% from 13 tests
"PayStand for WooCommerce" version 2.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("paystand-for-woocommerce.php" instead of "woocommerce-paystand.php")
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
Success! There were no dangerous files found in this plugin2,164 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 399 | 1,016 | 2,108 |
Markdown | 1 | 8 | 0 | 36 |
JSON | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 1 | 5.00% |
Methods | 173 | |
▷ Static methods | 34 | 19.65% |
▷ Public methods | 160 | 92.49% |
▷ Protected methods | 1 | 0.58% |
▷ Private methods | 12 | 6.94% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 1 | 3.45% |
▷ Class constants | 28 | 96.55% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/paystand_logo_small_new.png | 10.14KB | 3.29KB | ▼ 67.54% |
images/paystand_logo_banner_new.png | 76.74KB | 24.25KB | ▼ 68.40% |