84% gnupay-inicis

Code Review | GNUPAY - KG Inicis

WordPress plugin GNUPAY - KG Inicis scored84%from 54 tests.

About plugin

  • Plugin page: gnupay-inicis
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Jul 12, 2018
  • Number of updates: 19
  • Update frequency: every 41.0 days
  • Top authors: kagla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,402 total downloads

Benchmarks

Plugin footprint 82% 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.00MB] [CPU: ▼4.93ms] Passed 4 tests

A check of server-side resources used by GNUPAY - KG Inicis
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.18 ▼4.71
Dashboard /wp-admin3.31 ▲0.0044.92 ▼5.15
Posts /wp-admin/edit.php3.36 ▲0.0045.91 ▼2.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.61 ▼7.04
Media Library /wp-admin/upload.php3.23 ▲0.0034.89 ▲0.69

Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • Illegal file modification found: 16 files (9.27KB) outside of "wp-content/plugins/gnupay-inicis/" and "wp-content/uploads/"
    • (new file) wp-content/gnupay-inicis/.htaccess
    • (new file) wp-content/gnupay-inicis/key/iniescrow0/mpriv.pem
    • (new file) wp-content/gnupay-inicis/key/INIpayTest/mpriv.pem
    • (new file) wp-content/gnupay-inicis/key/iniescrow0/keypass.enc
    • (new file) wp-content/gnupay-inicis/key/INIpayTest/keypass.enc
    • (new file) wp-content/gnupay-inicis/key/iniescrow0/readme.txt
    • (new file) wp-content/gnupay-inicis/key/keypass.enc
    • (new file) wp-content/gnupay-inicis/key/INIpayTest/mcert.pem
    • (new file) wp-content/gnupay-inicis/key/INIpayTest/readme.txt
    • (new file) wp-content/gnupay-inicis/key/iniescrow0/mcert.pem
    • ...
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for GNUPAY - KG Inicis
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.65 ▼0.581.75 ▼0.3344.16 ▼5.71
Dashboard /wp-admin2,206 ▲184.83 ▼0.0599.86 ▼13.8340.85 ▼5.71
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0033.52 ▼3.8435.80 ▲1.24
Add New Post /wp-admin/post-new.php1,533 ▼123.26 ▼0.08622.84 ▼67.4953.24 ▼14.60
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0299.98 ▲0.2244.54 ▲0.96

Uninstaller [IO: ▲0.01MB] [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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/gnupay-inicis/lib/CreateIdModule.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

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

The primary PHP file in "GNUPAY - KG Inicis" version 1.3.6 is used by WordPress to initiate all plugin functionality
93 characters long description:
우커머스에서 PG사 KG Inicis와 연동하여 결제할수 있는 플러그인입니다.

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
Success! There were no dangerous files found in this plugin8,369 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP371,7542,7507,646
PO File1144193346
JavaScript18420295
CSS26782

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity40.74
▷ Minimum class complexity2.00
▷ Maximum class complexity212.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods242
▷ Static methods10.41%
▷ Public methods23898.35%
▷ Protected methods31.24%
▷ Private methods10.41%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants463
▷ Global constants463100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin