94% 7star-pay

Code Review | Payment Gateway for crypto currency

WordPress plugin Payment Gateway for crypto currency scored 94% from 54 tests.

About plugin

  • Plugin page: 7star-pay
  • Plugin version: 2.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 5.9.2
  • First release: Oct 5, 2021
  • Latest release: Mar 21, 2022
  • Number of updates: 14
  • Update frequency: every 12.2 days
  • Top authors: 7starpay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 241 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by Payment Gateway for crypto currency
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0353.45 ▲4.62
Dashboard /wp-admin3.44 ▲0.0333.58 ▲1.23
Posts /wp-admin/edit.php3.67 ▲0.0236.89 ▼1.57
Add New Post /wp-admin/post-new.php6.90 ▼0.0791.13 ▼1,176.76
Media Library /wp-admin/upload.php3.32 ▲0.0223.85 ▲0.22

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Payment Gateway for crypto currency
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,908 ▲16216.22 ▲0.4810.38 ▲4.922.30 ▲0.32
Dashboard /wp-admin2,892 ▲316.06 ▼0.11118.16 ▼18.32153.45 ▼6.19
Posts /wp-admin/edit.php2,690 ▲333.20 ▼0.0362.64 ▲0.19140.73 ▲2.40
Add New Post /wp-admin/post-new.php1,659 ▼116.81 ▲0.55408.36 ▼9.04150.57 ▼1.69
Media Library /wp-admin/upload.php1,692 ▼65.52 ▲0.04147.74 ▲7.48192.17 ▲7.56

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 75% from 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 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > init_7star_pay_gateway_class getting started

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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: 7starpay, woocommerce, crypto currency payment

7star-pay/7star-pay.php 85% from 13 tests

The primary PHP file in "Payment Gateway for crypto currency" version 2.3.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 82 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin379 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/7star-pay.png14.01KB6.46KB▼ 53.89%