Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.42ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce khipu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.09 ▼3.37 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.03 ▼0.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.72 ▼2.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.29 ▼3.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.95 ▲2.35 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce khipu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.72 ▲0.44 | 1.76 ▼0.16 | 44.84 ▼3.05 |
Dashboard /wp-admin | 2,199 ▲25 | 5.66 ▼0.01 | 86.18 ▼12.26 | 41.52 ▼2.58 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.03 | 39.76 ▼1.71 | 38.69 ▲2.92 |
Add New Post /wp-admin/post-new.php | 1,540 ▲5 | 18.29 ▲0.28 | 669.57 ▲45.64 | 65.76 ▲0.08 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.23 ▲0.05 | 99.30 ▼3.02 | 47.43 ▲2.92 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- 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
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_khipu_abstract' not found in wp-content/plugins/woocommerce-khipu/includes/class-wc-gateway-khipu-regular-transfer.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_khipu_abstract' not found in wp-content/plugins/woocommerce-khipu/includes/class-wc-gateway-khipu-simplified-transfer.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woocommerce-khipu/includes/abstract-wc-gateway-khipu.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Add images for these screenshots: #1 (https://s3.amazonaws.com/static.khipu.com/woocommerce/activate-plugin.png), #2 (https://s3.amazonaws.com/static.khipu.com/woocommerce/khipu-settings.png), #3 (https://s3.amazonaws.com/static.khipu.com/id-cobrador.png)
woocommerce-khipu/woocommerce-gateway-khipu.php 92% from 13 tests
"WooCommerce khipu" version 3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-khipu.php" instead of "woocommerce-gateway-khipu.php")
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
Good job! No executable or dangerous file extensions detected4,120 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,172 | 3,188 | 3,985 |
JSON | 3 | 0 | 0 | 92 |
Markdown | 2 | 12 | 0 | 43 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 337 | |
▷ Static methods | 8 | 2.37% |
▷ Public methods | 334 | 99.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 0.89% |
Functions | 10 | |
▷ Named functions | 8 | 80.00% |
▷ Anonymous functions | 2 | 20.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin