99% gi-blinkpay

Code Review | GI Blink Payments

WordPress plugin GI Blink Payments scored 99% from 54 tests.

About plugin

  • Plugin page: gi-blinkpay
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 5.8.1
  • First release: Jun 18, 2020
  • Latest release: Jun 18, 2020
  • Number of updates: 12
  • Update frequency: every 0.2 days
  • Top authors: c0d3d101 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 199 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼144.16ms] Passed 4 tests

This is a short check of server-side resources used by GI Blink Payments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0737.59 ▲0.05
Dashboard /wp-admin3.14 ▲0.0848.03 ▲5.29
Posts /wp-admin/edit.php3.19 ▲0.0849.95 ▲1.47
Add New Post /wp-admin/post-new.php5.49 ▲0.0687.47 ▼577.97
Media Library /wp-admin/upload.php3.08 ▲0.0734.06 ▼0.18

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

GI Blink Payments: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.87 ▲0.437.31 ▼2.5752.07 ▲3.08
Dashboard /wp-admin2,973 ▲396.05 ▲0.12157.05 ▲1.92120.22 ▲1.65
Posts /wp-admin/edit.php2,736 ▼32.68 ▲0.0167.00 ▼4.51100.12 ▲6.65
Add New Post /wp-admin/post-new.php1,683 ▲10218.63 ▲2.14393.39 ▼73.00116.97 ▼7.00
Media Library /wp-admin/upload.php1,810 ▼04.99 ▼0.02154.26 ▼5.53124.45 ▼2.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
The official readme.txt might help

gi-blinkpay/gateway.php 92% from 13 tests

The primary PHP file in "GI Blink Payments" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gi-blinkpay.php" instead of "gateway.php")

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
Good job! No executable or dangerous file extensions detected377 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1103130377

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin