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.26MB] [CPU: ▼0.06ms] Passed 4 tests
An overview of server-side resources used by iamport-for-woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 40.74 ▲2.88 |
Dashboard /wp-admin | 3.56 ▲0.26 | 49.50 ▲1.35 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 52.29 ▲6.73 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 83.81 ▼8.97 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 36.87 ▲4.49 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for iamport-for-woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲160 | 14.07 ▼0.33 | 11.23 ▲9.59 | 42.61 ▲2.90 |
Dashboard /wp-admin | 2,201 ▲20 | 5.79 ▲0.10 | 86.79 ▼15.99 | 44.15 ▼0.21 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.28 ▲0.27 | 35.64 ▼5.90 | 40.67 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.10 ▼0.03 | 688.89 ▲46.93 | 54.00 ▼3.51 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.38 ▲0.21 | 105.33 ▲5.83 | 44.25 ▲2.71 |
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 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/iamport-for-woocommerce/includes/templates/empty-order-receipt.php
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Base_Gateway_Iamport' not found in wp-content/plugins/iamport-for-woocommerce/iamport-paypal.php:2
- > PHP Fatal error
Uncaught Error: Class 'Base_Gateway_Iamport' not found in wp-content/plugins/iamport-for-woocommerce/iamport-alipay.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iamport-for-woocommerce/iamport-vbank.php:3
- > PHP Fatal error
Uncaught Error: Class 'Base_Gateway_Iamport' not found in wp-content/plugins/iamport-for-woocommerce/iamport-samsung.php:2
- > PHP Fatal error
Uncaught Error: Class 'Base_Gateway_Iamport' not found in wp-content/plugins/iamport-for-woocommerce/iamport-paymentwall.php:2
- > PHP Fatal error
Uncaught Error: Class 'Base_Gateway_Iamport' not found in wp-content/plugins/iamport-for-woocommerce/iamport-naverpay.php:3
- > PHP Fatal error
Uncaught Error: Class 'Base_Gateway_Iamport' not found in wp-content/plugins/iamport-for-woocommerce/iamport-phone.php:2
- > PHP Fatal error
Uncaught Error: Class 'Base_Gateway_Iamport' not found in wp-content/plugins/iamport-for-woocommerce/iamport-payco.php:2
- > PHP Fatal error
Uncaught Error: Class 'Base_Gateway_Iamport' not found in wp-content/plugins/iamport-for-woocommerce/iamport-kakao.php:2
- > PHP Fatal error
Uncaught Error: Class 'Base_Gateway_Iamport' not found in wp-content/plugins/iamport-for-woocommerce/iamport-card.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: There are too many tags (23 tag instead of maximum 10)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== iamport-for-woocommerce ===
)
iamport-for-woocommerce/IamportPlugin.php 77% from 13 tests
"iamport-for-woocommerce" version 2.2.37's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Plugin Name: Please shorten the plugin name (currently 73 characters long instead of max. 70)
- Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("iamport-for-woocommerce.php" instead of "IamportPlugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin10,745 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,928 | 957 | 8,162 |
JavaScript | 13 | 371 | 294 | 2,180 |
PO File | 2 | 103 | 147 | 337 |
CSS | 2 | 3 | 0 | 33 |
YAML | 1 | 2 | 0 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 24.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 1 | 2.44% |
▷ Concrete classes | 40 | 97.56% |
▷ Final classes | 0 | 0.00% |
Methods | 386 | |
▷ Static methods | 50 | 12.95% |
▷ Public methods | 294 | 76.17% |
▷ Protected methods | 40 | 10.36% |
▷ Private methods | 52 | 13.47% |
Functions | 37 | |
▷ Named functions | 34 | 91.89% |
▷ Anonymous functions | 3 | 8.11% |
Constants | 48 | |
▷ Global constants | 2 | 4.17% |
▷ Class constants | 46 | 95.83% |
▷ Public constants | 46 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.36MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 124.18KB | 51.29KB | ▼ 58.70% |
assets/screenshot-2.png | 101.62KB | 31.49KB | ▼ 69.01% |
assets/banner-772x250.png | 72.85KB | 20.35KB | ▼ 72.07% |
assets/icon-256x256.png | 12.87KB | 5.43KB | ▼ 57.77% |
assets/screenshot-1.png | 58.27KB | 17.73KB | ▼ 69.58% |