Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.98ms] Passed 4 tests
A check of server-side resources used by PAYARC Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.02 | 36.65 ▼4.09 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.07 ▼8.56 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.30 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.94 ▼11.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.98 ▲2.37 |
Server storage [IO: ▲1.74MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 211 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for PAYARC Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.25 ▼0.13 | 1.71 ▲0.01 | 42.47 ▲1.56 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲0.95 | 109.39 ▲7.72 | 36.68 ▼9.03 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.01 | 47.75 ▲11.04 | 48.96 ▲15.28 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.55 ▼0.77 | 678.43 ▲78.69 | 61.01 ▲1.31 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.13 ▼0.02 | 95.14 ▼0.57 | 40.58 ▼3.21 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/payarc-payment-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/payarc-payment-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-admin-gateway-status.php:31
- > PHP Notice
Undefined variable: index in wp-content/plugins/payarc-payment-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/payarc-payment-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-profile-field-customer-id.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/payarc-payment-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-profile-section.php:26
- > PHP Notice
Undefined variable: fields in wp-content/plugins/payarc-payment-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/payarc-payment-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php:88
- > PHP Notice
Undefined variable: input_name in wp-content/plugins/payarc-payment-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/payarc-payment-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-order-partial-capture.php:26
- > PHP Fatal error
Uncaught Error: Class 'SkyVerge\\WooCommerce\\PluginFramework\\v5_11_0\\Payment_Gateway\\Handlers\\Abstract_Payment_Handler' not found in wp-content/plugins/payarc-payment-gateway/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/Handlers/Abstract_Hosted_Payment_Handler.php:39
- > PHP Notice
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woocommerce, ecommerce, payarc, e-commerce
payarc-payment-gateway/woocommerce-gateway-payarc.php 85% from 13 tests
This is the main PHP file of "PAYARC Payment Gateway" version 1.1.0, 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:
- Main file name: Name the main plugin file the same as the plugin slug ("payarc-payment-gateway.php" instead of "woocommerce-gateway-payarc.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("5.3" instead of "5.3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin18,244 lines of code in 168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 9,003 | 17,548 | 15,324 |
PO File | 1 | 433 | 766 | 1,097 |
CoffeeScript | 7 | 490 | 346 | 699 |
JavaScript | 10 | 123 | 220 | 512 |
Sass | 6 | 103 | 26 | 462 |
CSS | 7 | 19 | 5 | 107 |
Markdown | 2 | 8 | 0 | 22 |
SVG | 21 | 0 | 0 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 21.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 270.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 13 | |
Traits | 2 | |
Classes | 92 | |
▷ Abstract classes | 25 | 27.17% |
▷ Concrete classes | 67 | 72.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,526 | |
▷ Static methods | 101 | 6.62% |
▷ Public methods | 1,067 | 69.92% |
▷ Protected methods | 430 | 28.18% |
▷ Private methods | 29 | 1.90% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 110 | |
▷ Global constants | 1 | 0.91% |
▷ Class constants | 109 | 99.09% |
▷ Public constants | 109 | 100.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
22 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-amex.png | 1.14KB | 1.21KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-switch.png | 0.64KB | 0.68KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/sample-check.png | 6.29KB | 6.96KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-echeck.png | 1.09KB | 1.15KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-amazon.png | 0.71KB | 0.75KB | 0.00% |