Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼12.51ms] Passed 4 tests
A check of server-side resources used by Nexi XPay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 37.63 ▼7.38 |
Dashboard /wp-admin | 3.38 ▼0.01 | 51.67 ▼13.90 |
Posts /wp-admin/edit.php | 3.49 ▲0.10 | 48.29 ▼7.29 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 90.40 ▼21.46 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 35.87 ▼3.14 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nexi XPay
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.66 ▲0.26 | 1.73 ▼0.05 | 42.53 ▼2.58 |
Dashboard /wp-admin | 2,198 ▲27 | 5.62 ▲0.04 | 94.72 ▲7.11 | 43.41 ▲1.96 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.01 | 40.48 ▼0.17 | 35.71 ▼3.70 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.07 ▲0.03 | 610.20 ▼21.96 | 56.14 ▲3.13 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.01 | 98.76 ▼14.47 | 44.76 ▼3.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cartasi-x-pay/templates/npg_payment_detail.php
- 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Nexi\\WC_Gateway_XPay_Generic_Method' not found in wp-content/plugins/cartasi-x-pay/src/classes/Nexi/WC_Gateway_XPay_Cards_Build.php:16
- > PHP Notice
Undefined variable: orderInfo in wp-content/plugins/cartasi-x-pay/templates/npg_payment_detail.php on line 66
- > PHP Notice
Undefined variable: showOperations in wp-content/plugins/cartasi-x-pay/templates/npg_payment_detail.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Nexi\\WC_Gateway_NPG_Generic_Method' not found in wp-content/plugins/cartasi-x-pay/src/classes/Nexi/WC_Gateway_NPG_Cards_Build.php:16
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Token_CC' not found in wp-content/plugins/cartasi-x-pay/src/classes/Nexi/WC_NPG_Token.php:16
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/cartasi-x-pay/src/classes/Nexi/WC_Gateway_Admin.php:16
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/cartasi-x-pay/src/classes/Nexi/WC_Pending_Status.php:15
- > PHP Notice
Undefined variable: showOperations in wp-content/plugins/cartasi-x-pay/templates/npg_payment_detail.php on line 94
- > PHP Fatal error
Uncaught Error: Class 'Nexi\\WC_Gateway_XPay_Generic_Method' not found in wp-content/plugins/cartasi-x-pay/src/classes/Nexi/WC_Gateway_XPay_Cards.php:16
- > PHP Fatal error
Uncaught Error: Class 'Nexi\\WC_Gateway_XPay_Generic_Method' not found in wp-content/plugins/cartasi-x-pay/src/classes/Nexi/WC_Gateway_NPG_Generic_Method.php:16
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (20 tag instead of maximum 10)
cartasi-x-pay/woocommerce-gateway-nexi-xpay.php 85% from 13 tests
This is the main PHP file of "Nexi XPay" version 7.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("cartasi-x-pay.php" instead of "woocommerce-gateway-nexi-xpay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected12,126 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,373 | 735 | 10,501 |
PO File | 1 | 212 | 275 | 632 |
JavaScript | 5 | 119 | 41 | 575 |
CSS | 2 | 46 | 20 | 225 |
Markdown | 1 | 66 | 0 | 193 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 22.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 2 | 7.14% |
▷ Concrete classes | 26 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 210 | |
▷ Static methods | 113 | 53.81% |
▷ Public methods | 148 | 70.48% |
▷ Protected methods | 2 | 0.95% |
▷ Private methods | 60 | 28.57% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 36 | |
▷ Global constants | 36 | 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
PNG images were not found in this plugin