Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼12.16ms] Passed 4 tests
Server-side resources used by Airwallex Online Payments Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.22 ▼3.07 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.11 ▼15.75 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.53 ▼9.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.55 ▼20.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.95 ▲1.06 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Airwallex Online Payments Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲7 | 14.13 ▼0.24 | 1.78 ▼0.11 | 48.02 ▲3.54 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▲0.01 | 90.11 ▼14.29 | 38.42 ▼4.39 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.94 ▼0.03 | 39.20 ▲2.39 | 38.73 ▲6.47 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.15 ▲0.12 | 596.33 ▼82.00 | 49.36 ▼2.94 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.18 ▲0.04 | 95.70 ▼6.09 | 41.81 ▼1.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please take a closer look at the following
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Airwallex\\Gateways\\Blocks\\AirwallexWCBlockSupport' not found in wp-content/plugins/airwallex-online-payments-gateway/includes/gateways/blocks/AirwallexMainWCBlockSupport.php:7
- > PHP Fatal error
Uncaught Error: Class 'Airwallex\\Gateways\\Blocks\\AirwallexWCBlockSupport' not found in wp-content/plugins/airwallex-online-payments-gateway/includes/gateways/blocks/AirwallexCardWCBlockSupport.php:14
- > PHP Fatal error
Uncaught Error: Class 'Airwallex\\AbstractClient' not found in wp-content/plugins/airwallex-online-payments-gateway/includes/client/AdminClient.php:5
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/airwallex-online-payments-gateway/includes/gateways/blocks/AirwallexWCBlockSupport.php:7
- > PHP Fatal error
Uncaught Error: Class 'Airwallex\\Struct\\AbstractBase' not found in wp-content/plugins/airwallex-online-payments-gateway/includes/struct/Refund.php:5
- > PHP Fatal error
Uncaught Error: Class 'Airwallex\\AbstractClient' not found in wp-content/plugins/airwallex-online-payments-gateway/includes/client/CardClient.php:7
- > PHP Fatal error
Uncaught Error: Class 'Airwallex\\Gateways\\Blocks\\AirwallexWCBlockSupport' not found in wp-content/plugins/airwallex-online-payments-gateway/includes/gateways/blocks/AirwallexWeChatWCBlockSupport.php:7
- > PHP Fatal error
Uncaught Error: Class 'Airwallex\\AbstractClient' not found in wp-content/plugins/airwallex-online-payments-gateway/includes/client/LoggingClient.php:7
- > PHP Fatal error
Uncaught Error: Class 'Airwallex\\AbstractClient' not found in wp-content/plugins/airwallex-online-payments-gateway/includes/client/WeChatClient.php:7
- > PHP Fatal error
Uncaught Error: Class 'Airwallex\\AbstractClient' not found in wp-content/plugins/airwallex-online-payments-gateway/includes/client/MainClient.php:5
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in airwallex-online-payments-gateway/assets to your readme.txt
airwallex-online-payments-gateway/airwallex-online-payments-gateway.php Passed 13 tests
The entry point to "Airwallex Online Payments Gateway" version 1.3.1 is a PHP file that has certain tags in its header comment area
25 characters long description:
Official Airwallex Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected5,465 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 598 | 863 | 4,427 |
JavaScript | 4 | 9 | 351 | 737 |
CSS | 2 | 42 | 3 | 196 |
SVG | 2 | 0 | 1 | 105 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 28 | |
▷ Abstract classes | 3 | 10.71% |
▷ Concrete classes | 25 | 89.29% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 8 | 3.28% |
▷ Public methods | 223 | 91.39% |
▷ Protected methods | 13 | 5.33% |
▷ Private methods | 8 | 3.28% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 43 | |
▷ Global constants | 5 | 11.63% |
▷ Class constants | 38 | 88.37% |
▷ Public constants | 38 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/layout/2col-2.png | 15.33KB | 8.38KB | ▼ 45.30% |
assets/images/layout/2col-1.png | 15.03KB | 8.40KB | ▼ 44.14% |
assets/images/layout/2row.png | 8.53KB | 3.94KB | ▼ 53.85% |