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.23MB] [CPU: ▼3.98ms] Passed 4 tests
Analyzing server-side resources used by TurinPay Plugins for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 40.52 ▲1.43 |
Dashboard /wp-admin | 3.53 ▲0.23 | 52.36 ▲3.03 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 53.97 ▼3.46 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 90.40 ▼16.90 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 40.80 ▲4.39 |
Server storage [IO: ▲2.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
tpfw_start_onboarding |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
TurinPay Plugins for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲49 | 13.91 ▼0.53 | 1.65 ▼0.36 | 41.45 ▼2.70 |
Dashboard /wp-admin | 2,216 ▲39 | 5.51 ▼0.19 | 87.49 ▼1.53 | 41.00 ▼5.64 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.03 ▲0.06 | 42.68 ▲1.00 | 37.88 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.37 ▲0.20 | 676.83 ▲24.91 | 55.74 ▼13.62 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.19 ▼0.07 | 108.65 ▲6.69 | 49.58 ▲7.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- tpfw_start_onboarding
- widget_recent-posts
- db_upgraded
Smoke tests 75% 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 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 items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Trait 'TPFW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/turinpay-for-woocommerce/gateway/turinpay/frontend-scripts.php on line 17
- > PHP Fatal error
Trait 'TPFW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/turinpay-for-woocommerce/inc/notice.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/turinpay-for-woocommerce/gateway/abstract-payment-gateway.php:19
- > PHP Fatal error
Trait 'TPFW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/turinpay-for-woocommerce/inc/logger.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'TPFW\\Gateway\\Abstract_Payment_Gateway' not found in wp-content/plugins/turinpay-for-woocommerce/gateway/turinpay/webhook.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function TPFW\\register_activation_hook() in wp-content/plugins/turinpay-for-woocommerce/autoloader.php:81
- > PHP Fatal error
Trait 'TPFW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/turinpay-for-woocommerce/admin/admin-controller.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/turinpay-for-woocommerce/turinpay-plugins-for-woocommerce.php:20
- > PHP Fatal error
Uncaught Error: Class 'TPFW\\Gateway\\Abstract_Payment_Gateway' not found in wp-content/plugins/turinpay-for-woocommerce/gateway/turinpay/turinpay-payments.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
2 plugin tags: turinpay, wc
turinpay-for-woocommerce/turinpay-plugins-for-woocommerce.php 77% from 13 tests
The main file in "TurinPay Plugins for WooCommerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("turinpay-for-woocommerce.php" instead of "turinpay-plugins-for-woocommerce.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin47,258 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 44,756 |
PHP | 21 | 403 | 1,268 | 1,790 |
JavaScript | 6 | 32 | 207 | 358 |
CSS | 2 | 31 | 3 | 160 |
Markdown | 2 | 27 | 0 | 71 |
XML | 2 | 17 | 12 | 62 |
HTML | 1 | 2 | 0 | 61 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 38 | 28.57% |
▷ Public methods | 130 | 97.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.26% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon/tpfw_payment.png | 2.48KB | 2.28KB | ▼ 7.96% |