Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼17.92ms] Passed 4 tests
An overview of server-side resources used by PAYCOMET for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 27.71 ▼14.23 |
Dashboard /wp-admin | 3.24 ▼0.07 | 29.65 ▼19.49 |
Posts /wp-admin/edit.php | 3.31 ▼0.05 | 33.96 ▼13.19 |
Add New Post /wp-admin/post-new.php | 5.56 ▼0.33 | 72.80 ▼24.77 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 28.81 ▼3.86 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 94 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_paytpv_customer |
New WordPress options |
---|
paytpv |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for PAYCOMET for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.02 ▼0.33 | 2.04 ▲0.22 | 44.70 ▼0.45 |
Dashboard /wp-admin | 2,192 ▲15 | 5.53 ▼0.01 | 91.54 ▼8.71 | 38.87 ▼3.06 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.05 | 37.52 ▼1.17 | 37.16 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.04 ▼0.57 | 616.03 ▼48.62 | 52.97 ▼2.66 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▲0.04 | 100.17 ▼11.82 | 43.75 ▼0.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_paytpv_customer
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- paytpv
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 34× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Paycomet_APM' not found in wp-content/plugins/paytpv-for-woocommerce/inc/paycomet-paysera.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paycomet_APM' not found in wp-content/plugins/paytpv-for-woocommerce/inc/paycomet-mts.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/paytpv-for-woocommerce/inc/paycomet-apm.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/paytpv-for-woocommerce/inc/woocommerce-paytpv.php:7
- > PHP Fatal error
Uncaught Error: Class 'Paycomet_APM' not found in wp-content/plugins/paytpv-for-woocommerce/inc/paycomet-beeline.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paycomet_APM' not found in wp-content/plugins/paytpv-for-woocommerce/inc/paycomet-multibanco.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paycomet_APM' not found in wp-content/plugins/paytpv-for-woocommerce/inc/paycomet-trustly.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paycomet_APM' not found in wp-content/plugins/paytpv-for-woocommerce/inc/paycomet-yandex.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/paytpv-for-woocommerce/gateway-paytpv.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/paytpv-for-woocommerce/template/myaccount/conditions.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
paytpv-for-woocommerce/gateway-paytpv.php 85% from 13 tests
The main PHP file in "PAYCOMET for WooCommerce" ver. 5.30 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("paytpv-for-woocommerce.php" instead of "gateway-paytpv.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin7,342 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 859 | 291 | 3,970 |
JavaScript | 3 | 267 | 416 | 1,303 |
CSS | 3 | 65 | 102 | 792 |
SVG | 30 | 0 | 0 | 667 |
PO File | 1 | 215 | 268 | 602 |
Markdown | 1 | 6 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 279.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 81.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 16 | 10.26% |
▷ Public methods | 154 | 98.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.28% |
Functions | 15 | |
▷ Named functions | 13 | 86.67% |
▷ Anonymous functions | 2 | 13.33% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/2100cancelar.png | 0.96KB | 0.87KB | ▼ 9.64% |
images/cards.png | 2.11KB | 1.81KB | ▼ 14.01% |
images/2100info.png | 0.87KB | 0.86KB | ▼ 1.79% |
images/paycomet.png | 3.72KB | 2.38KB | ▼ 36.16% |
images/2100Aceptard.png | 2.23KB | 1.73KB | ▼ 22.47% |