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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲4.80ms] Passed 4 tests
Server-side resources used by High Risk Payment Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 54.22 ▲11.43 |
Dashboard /wp-admin | 3.36 ▲0.05 | 56.19 ▲12.03 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.40 ▲4.87 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.76 ▼1.77 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.95 ▲4.68 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by High Risk Payment Gateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.40 ▼0.97 | 4.41 ▲2.65 | 40.77 ▲2.42 |
Dashboard /wp-admin | 2,206 ▲18 | 5.79 ▲0.70 | 113.85 ▼1.60 | 45.84 ▼2.07 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▲0.01 | 48.77 ▲7.70 | 71.68 ▲33.36 |
Add New Post /wp-admin/post-new.php | 1,534 ▲14 | 23.08 ▲0.15 | 755.83 ▲148.49 | 66.27 ▲17.69 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.11 | 122.10 ▲13.96 | 51.66 ▲5.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: woocommerc pre order payment, high risk, firearms, woocommerce subscription payment, tech support...
high-risk-payments-for-woo/woocommerce-cardpay-solutions.php 69% from 13 tests
"High Risk Payment Gateway for WooCommerce" version 2.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("high-risk-payments-for-woo.php" instead of "woocommerce-cardpay-solutions.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "2.2.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,414 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 274 | 846 | 2,216 |
JavaScript | 2 | 11 | 0 | 155 |
CSS | 1 | 0 | 0 | 43 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 37.25 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 1 | 1.04% |
▷ Public methods | 82 | 85.42% |
▷ Protected methods | 10 | 10.42% |
▷ Private methods | 4 | 4.17% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cardpay_logo_sm.png | 12.09KB | 4.42KB | ▼ 63.45% |