89% tomanpay-escrow-service-payment-method-for-woocommerce

Code Review | سیستم معاملاتی درگاه پرداخت امن تومن برای ووکامرس

WordPress plugin سیستم معاملاتی درگاه پرداخت امن تومن برای ووکامرس scored89%from 54 tests.

About plugin

  • Plugin page: tomanpay-escrow-s...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: May 20, 2023
  • Latest release: Jul 12, 2023
  • Number of updates: 10
  • Update frequency: every 5.3 days
  • Top authors: mrfazeli666tomanpay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /597 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.86ms] Passed 4 tests

An overview of server-side resources used by سیستم معاملاتی درگاه پرداخت امن تومن برای ووکامرس
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0641.38 ▲3.69
Dashboard /wp-admin3.37 ▲0.0245.85 ▼16.80
Posts /wp-admin/edit.php3.42 ▲0.0647.51 ▼3.28
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.33 ▼21.24
Media Library /wp-admin/upload.php3.29 ▲0.0634.95 ▲1.89

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
tomanescrowservice_do_activation_redirect
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

سیستم معاملاتی درگاه پرداخت امن تومن برای ووکامرس: 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 ▲7913.28 ▼1.311.89 ▲0.3044.25 ▲4.86
Dashboard /wp-admin2,206 ▲185.85 ▲1.02106.96 ▲3.7239.96 ▼3.53
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0438.76 ▼2.0635.14 ▼0.75
Add New Post /wp-admin/post-new.php1,547 ▲2823.30 ▼0.05650.23 ▲12.2647.47 ▼4.22
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0193.24 ▼12.0240.72 ▼8.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • tomanescrowservice_do_activation_redirect

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wordpress, gateway, toman, payment, tomanpay...

tomanpay-escrow-service-payment-method-for-woocommerce/toman-escrow-service.php 85% from 13 tests

The main file in "سیستم معاملاتی درگاه پرداخت امن تومن برای ووکامرس" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tomanpay-escrow-service-payment-method-for-woocommerce.php" instead of "toman-escrow-service.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected360 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21715280
PO File1272880

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png4.21KB1.57KB▼ 62.60%