Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.08ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Webpay Gateway Chilean
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 36.75 ▼1.83 |
Dashboard /wp-admin | 3.43 ▲0.13 | 45.36 ▼1.09 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 55.91 ▲13.74 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 84.88 ▼8.48 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.91 ▲3.08 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/webpay-woocommerce-plugin/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/webpay-woocommerce-plugin/DOCS/ejemploTr\303\241fico.txt"
Filesystem: 20 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_webpay |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
webpay_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Webpay Gateway Chilean
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.12 ▼1.25 | 1.70 ▼0.01 | 40.33 ▼3.95 |
Dashboard /wp-admin | 2,215 ▲30 | 5.85 ▲0.95 | 107.68 ▼2.01 | 40.65 ▲0.69 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 2.06 ▲0.04 | 40.45 ▲4.83 | 36.80 ▲5.28 |
Add New Post /wp-admin/post-new.php | 1,526 ▲7 | 17.77 ▼5.32 | 689.35 ▼1.13 | 54.04 ▲4.37 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.24 ▲0.05 | 97.27 ▲1.67 | 47.09 ▲4.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_webpay
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- webpay_db_version
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/webpay-woocommerce-plugin/templates/webpay_error.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/webpay-woocommerce-plugin/helpers/webpay_install.php on line 11
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/webpay-woocommerce-plugin/helpers/webpay_install.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/webpay-woocommerce-plugin/WebPayPlus.php:38
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/webpay-woocommerce-plugin/templates/webpay_thankyou.php:6
- > PHP Notice
Undefined variable: order_id in wp-content/plugins/webpay-woocommerce-plugin/templates/webpay_error.php on line 14
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/webpay-woocommerce-plugin/helpers/webpay_install.php on line 14
- > PHP Notice
Undefined variable: order_id in wp-content/plugins/webpay-woocommerce-plugin/templates/webpay_error.php on line 15
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/webpay-woocommerce-plugin/helpers/webpay_install.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Requires at least: Version not formatted correctly
- Tags: No tags were detected
webpay-woocommerce-plugin/WebPayPlus.php 92% from 13 tests
The primary PHP file in "WooCommerce Webpay Gateway Chilean" version 3.7.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webpay-woocommerce-plugin.php" instead of "WebPayPlus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,163 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 237 | 229 | 1,002 |
Markdown | 1 | 56 | 0 | 145 |
Bourne Shell | 1 | 4 | 11 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 87.00 |
▷ Minimum class complexity | 87.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 5.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 5 | 26.32% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 5.92KB | 3.02KB | ▼ 49.08% |
classes/assets/images/logo.png | 5.92KB | 3.02KB | ▼ 49.08% |
assets/images/logo_webpay_plus.png | 2.07KB | 1.61KB | ▼ 22.15% |
classes/assets/images/logo_webpay_plus.png | 2.07KB | 1.61KB | ▼ 22.15% |