100% indacoin-payment-gateway

Code Review | Indacoin Payment Gateway

WordPress plugin Indacoin Payment Gateway scored 100% from 54 tests.

About plugin

  • Plugin page: indacoin-payment-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 5.8.1
  • First release: Feb 5, 2020
  • Latest release: Feb 5, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: indacoin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 232 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼146.85ms] Passed 4 tests

This is a short check of server-side resources used by Indacoin Payment Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1836.71 ▲17.32
Dashboard /wp-admin3.13 ▲0.0746.82 ▲0.29
Posts /wp-admin/edit.php3.21 ▲0.1146.75 ▼3.82
Add New Post /wp-admin/post-new.php5.49 ▲0.0693.41 ▼578.58
Media Library /wp-admin/upload.php3.07 ▲0.0633.07 ▼5.28

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Indacoin Payment Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.89 ▼0.149.82 ▲0.4944.61 ▼3.73
Dashboard /wp-admin2,973 ▲426.03 ▼0.16138.46 ▼25.33112.90 ▲7.52
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0074.48 ▲0.5986.30 ▼2.14
Add New Post /wp-admin/post-new.php1,500 ▼11518.84 ▼2.60390.84 ▲83.24106.89 ▼1.49
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.00155.50 ▲0.75122.91 ▼1.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: crypto, mastercard, woocommerce, system, payment...

indacoin-payment-gateway/indacoin-payment.php 92% from 13 tests

"Indacoin Payment Gateway" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("indacoin-payment-gateway.php" instead of "indacoin-payment.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
There were no executable files found in this plugin395 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181118385
Markdown14010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods526.32%
▷ Protected methods00.00%
▷ Private methods1473.68%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin