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.30MB] [CPU: ▼4.75ms] Passed 4 tests
This is a short check of server-side resources used by 아임포트 결제버튼 생성 플러그인
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 40.59 ▼3.20 |
Dashboard /wp-admin | 3.64 ▲0.30 | 52.72 ▼13.85 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 50.69 ▼2.10 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 99.95 ▲0.16 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 43.07 ▲4.68 |
아임포트 결제목록 /wp-admin/edit.php?post_type=iamport_payment | 3.61 | 53.54 |
아임포트 숏코드 메뉴얼 /wp-admin/edit.php?post_type=iamport_payment&page=iamport-shortcode | 3.52 | 37.16 |
아임포트 설정 /wp-admin/edit.php?post_type=iamport_payment&page=iamport-config | 3.53 | 36.32 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
iamport_setting |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 아임포트 결제버튼 생성 플러그인
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲224 | 14.24 ▼0.03 | 14.77 ▲12.65 | 42.00 ▼3.56 |
Dashboard /wp-admin | 2,237 ▲30 | 5.88 ▲0.93 | 104.05 ▼13.16 | 97.02 ▲50.14 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.16 ▲0.03 | 38.24 ▲1.17 | 43.64 ▲8.43 |
Add New Post /wp-admin/post-new.php | 1,706 ▲161 | 22.42 ▼0.66 | 666.63 ▲4.48 | 63.16 ▼8.05 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.25 ▲0.02 | 111.74 ▲2.44 | 99.28 ▲53.10 |
아임포트 결제목록 /wp-admin/edit.php?post_type=iamport_payment | 1,123 | 1.94 | 34.01 | 73.86 |
아임포트 숏코드 메뉴얼 /wp-admin/edit.php?post_type=iamport_payment&page=iamport-shortcode | 1,524 | 2.02 | 27.63 | 205.60 |
아임포트 설정 /wp-admin/edit.php?post_type=iamport_payment&page=iamport-config | 1,413 | 2.06 | 27.54 | 68.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- iamport_setting
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 29 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=iamport_payment&page=iamport-config
- > Notice in wp-content/plugins/iamport-payment/view/admin/setting.php+216
Trying to access array offset on value of type bool
- 15 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=iamport_payment&page=iamport-config
- > Notice in wp-content/plugins/iamport-payment/view/admin/setting.php+188
Undefined index: vbank_day_limit
- 13 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=iamport_payment&page=iamport-config
- > Notice in wp-content/plugins/iamport-payment/view/admin/setting.php+200
Undefined index: card_max_quota
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/iamport-payment/view/modal/background.php
- 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to get property 'data' of non-object in wp-content/plugins/iamport-payment/view/history/thankyou-success.php on line 4
- > PHP Notice
Undefined variable: iamport_result in wp-content/plugins/iamport-payment/view/history/thankyou-success.php on line 4
- > PHP Notice
Undefined variable: order_status in wp-content/plugins/iamport-payment/view/admin/edit-order.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/iamport-payment/view/modal/payment.php:6
- > PHP Notice
Undefined variable: order_view_url in wp-content/plugins/iamport-payment/view/history/thankyou-success.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/iamport-payment/view/admin/setting.php:2
- > PHP Notice
Undefined variable: order_view_url in wp-content/plugins/iamport-payment/view/history/thankyou-success.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/iamport-payment/view/admin/edit-order.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/iamport-payment/view/modal/result.php:6
- > PHP Notice
Undefined variable: order_view_url in wp-content/plugins/iamport-payment/view/history/thankyou-fail.php on line 7
- > PHP Notice
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== iamport-payment ===
)
iamport-payment/IamportPaymentPlugin.php 85% from 13 tests
The primary PHP file in "아임포트 결제버튼 생성 플러그인" version 1.1.19 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 285 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("iamport-payment.php" instead of "IamportPaymentPlugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,602 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 398 | 67 | 2,139 |
JavaScript | 16 | 259 | 73 | 928 |
CSS | 5 | 91 | 22 | 492 |
JSON | 1 | 0 | 0 | 26 |
SVG | 2 | 0 | 2 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 3 | 3.57% |
▷ Public methods | 74 | 88.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 11.90% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.79MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 58.27KB | 17.73KB | ▼ 69.58% |
assets/screenshot-3.png | 308.38KB | 91.46KB | ▼ 70.34% |
assets/img/tag-1.png | 0.69KB | 0.36KB | ▼ 47.54% |
assets/img/tag-5.png | 0.83KB | 0.42KB | ▼ 49.06% |
assets/img/file-img.png | 0.39KB | 0.49KB | 0.00% |