78% mshop-npay

Code Review | 우커머스 네이버페이

WordPress plugin 우커머스 네이버페이 scored78%from 54 tests.

About plugin

  • Plugin page: mshop-npay
  • Plugin version: 3.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 23, 2017
  • Latest release: Nov 23, 2023
  • Number of updates: 242
  • Update frequency: every 10.0 days
  • Top authors: codemstory (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /32,522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.76ms] Passed 4 tests

Server-side resources used by 우커머스 네이버페이
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.73 ▼3.97
Dashboard /wp-admin3.34 ▲0.0356.87 ▲4.79
Posts /wp-admin/edit.php3.45 ▲0.1046.88 ▲1.23
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.77 ▲7.93
Media Library /wp-admin/upload.php3.26 ▲0.0337.53 ▲1.00

Server storage [IO: ▲4.92MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 138 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for 우커머스 네이버페이
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.25 ▲1.041.87 ▼2.7044.38 ▲1.01
Dashboard /wp-admin2,198 ▲215.62 ▲0.0585.94 ▼14.3336.62 ▼6.00
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0538.37 ▼0.9035.50 ▼0.28
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▼0.04680.23 ▼13.6268.21 ▲15.60
Media Library /wp-admin/upload.php1,394 ▼34.27 ▲0.0697.13 ▼2.3841.21 ▼4.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mshop-npay/includes/admin/meta-boxes/views/order-item-status/purchase-decided.php
    • > /wp-content/plugins/mshop-npay/includes/admin/meta-boxes/views/html-order-item-status-wc.php
    • > /wp-content/plugins/mshop-npay/templates/connect-key-guide.php
    • > /wp-content/plugins/mshop-npay/includes/admin/meta-boxes/views/html-order-item-status.php
    • > /wp-content/plugins/mshop-npay/includes/admin/meta-boxes/views/order-item-status/place-product-order.php
  • 44× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/mshop-npay/includes/admin/class-mnp-customer-inquiry-list-table.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mshop-npay/includes/admin/meta-boxes/views/exchange.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/mshop-npay/includes/admin/templates/category-settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mshop-npay/includes/admin/meta-boxes/views/place-product-order.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'MNP_Message' not found in wp-content/plugins/mshop-npay/includes/message/class-mnp-message-cancel-info.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mshop-npay/includes/admin/class-mnp-customer-inquiry-list-table.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'MNP_Manager' not found in wp-content/plugins/mshop-npay/templates/wishlist-popup.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mshop-npay/includes/admin/meta-boxes/views/return.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/mshop-npay/includes/admin/templates/customer-inquiry-list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MNP() in wp-content/plugins/mshop-npay/templates/cart/naverpay-button.php:3

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: lg, pgall, kcp

mshop-npay/mshop-npay.php 92% from 13 tests

The main PHP file in "우커머스 네이버페이" ver. 3.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

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
Everything looks great! No dangerous files found in this plugin9,888 lines of code in 119 files:
LanguageFilesBlank linesComment linesLines of code
PHP961,4921218,589
SVG3301,212
JavaScript16012383
CSS4034

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity16.63
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes62
▷ Abstract classes00.00%
▷ Concrete classes62100.00%
▷ Final classes23.23%
Methods348
▷ Static methods27679.31%
▷ Public methods31490.23%
▷ Protected methods216.03%
▷ Private methods133.74%
Functions27
▷ Named functions2177.78%
▷ Anonymous functions622.22%
Constants128
▷ Global constants32.34%
▷ Class constants12597.66%
▷ Public constants125100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/npay.png1.35KB0.73KB▼ 46.06%
assets/images/mshop-icon.png0.58KB0.71KB0.00%
assets/images/detail-info.png1.14KB0.40KB▼ 64.87%
includes/admin/setting-manager/css/themes/default/assets/images/flags.png27.46KB29.21KB0.00%