89% wc-tinkoff-secure-deal-payment-gateway

Code Review | Безопасные переводы Тинькофф для WooCommerce

WordPress plugin Безопасные переводы Тинькофф для WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-tinkoff-secure...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2022
  • Latest release: Oct 18, 2022
  • Number of updates: 29
  • Update frequency: every 12.2 days
  • Top authors: antondrob2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,179 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Безопасные переводы Тинькофф для WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.13 ▼5.60
Dashboard /wp-admin3.32 ▲0.0151.70 ▲1.71
Posts /wp-admin/edit.php3.37 ▲0.0149.78 ▼1.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.29 ▼4.40
Media Library /wp-admin/upload.php3.24 ▲0.0136.18 ▼1.44

Server storage [IO: ▲0.04MB] [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, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Безопасные переводы Тинькофф для WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8613.20 ▼1.012.16 ▲0.4443.50 ▲0.53
Dashboard /wp-admin2,225 ▲225.82 ▲0.9199.41 ▼26.2944.43 ▼1.03
Posts /wp-admin/edit.php2,107 ▲42.17 ▲0.1239.90 ▼1.4339.22 ▲1.00
Add New Post /wp-admin/post-new.php1,435 ▼9618.04 ▼5.22570.75 ▼100.0748.26 ▼4.67
Media Library /wp-admin/upload.php1,404 ▲44.16 ▼0.1098.34 ▼18.1747.39 ▼0.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: payment, tinkoff, gateway, woocommerce

wc-tinkoff-secure-deal-payment-gateway/wc-tinkoff-secure-deal-payment-gateway.php 85% from 13 tests

The entry point to "Безопасные переводы Тинькофф для WooCommerce" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 247 characters long)
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 73 characters long)

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
No dangerous file extensions were detected593 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP314098542
JavaScript110151

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.22
Average class complexity18.67
▷ Minimum class complexity3.00
▷ Maximum class complexity45.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods38
▷ Static methods12.63%
▷ Public methods2976.32%
▷ Protected methods00.00%
▷ Private methods923.68%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png5.84KB2.43KB▼ 58.37%