Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.61ms] Passed 4 tests
An overview of server-side resources used by Afterpay Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.19 ▼6.23 |
Dashboard /wp-admin | 3.32 ▲0.01 | 50.94 ▲0.55 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.52 ▲0.63 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.94 ▲2.65 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.28 ▼1.37 |
Server storage [IO: ▲0.37MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Afterpay Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.33 ▼1.35 | 1.85 ▼0.18 | 37.12 ▼11.83 |
Dashboard /wp-admin | 2,203 ▲15 | 5.89 ▲0.01 | 118.93 ▲4.08 | 43.47 ▼1.39 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 36.47 ▼0.42 | 32.95 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 18.17 ▼4.90 | 600.03 ▼48.22 | 51.18 ▼13.63 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▲0.04 | 96.72 ▼9.87 | 41.16 ▼2.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 46× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Afterpay\\SDK\\HTTP\\Response' not found in wp-content/plugins/afterpay-gateway-for-woocommerce/vendor/afterpay-global/afterpay-sdk-php/src/HTTP/Response/DeferredPaymentCapture.php:25
- > PHP Fatal error
Uncaught Error: Class 'Afterpay\\SDK\\Model' not found in wp-content/plugins/afterpay-gateway-for-woocommerce/vendor/afterpay-global/afterpay-sdk-php/src/Model/ShippingCourier.php:23
- > PHP Fatal error
Uncaught Error: Class 'Afterpay\\SDK\\HTTP\\Response' not found in wp-content/plugins/afterpay-gateway-for-woocommerce/vendor/afterpay-global/afterpay-sdk-php/src/HTTP/Response/DeferredPaymentVoid.php:26
- > PHP Fatal error
Uncaught Error: Class 'Afterpay\\SDK\\HTTP\\Request' not found in wp-content/plugins/afterpay-gateway-for-woocommerce/vendor/afterpay-global/afterpay-sdk-php/src/HTTP/Request/GetConfiguration.php:23
- > PHP Fatal error
Uncaught Error: Class 'Afterpay\\SDK\\HTTP' not found in wp-content/plugins/afterpay-gateway-for-woocommerce/vendor/afterpay-global/afterpay-sdk-php/src/HTTP/Response.php:25
- > PHP Fatal error
Uncaught Error: Class 'Afterpay\\SDK\\HTTP\\Request' not found in wp-content/plugins/afterpay-gateway-for-woocommerce/vendor/afterpay-global/afterpay-sdk-php/src/HTTP/Request/UpdatePaymentByOrderId.php:25
- > PHP Fatal error
Uncaught Error: Class 'Afterpay\\SDK\\HTTP\\Request' not found in wp-content/plugins/afterpay-gateway-for-woocommerce/vendor/afterpay-global/afterpay-sdk-php/src/HTTP/Request/CreateCheckout.php:33
- > PHP Fatal error
Uncaught Error: Class 'Afterpay\\SDK\\HTTP' not found in wp-content/plugins/afterpay-gateway-for-woocommerce/vendor/afterpay-global/afterpay-sdk-php/src/HTTP/Request.php:29
- > PHP Fatal error
Trait 'Afterpay\\SDK\\Shared\\ModelMethods' not found in wp-content/plugins/afterpay-gateway-for-woocommerce/vendor/afterpay-global/afterpay-sdk-php/src/Model.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'Afterpay\\SDK\\HTTP\\Request' not found in wp-content/plugins/afterpay-gateway-for-woocommerce/vendor/afterpay-global/afterpay-sdk-php/src/HTTP/Request/Ping.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: woocommerce, afterpay
afterpay-gateway-for-woocommerce/afterpay-gateway-for-woocommerce.php 92% from 13 tests
"Afterpay Gateway for WooCommerce" version 3.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("4.8.3" instead of "3.2.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin6,381 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 1,197 | 3,063 | 6,261 |
JSON | 2 | 0 | 0 | 88 |
CSS | 1 | 6 | 6 | 28 |
JavaScript | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 16.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 323.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 57 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 57 | 100.00% |
▷ Final classes | 18 | 31.58% |
Methods | 323 | |
▷ Static methods | 69 | 21.36% |
▷ Public methods | 266 | 82.35% |
▷ Protected methods | 18 | 5.57% |
▷ Private methods | 39 | 12.07% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin