Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.60ms] Passed 4 tests
This is a short check of server-side resources used by Payer for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 32.53 ▼5.78 |
Dashboard /wp-admin | 3.32 ▼0.02 | 44.39 ▼16.10 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.78 ▼3.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.36 ▼20.95 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.57 ▼3.05 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 133 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Payer for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,465 ▼281 | 14.45 ▲0.18 | 0.52 ▼1.10 | 15.78 ▼28.94 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼0.08 | 101.17 ▼11.06 | 37.42 ▼6.18 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.03 | 39.04 ▼1.78 | 33.82 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.55 ▼5.81 | 660.14 ▼6.83 | 70.40 ▲20.73 |
Media Library /wp-admin/upload.php | 1,379 ▼6 | 4.31 ▲0.06 | 99.21 ▼1.06 | 46.16 ▲3.81 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 64× 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/payer-for-woocommerce/vendor/payer/sdk/docs/examples/CreateInvoiceExample.php on line 26
- > PHP Warning
require_once(../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/payer-for-woocommerce/vendor/payer/sdk/docs/examples/GetOrderStatusExample.php on line 26
- > PHP Fatal error
require_once(): Failed opening required '../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/payer-for-woocommerce/vendor/payer/sdk/docs/examples/CreateOrderExample.php on line 26
- > PHP Fatal error
require_once(): Failed opening required '../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/payer-for-woocommerce/vendor/payer/sdk/docs/examples/PurchaseCustomSettlementExample.php on line 57
- > PHP Fatal error
require_once(): Failed opening required '../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/payer-for-woocommerce/vendor/payer/sdk/docs/examples/CallbackEndpointSettlementExample.php on line 57
- > PHP Fatal error
require_once(): Failed opening required '../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/payer-for-woocommerce/vendor/payer/sdk/docs/examples/RecurringStoreCustomerExample.php on line 26
- > PHP Warning
require_once(../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/payer-for-woocommerce/vendor/payer/sdk/docs/examples/ActivateInvoiceExample.php on line 26
- > PHP Warning
require_once(../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/payer-for-woocommerce/vendor/payer/sdk/docs/examples/InvoiceTemplateBindingExample.php on line 26
- > PHP Fatal error
require_once(): Failed opening required '../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/payer-for-woocommerce/vendor/payer/sdk/docs/examples/GetPostDataExample.php on line 26
- > PHP Fatal error
require_once(): Failed opening required '../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/payer-for-woocommerce/vendor/payer/sdk/docs/examples/RecurringFetchTokenExample.php on line 26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: checkout, e-commerce, payer, woocommerce, ecommerce
payer-for-woocommerce/payer-for-woocommerce.php 92% from 13 tests
"Payer for WooCommerce" version 1.1.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "4.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected7,225 lines of code in 120 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 1,494 | 4,746 | 6,398 |
JavaScript | 4 | 38 | 72 | 423 |
PO File | 1 | 82 | 103 | 201 |
JSON | 1 | 0 | 0 | 112 |
CSS | 2 | 7 | 0 | 88 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 5 | 6.41% |
▷ Concrete classes | 73 | 93.59% |
▷ Final classes | 0 | 0.00% |
Methods | 374 | |
▷ Static methods | 60 | 16.04% |
▷ Public methods | 327 | 87.43% |
▷ Protected methods | 7 | 1.87% |
▷ Private methods | 40 | 10.70% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.17MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/payer-icon-payment_method-bank.png | 23.70KB | 2.84KB | ▼ 88.03% |
assets/img/payer-icon-payment_method-masterpass.png | 19.47KB | 1.98KB | ▼ 89.85% |
assets/img/payer-icon-payment_method-card_01.png | 20.72KB | 2.51KB | ▼ 87.89% |
assets/img/payer-icon-payment_method-payer_rent_payment.png | 19.78KB | 2.25KB | ▼ 88.60% |
assets/img/payer-icon-payment_method-swish.png | 20.80KB | 2.19KB | ▼ 89.47% |