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.03MB] [CPU: ▼6.27ms] Passed 4 tests
Analyzing server-side resources used by My-CoolPay - Payment gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.28 ▲0.22 |
Dashboard /wp-admin | 3.35 ▲0.01 | 49.09 ▼15.38 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 52.51 ▲3.38 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.15 ▼9.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.23 ▼0.16 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for My-CoolPay - Payment gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.21 ▼0.07 | 1.70 ▼0.20 | 48.21 ▲1.22 |
Dashboard /wp-admin | 2,192 ▲15 | 5.59 ▲0.02 | 90.96 ▼1.25 | 42.54 ▲4.31 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.05 | 40.39 ▼2.71 | 35.21 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.19 ▼4.88 | 627.48 ▲7.19 | 71.55 ▲20.73 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.25 ▲0.02 | 98.03 ▼4.02 | 42.03 ▼3.05 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/my-coolpay-payment-gateway-for-woocommerce/include/mycoolpay_hooks.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-coolpay-payment-gateway-for-woocommerce/include/mycoolpay_callback.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/my-coolpay-payment-gateway-for-woocommerce/include/mycoolpay_update_wc_admin_order_list.php:20
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
my-coolpay-payment-gateway-for-woocommerce/my-coolpay-woocommerce-gateway.php 77% from 13 tests
The main PHP file in "My-CoolPay - Payment gateway for WooCommerce" ver. 1.5.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 275 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("my-coolpay-payment-gateway-for-woocommerce.php" instead of "my-coolpay-woocommerce-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected380 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 110 | 126 | 380 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 58.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 41.67% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/my_coolpay_operators.png | 8.97KB | 3.80KB | ▼ 57.59% |
images/visa_master_card.png | 4.38KB | 2.10KB | ▼ 52.15% |
images/mcp.png | 2.72KB | 1.36KB | ▼ 49.86% |
images/mcp_visa_master.png | 5.99KB | 2.62KB | ▼ 56.36% |
images/mcp_momo_om.png | 6.60KB | 2.78KB | ▼ 57.89% |