Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼8.94ms] Passed 4 tests
Server-side resources used by Payment Gateway through Payletter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 34.74 ▼4.79 |
Dashboard /wp-admin | 3.49 ▲0.15 | 44.03 ▼10.54 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 48.14 ▲2.33 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 81.06 ▼22.75 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.90 ▲2.77 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
payletter_pay_wc_transient |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Gateway through Payletter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.31 ▼1.07 | 1.78 ▼0.10 | 38.99 ▼6.22 |
Dashboard /wp-admin | 2,209 ▲21 | 4.81 ▼0.13 | 102.56 ▼7.33 | 39.65 ▼5.14 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.07 | 39.79 ▼0.95 | 37.32 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.22 ▲0.08 | 612.08 ▼8.85 | 52.96 ▼5.01 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.15 ▼0.00 | 94.37 ▼6.71 | 41.28 ▼1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- payletter_pay_wc_transient
- can_compress_scripts
- widget_recent-comments
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Onepix\\Payletter\\Gateways\\Payletter_Pay_WC_Payletter_Gateway' not found in wp-content/plugins/payment-gateway-through-payletter/gateways/Payletter_Pay_WC_Payletter_PaypalExpressCheckout.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/payment-gateway-through-payletter/gateways/Payletter_Pay_WC_Payletter_Gateway.php:13
- > PHP Fatal error
Uncaught Error: Class 'Onepix\\Payletter\\Gateways\\Payletter_Pay_WC_Payletter_Gateway' not found in wp-content/plugins/payment-gateway-through-payletter/gateways/Payletter_Pay_WC_Payletter_PLCreditCardMpi.php:10
- > PHP Fatal error
Uncaught Error: Class 'Onepix\\Payletter\\Gateways\\Payletter_Pay_WC_Payletter_Gateway' not found in wp-content/plugins/payment-gateway-through-payletter/gateways/Payletter_Pay_WC_Payletter_PLCreditCard.php:9
- > PHP Fatal error
Uncaught Error: Class 'Onepix\\Payletter\\Gateways\\Payletter_Pay_WC_Payletter_Gateway' not found in wp-content/plugins/payment-gateway-through-payletter/gateways/Payletter_Pay_WC_Payletter_PLUnionPay.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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, payletter, payment, gateway
payment-gateway-through-payletter/payment-gateway-through-payletter.php 92% from 13 tests
Analyzing the main PHP file in "Payment Gateway through Payletter" version 1.0.2
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 363 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,844 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 490 | 615 | 2,748 |
JavaScript | 1 | 21 | 3 | 91 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 19.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 18 | 14.63% |
▷ Public methods | 121 | 98.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.63% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected