84% 7star-pay

Code Review | Payment Gateway for crypto currency

WordPress plugin Payment Gateway for crypto currency scored84%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: 6.3.1
  • 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 /562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.86ms] Passed 4 tests

Analyzing server-side resources used by Payment Gateway for crypto currency
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0352.71 ▲13.00
Dashboard /wp-admin3.33 ▼0.0242.87 ▼20.35
Posts /wp-admin/edit.php3.38 ▲0.0240.54 ▼4.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.15 ▼26.44
Media Library /wp-admin/upload.php3.25 ▲0.0234.27 ▼0.32

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Payment Gateway for crypto currency
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲17413.69 ▼0.6910.60 ▲8.6737.26 ▼7.51
Dashboard /wp-admin2,201 ▲135.80 ▲0.9098.35 ▼13.9639.58 ▼7.17
Posts /wp-admin/edit.php2,083 ▼61.94 ▼0.1030.88 ▼5.5530.38 ▼6.39
Add New Post /wp-admin/post-new.php1,530 ▲1623.45 ▲5.90678.62 ▲10.1851.93 ▼3.58
Media Library /wp-admin/upload.php1,389 ▼24.29 ▲0.0599.34 ▲3.7344.43 ▲3.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
Everything seems fine, however 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > init_7star_pay_gateway_class getting started

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: 7starpay, woocommerce, crypto currency payment

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

"Payment Gateway for crypto currency" version 2.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • 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
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 82 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected379 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP39928378
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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%