Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/dintero-checkout-express/includes/class-wc-dintero-hp-setting.php+11
require_once(wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.11ms] Passed 4 tests
An overview of server-side resources used by Dintero Checkout (Legacy)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.65 ▼16.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.94 ▼9.98 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.86 ▲1.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.76 ▼15.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.73 ▲1.23 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Dintero Checkout (Legacy)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.18 ▼1.12 | 1.64 ▼0.14 | 40.16 ▲2.53 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.82 | 108.09 ▼10.33 | 39.26 ▼9.35 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.01 | 39.33 ▼2.43 | 34.65 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 23.10 ▲4.92 | 640.61 ▲26.96 | 59.68 ▲7.52 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.18 ▼0.04 | 99.19 ▼4.33 | 43.25 ▲0.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dintero-checkout-express/tests/phpunit/bootstrap.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_print_notices() in wp-content/plugins/dintero-checkout-express/templates/dhp-checkout-noembed-express.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dintero-checkout-express/tests/phpunit/test-class-wc-gateway-dintero-hp.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function WCDHP() in wp-content/plugins/dintero-checkout-express/templates/dhp-add-to-cart.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/dintero-checkout-express/templates/dhp-checkout-order-received.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_print_notices() in wp-content/plugins/dintero-checkout-express/templates/dhp-checkout.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/dintero-checkout-express/includes/class-wc-gateway-dintero-hp.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dintero-checkout-express/tests/phpunit/test-ajax.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dintero-checkout-express/tests/phpunit/test-class-wc-dintero-hp-helper.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/dintero-checkout-express/tests/phpunit/setup.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dintero-checkout-express/tests/phpunit/test-class-wc-dintero-hp-checkout.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (18 tag instead of maximum 10)
dintero-checkout-express/dintero-hp.php 77% from 13 tests
The entry point to "Dintero Checkout (Legacy)" version 2022.11.22 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dintero-checkout-express.php" instead of "dintero-hp.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
Good job! No executable or dangerous file extensions detected9,704 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,672 | 2,451 | 7,904 |
JavaScript | 9 | 98 | 143 | 692 |
CSS | 4 | 83 | 9 | 501 |
Bourne Shell | 5 | 85 | 25 | 368 |
Markdown | 2 | 23 | 0 | 112 |
YAML | 1 | 1 | 0 | 37 |
XML | 2 | 6 | 0 | 36 |
JSON | 1 | 0 | 0 | 20 |
Dockerfile | 1 | 0 | 0 | 13 |
make | 1 | 3 | 0 | 12 |
Bourne Again Shell | 1 | 3 | 2 | 8 |
INI | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 41.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 272.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 1 | 4.35% |
Methods | 367 | |
▷ Static methods | 73 | 19.89% |
▷ Public methods | 306 | 83.38% |
▷ Protected methods | 8 | 2.18% |
▷ Private methods | 53 | 14.44% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pay-with-dintero-btn.png | 8.85KB | 3.77KB | ▼ 57.38% |
assets/images/dintero.png | 7.31KB | 3.42KB | ▼ 53.24% |
assets/images/dintero-express-btn.png | 10.36KB | 4.54KB | ▼ 56.21% |