Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/gnucommerce/lib/gc_board_var.class.php+80
Trying to access array offset on value of type null
Server metrics [RAM: ▼0.35MB] [CPU: ▼14.38ms] Passed 4 tests
A check of server-side resources used by GNUCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.35 | 40.08 ▼1.74 |
Dashboard /wp-admin | 3.66 ▲0.36 | 49.75 ▼1.39 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 55.50 ▲7.31 |
Add New Post /wp-admin/post-new.php | 3.48 ▼2.40 | 41.00 ▼58.04 |
Media Library /wp-admin/upload.php | 3.51 ▲0.29 | 38.59 ▲3.66 |
분류 설정 /wp-admin/edit-tags.php?taxonomy=cart_cat&post_type=gnucommerce | 3.51 | 38.86 |
환경 설정 /wp-admin/admin.php?page=gc_admin | 4.32 | 47.86 |
상품 추가하기 /wp-admin/post-new.php?post_type=gnucommerce | 3.76 | 54.76 |
쿠폰 관리 /wp-admin/admin.php?page=gnu_couponlist | 3.58 | 34.31 |
게시판 관리 /wp-admin/admin.php?page=gc_board_list | 3.64 | 38.93 |
기타 /wp-admin/admin.php?page=gnu_adm_etc | 3.58 | 38.84 |
상품 관리 /wp-admin/edit.php?post_type=gnucommerce | 3.63 | 38.21 |
게시판 추가 /wp-admin/admin.php?page=gc_board_form | 4.24 | 36.76 |
주문 관리 /wp-admin/admin.php?page=gnu_orderlist | 3.81 | 41.22 |
개인결제 관리 /wp-admin/admin.php?page=gnu_personalpaylist | 3.58 | 39.42 |
Server storage [IO: ▲13.08MB] [DB: ▲0.04MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 1,056 new files
Database: 27 new tables, 11 new options
New tables |
---|
wp_gc_shop_item_qa |
wp_gc_shop_order_delete |
wp_g5_board |
wp_gc_shop_sendcost |
wp_gc_shop_wish |
wp_gc_shop_item |
wp_gc_shop_coupon_log |
wp_g5_write |
wp_g5_term_taxonomy |
wp_g5_write_comment |
... |
New WordPress options |
---|
gc_cf_stipulation |
theysaidso_admin_options |
db_upgraded |
gc_cf_privacy |
gc_options |
widget_recent-posts |
gc_board_options |
can_compress_scripts |
widget_gc_cat_widget |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by GNUCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲157 | 13.64 ▼0.66 | 1.94 ▼0.22 | 41.48 ▲3.96 |
Dashboard /wp-admin | 2,285 ▲100 | 5.01 ▲0.10 | 101.28 ▼7.19 | 93.30 ▲50.23 |
Posts /wp-admin/edit.php | 2,189 ▲100 | 2.08 ▲0.06 | 37.95 ▼5.85 | 47.54 ▲10.26 |
Add New Post /wp-admin/post-new.php | 1,604 ▲82 | 18.57 ▼4.78 | 606.54 ▲19.49 | 37.02 ▼17.60 |
Media Library /wp-admin/upload.php | 1,476 ▲91 | 4.29 ▲0.08 | 105.16 ▼5.27 | 90.20 ▲47.01 |
분류 설정 /wp-admin/edit-tags.php?taxonomy=cart_cat&post_type=gnucommerce | 1,397 | 2.22 | 27.90 | 61.82 |
환경 설정 /wp-admin/admin.php?page=gc_admin | 6,729 | 9.30 | 294.91 | 286.05 |
상품 추가하기 /wp-admin/post-new.php?post_type=gnucommerce | 4,443 | 8.37 | 190.45 | 213.83 |
쿠폰 관리 /wp-admin/admin.php?page=gnu_couponlist | 1,019 | 1.78 | 26.97 | 74.69 |
게시판 관리 /wp-admin/admin.php?page=gc_board_list | 1,212 | 2.32 | 42.64 | 62.36 |
기타 /wp-admin/admin.php?page=gnu_adm_etc | 1,045 | 1.76 | 25.92 | 63.17 |
상품 관리 /wp-admin/edit.php?post_type=gnucommerce | 1,235 | 2.02 | 35.00 | 46.52 |
게시판 추가 /wp-admin/admin.php?page=gc_board_form | 3,601 | 2.29 | 43.37 | 120.87 |
주문 관리 /wp-admin/admin.php?page=gnu_orderlist | 1,310 | 1.89 | 31.15 | 74.87 |
개인결제 관리 /wp-admin/admin.php?page=gnu_personalpaylist | 1,029 | 1.77 | 24.88 | 65.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% 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
- The uninstall procedure failed, leaving 27 tables in the database
- wp_gc_shop_coupon_log
- wp_g5_scrap
- wp_gc_shop_personalpay
- wp_g5_board
- wp_gc_shop_item
- wp_gc_inicis_log
- wp_g5_writemeta
- wp_gc_shop_coupon
- wp_gc_shop_item_stocksms
- wp_g5_term_taxonomy
- ...
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_gc_cat_widget
- db_upgraded
- gc_cf_privacy
- gc_options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- gc_cf_stipulation
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gnucommerce
- > Notice in wp-content/plugins/gnucommerce/adm/view/iteminfo.php+45
Trying to access array offset on value of type int
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
Please take a closer look at the following
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gnucommerce/shop/lg/cancel_url.php
- > /wp-content/plugins/gnucommerce/shop/inicis/libs/CreateIdModule.php
- > /wp-content/plugins/gnucommerce/shop/inicis/close.php
- > /wp-content/plugins/gnucommerce/shop/lg/mispwapurl.php
- > /wp-content/plugins/gnucommerce/shop/inicis/popup.php
- 32× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/gnucommerce/shop/mail/ordermail.mail.php:5
- > PHP Fatal error
Uncaught Error: Call to a member function Rollback() on null in wp-content/plugins/gnucommerce/shop/lg/xpay_cancel.php:5
- > PHP Warning
require_once(class.ole_pps_root.php): failed to open stream: No such file or directory in wp-content/plugins/gnucommerce/lib/Excel/php_writeexcel/class.writeexcel_workbookbig.inc.php on line 28
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gnucommerce/adm/orderlistupdate.php on line 44
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/gnucommerce/shop/mail/couponmail.mail.php:6
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gnucommerce/adm/orderlistupdate.php on line 68
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gnucommerce/plug/htmlpurifier/HTMLPurifier.standalone.php on line 12007
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/gnucommerce/shop/mail/orderupdate2.mail.php:6
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gnucommerce/adm/orderlistupdate.php on line 45
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/gnucommerce/adm/orderlistupdate.php on line 110
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
gnucommerce/gnucommerce.php 92% from 13 tests
This is the main PHP file of "GNUCommerce" version 1.5.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/gnucommerce/plug/lgxpay/lgdacom/conf/ca-bundle.crt
- .exe - Executable in Windows
- ☣ wp-content/plugins/gnucommerce/plug/okname/bin/okname.exe
- ☣ wp-content/plugins/gnucommerce/plug/okname/bin/oknamex64.exe
- ☣ wp-content/plugins/gnucommerce/shop/kcp/bin/pp_cli_exe.exe
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 469 | 19,068 | 17,966 | 84,339 |
CSS | 29 | 950 | 628 | 13,457 |
JavaScript | 36 | 1,021 | 1,314 | 6,455 |
PO File | 1 | 1,620 | 2,777 | 3,646 |
XML | 2 | 0 | 0 | 287 |
HTML | 1 | 0 | 7 | 10 |
INI | 1 | 1 | 1 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 232)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 20.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 539.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 232.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 330 | |
▷ Abstract classes | 12 | 3.64% |
▷ Concrete classes | 318 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,749 | |
▷ Static methods | 137 | 7.83% |
▷ Public methods | 1,527 | 87.31% |
▷ Protected methods | 89 | 5.09% |
▷ Private methods | 133 | 7.60% |
Functions | 480 | |
▷ Named functions | 480 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 703 | |
▷ Global constants | 645 | 91.75% |
▷ Class constants | 58 | 8.25% |
▷ Public constants | 58 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
59 PNG files occupy 0.21MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plug/kcaptcha/fonts/chaparral.png | 7.42KB | 4.17KB | ▼ 43.87% |
img/s_star2.png | 0.88KB | 0.87KB | ▼ 0.89% |
css/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
css/images/ui-icons_0073ea_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
plug/kcaptcha/fonts/kozuka.png | 7.08KB | 4.03KB | ▼ 43.13% |