Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.84ms] Passed 4 tests
This is a short check of server-side resources used by Total processing card payments for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.06 ▼7.07 |
Dashboard /wp-admin | 3.31 ▼0.03 | 51.49 ▼15.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.65 ▲2.58 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.83 ▼4.38 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 40.00 ▲0.08 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 67 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_tpcpv3_tnxtbl |
wp_tpcpv3_cbktbl |
wp_tpcpv3_cronjob_tbl |
New WordPress options |
---|
tpcpv3_gateway_cardsv2_e2e |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
tpcpv3_gateway_cardsv2_cbk |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
tpcpv3_gateway_cardsv2_iframe |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Total processing card payments for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.47 ▲0.37 | 1.96 ▲0.19 | 41.14 ▼1.78 |
Dashboard /wp-admin | 2,227 ▲30 | 4.84 ▼0.09 | 114.94 ▼23.75 | 44.20 ▼10.48 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.00 ▼0.05 | 37.90 ▼1.96 | 39.03 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,551 ▲6 | 23.42 ▲0.36 | 682.61 ▲31.51 | 55.67 ▲5.81 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.23 ▼0.03 | 97.05 ▼14.63 | 44.79 ▼2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables detected upon uninstall: 3 tables
- wp_tpcpv3_tnxtbl
- wp_tpcpv3_cronjob_tbl
- wp_tpcpv3_cbktbl
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- tpcpv3_gateway_cardsv2_cbk
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/totalprocessing-card-payments/templates/pci-frame-external.php
- > /wp-content/plugins/totalprocessing-card-payments/public/partials/totalprocessing-card-payments-and-gateway-woocommerce-public-display.php
- > /wp-content/plugins/totalprocessing-card-payments/admin/partials/totalprocessing-card-payments-and-gateway-woocommerce-admin-display.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/totalprocessing-card-payments/includes/payment-gateway-faqs-array.php:26
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/totalprocessing-card-payments/admin/partials/admin-options.php:96
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/totalprocessing-card-payments/includes/payment-gateway-setting-fields.php:425
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/totalprocessing-card-payments/templates/pci-frame-templatev3.php:139
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
totalprocessing-card-payments/totalprocessing-card-payments-and-gateway-woocommerce.php 77% from 13 tests
Analyzing the main PHP file in "Total processing card payments for WooCommerce" version 5.3.11
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.2.0" instead of "5.6")
- Main file name: Name the main plugin file the same as the plugin slug ("totalprocessing-card-payments.php" instead of "totalprocessing-card-payments-and-gateway-woocommerce.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 plugin9,205 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 437 | 784 | 5,817 |
JavaScript | 12 | 103 | 173 | 2,911 |
SVG | 12 | 9 | 5 | 308 |
CSS | 4 | 26 | 4 | 169 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 51.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 392.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 151 | |
▷ Static methods | 15 | 9.93% |
▷ Public methods | 142 | 94.04% |
▷ Protected methods | 4 | 2.65% |
▷ Private methods | 5 | 3.31% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 11 | |
▷ Global constants | 3 | 27.27% |
▷ Class constants | 8 | 72.73% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.28MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/TP-Logo-white.png | 12.43KB | 6.94KB | ▼ 44.14% |
assets/img/tp-logo.png | 276.20KB | 94.45KB | ▼ 65.80% |