89% woocommerce-email-money-transfer-gateway

Code Review | BLAZING Email Transfer Payment Gateway

WordPress plugin BLAZING Email Transfer Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: woocommerce-email...
  • Plugin version: 2.6.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 17, 2015
  • Latest release: Oct 1, 2022
  • Number of updates: 33
  • Update frequency: every 80.7 days
  • Top authors: massoudshakeri (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

3,000+ active /40,739 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼1.03ms] Passed 4 tests

A check of server-side resources used by BLAZING Email Transfer Payment Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.47 ▲0.59
Dashboard /wp-admin3.31 ▲0.0148.49 ▼2.59
Posts /wp-admin/edit.php3.36 ▲0.0046.48 ▲2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.51 ▼3.62
Media Library /wp-admin/upload.php3.23 ▲0.0037.40 ▲1.51

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

BLAZING Email Transfer Payment Gateway: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.16 ▼1.151.80 ▼0.2243.80 ▼0.54
Dashboard /wp-admin2,203 ▲145.82 ▲0.8696.85 ▼14.1436.85 ▼5.21
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0035.05 ▼1.0133.37 ▲0.58
Add New Post /wp-admin/post-new.php1,534 ▲623.11 ▲4.92598.07 ▼10.4359.05 ▼10.39
Media Library /wp-admin/upload.php1,391 ▲34.32 ▲0.1093.88 ▼14.3540.67 ▼0.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

woocommerce-email-money-transfer-gateway/class-betpg-email-transfer-gateway.php 85% from 13 tests

The principal PHP file in "BLAZING Email Transfer Payment Gateway" v. 2.6.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-email-money-transfer-gateway.php" instead of "class-betpg-email-transfer-gateway.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected347 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP164141268
PO File1181879

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity6.25
▷ Minimum method complexity2.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin