62% russian-marketplaces-for-woocommerce

Code Review | Russian marketplaces for WooCommerce

WordPress plugin Russian marketplaces for WooCommerce scored62%from 54 tests.

About plugin

  • Plugin page: russian-marketpla...
  • Plugin version: 0.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Jun 30, 2023
  • Latest release: Dec 1, 2023
  • Number of updates: 4
  • Update frequency: every 40.5 days
  • Top authors: wplagency (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /557 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Russian marketplaces for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2136.70 ▼4.58
Dashboard /wp-admin3.52 ▲0.1749.85 ▼12.76
Posts /wp-admin/edit.php3.45 ▲0.0935.02 ▼10.31
Add New Post /wp-admin/post-new.php5.65 ▼0.2472.66 ▼24.23
Media Library /wp-admin/upload.php3.39 ▲0.1630.18 ▼2.45
/wp-admin/admin.php?page=3.2725.09

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Russian marketplaces for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4814.36 ▲0.091.75 ▼0.0139.46 ▼4.47
Dashboard /wp-admin2,203 ▲255.63 ▼0.1093.53 ▼16.3842.01 ▼1.27
Posts /wp-admin/edit.php2,108 ▲291.99 ▲0.0140.67 ▲5.5437.22 ▲3.77
Add New Post /wp-admin/post-new.php1,533 ▲723.50 ▼0.01587.76 ▼49.5449.52 ▲6.94
Media Library /wp-admin/upload.php1,399 ▼44.20 ▲0.0296.86 ▲0.4040.40 ▼1.46
/wp-admin/admin.php?page=280.410.083.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-admin/includes/plugin.php+1941
    Undefined offset: 2
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=
    • > Notice in wp-admin/includes/plugin.php+1946
    Undefined offset: 2

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WPlovers\\WooRussianMarketplaces\\Marketplace' not found in wp-content/plugins/russian-marketplaces-for-woocommerce/src/Marketplaces/Wildberries.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPlovers\\WooRussianMarketplaces\\plugin_basename() in wp-content/plugins/russian-marketplaces-for-woocommerce/woo-russian-marketplaces.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=
    • > Network (severe)
    wp-admin/admin.php?page= - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

russian-marketplaces-for-woocommerce/woo-russian-marketplaces.php 92% from 13 tests

"Russian marketplaces for WooCommerce" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("russian-marketplaces-for-woocommerce.php" instead of "woo-russian-marketplaces.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,524 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP192566351,442
CSS10177
JSON1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.42
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods75
▷ Static methods3040.00%
▷ Public methods7093.33%
▷ Protected methods00.00%
▷ Private methods56.67%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants11
▷ Global constants654.55%
▷ Class constants545.45%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin