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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.53ms] Passed 4 tests
Server-side resources used by VeritasPay Hosted Checkout Payment for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.97 ▼3.74 |
Dashboard /wp-admin | 3.33 ▼0.01 | 49.21 ▼24.92 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 55.14 ▲9.41 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 98.57 ▲10.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.65 ▲1.13 |
Server storage [IO: ▲2.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: 1 new table, 6 new options
New tables |
---|
veritaspay_payment_transaction |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
VeritasPay Hosted Checkout Payment for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.24 ▼1.39 | 1.75 ▼0.09 | 40.28 ▼4.77 |
Dashboard /wp-admin | 2,208 ▲23 | 5.82 ▼0.05 | 100.89 ▼13.95 | 39.14 ▼8.56 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.00 ▼0.01 | 39.74 ▲1.37 | 36.89 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 22.99 ▼0.17 | 619.02 ▼39.01 | 60.66 ▲3.92 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.21 ▼0.07 | 100.83 ▲1.45 | 43.88 ▼7.08 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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 no errors were found, this is by no means 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'VeritasPay\\HostedCheckout\\Veritaspay_Configuration_Settings' not found in wp-content/plugins/veritaspay-hosted-checkout/classes/configuration-settings/veritaspay-hosted-payment-settings.php:5
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: unionpay, payments, ecpay, grabpay, credit card...
veritaspay-hosted-checkout/veritaspay-gateway-plugin.php 77% from 13 tests
This is the main PHP file of "VeritasPay Hosted Checkout Payment for WooCommerce" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("veritaspay-hosted-checkout.php" instead of "veritaspay-gateway-plugin.php")
- Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "6.1.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected8,626 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 203 | 349 | 8,536 |
XML | 5 | 0 | 0 | 88 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 3 | 9.09% |
▷ Public methods | 18 | 54.55% |
▷ Protected methods | 1 | 3.03% |
▷ Private methods | 14 | 42.42% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 1 | 50.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.34MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gcash.png | 134.80KB | 61.81KB | ▼ 54.15% |
assets/images/wechat.png | 141.79KB | 56.97KB | ▼ 59.82% |
assets/images/alipay.png | 36.27KB | 14.87KB | ▼ 58.99% |
assets/images/grabpay.png | 17.76KB | 7.76KB | ▼ 56.29% |
assets/images/cards.png | 17.22KB | 8.31KB | ▼ 51.72% |