100% 8pay-payment-gateway

Code Review | 8Pay Payment Gateway

WordPress plugin 8Pay Payment Gateway scored 100% from 54 tests.

About plugin

  • Plugin page: 8pay-payment-gateway
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.7
  • WordPress version: 5.9.2
  • First release: Jul 9, 2021
  • Latest release: Nov 6, 2021
  • Number of updates: 9
  • Update frequency: every 13.5 days
  • Top authors: 8pay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 332 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼298.16ms] Passed 4 tests

Server-side resources used by 8Pay Payment Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0351.88 ▼0.52
Dashboard /wp-admin3.43 ▲0.0233.84 ▼0.22
Posts /wp-admin/edit.php3.66 ▲0.0239.76 ▲2.16
Add New Post /wp-admin/post-new.php6.93 ▼0.0794.73 ▼1,194.05
Media Library /wp-admin/upload.php3.31 ▲0.0225.24 ▲2.68

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for 8Pay Payment Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,775 ▲2115.63 ▲0.035.70 ▼0.242.27 ▼0.62
Dashboard /wp-admin2,900 ▲396.01 ▼0.19116.81 ▼35.46155.71 ▼6.39
Posts /wp-admin/edit.php2,667 ▼213.24 ▲0.0165.35 ▲2.79143.70 ▲7.43
Add New Post /wp-admin/post-new.php1,766 ▲10521.37 ▲4.84474.84 ▲51.25155.80 ▼3.66
Media Library /wp-admin/upload.php1,710 ▲95.50 ▼0.02147.28 ▲9.16194.57 ▲2.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration Passed 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: 8pay, crypto, payment

8pay-payment-gateway/8pay-payment-gateway.php Passed 13 tests

"8Pay Payment Gateway" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Take crypto payments on your store using 8Pay.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin948 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.23
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
▷ Static methods1333.33%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions457.14%
▷ Anonymous functions342.86%
▷ Global constants538.46%
▷ Class constants861.54%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/icon.png1.70KB1.51KB▼ 11.47%