Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.28ms] Passed 4 tests
Analyzing server-side resources used by PayIQ WooCommerce Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.58 ▼1.19 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.00 ▼14.14 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.01 ▼5.18 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.44 ▼3.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.47 ▼2.52 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for PayIQ WooCommerce Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.28 ▼1.08 | 4.90 ▲2.75 | 43.88 ▼0.25 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲0.02 | 113.35 ▲6.87 | 42.16 ▼1.74 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▼0.01 | 37.29 ▼10.29 | 30.96 ▼6.36 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.12 ▲5.44 | 656.03 ▼54.65 | 51.64 ▼11.77 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.01 | 95.09 ▼16.26 | 42.99 ▼2.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/payiq-wc-gateway/xml-templates/AuthorizeRecurring.php
- > /wp-content/plugins/payiq-wc-gateway/xml-templates/PrepareSession.php
- > /wp-content/plugins/payiq-wc-gateway/xml-templates/Reverse.php
- > /wp-content/plugins/payiq-wc-gateway/xml-templates/CaptureTransaction.php
- > /wp-content/plugins/payiq-wc-gateway/xml-templates/AuthorizeSubscription.php
- > /wp-content/plugins/payiq-wc-gateway/xml-templates/GetTransactionDetails.php
- > /wp-content/plugins/payiq-wc-gateway/xml-templates/Refund.php
- > /wp-content/plugins/payiq-wc-gateway/xml-templates/GetSavedCards.php
- 119× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/payiq-wc-gateway/xml-templates/AuthorizeSubscription.php on line 13
- > PHP Notice
Undefined variable: data in wp-content/plugins/payiq-wc-gateway/xml-templates/AuthorizeRecurring.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/payiq-wc-gateway/xml-templates/PrepareSession.php on line 27
- > PHP Notice
Undefined variable: data in wp-content/plugins/payiq-wc-gateway/xml-templates/PrepareSession.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payiq-wc-gateway/gateway-payiq.php:20
- > PHP Notice
Undefined variable: data in wp-content/plugins/payiq-wc-gateway/xml-templates/Refund.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/payiq-wc-gateway/xml-templates/GetTransactionDetails.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/payiq-wc-gateway/xml-templates/GetSavedCards.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/payiq-wc-gateway/xml-templates/PrepareSession.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/payiq-wc-gateway/xml-templates/Refund.php on line 8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: payments, woocommerce, psp, gateway, payiq...
payiq-wc-gateway/gateway-payiq.php 92% from 13 tests
The main file in "PayIQ WooCommerce Gateway" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("payiq-wc-gateway.php" instead of "gateway-payiq.php")
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
Success! There were no dangerous files found in this plugin1,551 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 513 | 218 | 1,293 |
PO File | 1 | 56 | 58 | 169 |
JSON | 2 | 2 | 0 | 65 |
XML | 1 | 3 | 0 | 21 |
Markdown | 1 | 4 | 0 | 3 |
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.25 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 5 | 7.14% |
▷ Public methods | 68 | 97.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.86% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
4 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo_small.png | 5.80KB | 2.38KB | ▼ 58.96% |
assets/screenshot-1.png | 125.06KB | 48.66KB | ▼ 61.10% |
assets/logo@2x.png | 36.92KB | 12.05KB | ▼ 67.36% |
assets/screenshot-2.png | 28.51KB | 10.96KB | ▼ 61.58% |