74% gnupay-kcp

Code Review | GNUPAY - NHN KCP

WordPress plugin GNUPAY - NHN KCP scored74%from 54 tests.

About plugin

  • Plugin page: gnupay-kcp
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 25, 2016
  • Latest release: May 31, 2018
  • Number of updates: 20
  • Update frequency: every 38.4 days
  • Top authors: kagla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲1.12ms] Passed 4 tests

This is a short check of server-side resources used by GNUPAY - NHN KCP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.88 ▼1.99
Dashboard /wp-admin3.31 ▲0.0046.74 ▲0.98
Posts /wp-admin/edit.php3.36 ▲0.0048.94 ▲2.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.29 ▲11.38
Media Library /wp-admin/upload.php3.23 ▲0.0037.38 ▲3.48

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

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

Browser metrics Passed 4 tests

Checking browser requirements for GNUPAY - NHN KCP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.21 ▼0.971.89 ▼0.7541.75 ▼15.33
Dashboard /wp-admin2,206 ▲184.89 ▼0.15108.51 ▲3.2140.87 ▲0.68
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0240.14 ▲0.5234.23 ▼0.19
Add New Post /wp-admin/post-new.php1,514 ▼817.71 ▼5.25683.11 ▲2.7859.18 ▲4.87
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0198.59 ▼0.9543.33 ▼0.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/gnupay-kcp/kcp/KCPComLibrary.php:80

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

gnupay-kcp/gnupay-kcp.php Passed 13 tests

The main file in "GNUPAY - NHN KCP" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
91 characters long description:
우커머스에서 PG사 NHN KCP와 연동하여 결제할수 있는 플러그인입니다.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Almost there! Just fix the following issues
  • Do not include executable or dangerous files in your plugin
    • .exe - Executable in Windows
      • wp-content/plugins/gnupay-kcp/kcp/bin/pp_cli_exe.exe
6,271 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP371,1627474,936
PO File1183223429
JavaScript2103101392
XML200287
CSS34414217
HTML10710

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.15
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods134
▷ Static methods42.99%
▷ Public methods13097.01%
▷ Protected methods32.24%
▷ Private methods10.75%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected