Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼10.10ms] Passed 4 tests
A check of server-side resources used by pl8app Cryptocurrency BEP20 Payment Gateway For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.44 ▼6.94 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.12 ▼19.77 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.99 ▲3.01 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.40 ▼14.16 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.95 ▲0.49 |
Server storage [IO: ▲3.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 58 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_pl8apppro_carousel |
wp_pl8apppro_hd_addresses |
wp_pl8apppro_payments |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
pl8apppro_redux_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
pl8app Cryptocurrency BEP20 Payment Gateway For WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.35 ▲0.01 | 1.95 ▲0.12 | 42.89 ▼0.25 |
Dashboard /wp-admin | 2,198 ▲27 | 5.59 ▼0.03 | 87.81 ▼2.30 | 38.85 ▲0.37 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.01 | 35.63 ▼1.26 | 30.82 ▼4.71 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.20 ▼0.01 | 696.85 ▲63.59 | 65.98 ▲2.73 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.11 ▼0.16 | 105.68 ▼4.75 | 41.48 ▼3.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- pl8apppro_redux_options
- widget_theysaidso_widget
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/pl8app-bep20-cryptocurrency-payment-gateway-for-woocommerce/src/pl8app_Gateway.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pl8app-bep20-cryptocurrency-payment-gateway-for-woocommerce/pl8app-cryptocurrency-bep20-payment-gateway-for-woocommerce.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pl8app-bep20-cryptocurrency-payment-gateway-for-woocommerce/src/pl8app_Admin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pl8app-bep20-cryptocurrency-payment-gateway-for-woocommerce/src/pl8app_Hooks.php:327
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
pl8app-bep20-cryptocurrency-payment-gateway-for-woocommerce/pl8app-cryptocurrency-bep20-payment-gateway-for-woocommerce.php 92% from 13 tests
The principal PHP file in "pl8app Cryptocurrency BEP20 Payment Gateway For WooCommerce" v. 2.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("pl8app-bep20-cryptocurrency-payment-gateway-for-woocommerce.php" instead of "pl8app-cryptocurrency-bep20-payment-gateway-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected23,028 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
PHP | 29 | 2,625 | 1,600 | 8,492 |
CSS | 5 | 1,561 | 10 | 4,851 |
JavaScript | 2 | 32 | 0 | 133 |
PHP code Passed 2 tests
An overview of 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.39 |
Average class complexity | 35.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 233.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 409 | |
▷ Static methods | 234 | 57.21% |
▷ Public methods | 375 | 91.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 34 | 8.31% |
Functions | 42 | |
▷ Named functions | 41 | 97.62% |
▷ Anonymous functions | 1 | 2.38% |
Constants | 60 | |
▷ Global constants | 49 | 81.67% |
▷ Class constants | 11 | 18.33% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/1_pay_mm_over.png | 26.63KB | 11.88KB | ▼ 55.39% |
assets/img/0x_logo_small.png | 0.81KB | 0.67KB | ▼ 17.41% |
assets/img/pl8app_logo.png | 24.22KB | 3.50KB | ▼ 85.54% |
assets/img/1_pay_mm_off.png | 25.77KB | 11.17KB | ▼ 56.67% |
assets/img/tmp_qrcode.png | 0.77KB | 0.75KB | ▼ 2.65% |