Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.91ms] Passed 4 tests
An overview of server-side resources used by Paymennt
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 48.94 ▲9.68 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.03 ▼6.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.72 ▼0.93 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.83 ▼12.33 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.59 ▼3.42 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paymennt
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.29 ▼0.06 | 1.76 ▲0.18 | 45.87 ▲0.86 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.00 | 91.65 ▲2.52 | 38.72 ▼1.37 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.01 | 40.78 ▲3.93 | 37.84 ▲4.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.11 ▼0.55 | 657.02 ▼36.93 | 53.27 ▼0.31 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.31 ▲0.11 | 94.35 ▼14.07 | 43.51 ▼2.93 |
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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Paymennt_Card_Parent' not found in wp-content/plugins/paymennt-card-payment/includes/lib/class-pmnt-utils.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/paymennt-card-payment/includes/lib/class-pmnt-parent.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/paymennt-card-payment/includes/lib/class-pmnt-parent.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/paymennt-card-payment/includes/lib/class-pmnt-parent.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymennt_Card_Parent' not found in wp-content/plugins/paymennt-card-payment/includes/lib/class-pmnt-order.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymennt_Card_Parent' not found in wp-content/plugins/paymennt-card-payment/includes/lib/class-pmnt-config.php:3
- > PHP Fatal error
Uncaught Error: Class 'Paymennt_Card_Parent' not found in wp-content/plugins/paymennt-card-payment/includes/lib/class-pmnt-payment-service.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/paymennt-card-payment/woocommerce-paymennt.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: payment, woocommerce, credit card, payment request
paymennt-card-payment/woocommerce-paymennt.php 92% from 13 tests
The primary PHP file in "Paymennt" version 3.0.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("paymennt-card-payment.php" instead of "woocommerce-paymennt.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 plugin3,334 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 891 | 1,793 | 3,095 |
JavaScript | 1 | 14 | 2 | 119 |
JSON | 3 | 0 | 0 | 99 |
CSS | 1 | 4 | 0 | 19 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 5 | 8.20% |
▷ Concrete classes | 56 | 91.80% |
▷ Final classes | 1 | 1.79% |
Methods | 215 | |
▷ Static methods | 20 | 9.30% |
▷ Public methods | 193 | 89.77% |
▷ Protected methods | 5 | 2.33% |
▷ Private methods | 17 | 7.91% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 22 | |
▷ Global constants | 1 | 4.55% |
▷ Class constants | 21 | 95.45% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mc-visa-network-logos.png | 5.76KB | 2.62KB | ▼ 54.48% |