73% mixplat-gateway-for-woocommerce

Code Review | Прием платежей через Миксплат для WooCommerce

WordPress plugin Прием платежей через Миксплат для WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: mixplat-gateway-f...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 27, 2023
  • Latest release: Aug 8, 2023
  • Number of updates: 6
  • Update frequency: every 17.5 days
  • Top authors: andreikovalevskii (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /156 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.00ms] Passed 4 tests

Server-side resources used by Прием платежей через Миксплат для WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.49 ▼1.07
Dashboard /wp-admin3.34 ▲0.0447.68 ▼2.75
Posts /wp-admin/edit.php3.39 ▲0.0346.90 ▼0.75
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.20 ▼15.41
Media Library /wp-admin/upload.php3.26 ▲0.0335.04 ▲1.70

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wp_mixplatpayment
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Прием платежей через Миксплат для WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.101.85 ▲0.0542.17 ▼0.05
Dashboard /wp-admin2,203 ▲255.81 ▲0.8396.01 ▼7.1637.77 ▼4.37
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0235.02 ▼5.3432.75 ▼1.50
Add New Post /wp-admin/post-new.php1,542 ▲2318.41 ▼4.65609.86 ▲6.0951.59 ▼14.47
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.0096.16 ▼3.1942.16 ▼2.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_mixplatpayment
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/mixplat-gateway-for-woocommerce/includes/mixplatpayment_transactions.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mixplat-gateway-for-woocommerce/wc_mixplat.php:27

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

Optimizations

Plugin configuration 86% 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
These attributes need to be fixed:
  • Contributors: Contributors not specified
The official readme.txt is a good inspiration

mixplat-gateway-for-woocommerce/wc_mixplat.php 77% from 13 tests

The primary PHP file in "Прием платежей через Миксплат для WooCommerce" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 243 characters long)
  • 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
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mixplat-gateway-for-woocommerce.php" instead of "wc_mixplat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,213 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4110112920
PO File1105126229
JavaScript16045
SVG10016
Markdown1103

PHP code Passed 2 tests

Analyzing 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.34
Average class complexity18.60
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods1022.73%
▷ Public methods3170.45%
▷ Protected methods00.00%
▷ Private methods1329.55%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected