78% prochains

Code Review | ProChains - Best Dropship and Affiliate Tools for WooCommerce

WordPress plugin ProChains - Best Dropship and Affiliate Tools for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: prochains
  • Plugin version: 2.6.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: May 21, 2022
  • Latest release: Sep 28, 2022
  • Number of updates: 44
  • Update frequency: every 3.0 days
  • Top authors: artarejamedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,879 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.00MB] [CPU: ▼6.51ms] Passed 4 tests

An overview of server-side resources used by ProChains - Best Dropship and Affiliate Tools for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.82 ▼6.09
Dashboard /wp-admin3.31 ▲0.0044.98 ▼10.52
Posts /wp-admin/edit.php3.36 ▲0.0046.89 ▲1.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.04 ▼11.11
Media Library /wp-admin/upload.php3.23 ▲0.0036.32 ▲3.62
ProChains /wp-admin/admin.php?page=pch-welcome3.0023.01
Fetching Bulk Products /wp-admin/admin.php?page=pch-crawler3.0022.61

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

ProChains - Best Dropship and Affiliate Tools for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.32 ▼0.041.64 ▼0.3041.65 ▼2.91
Dashboard /wp-admin2,195 ▲145.61 ▼0.1079.07 ▼27.0238.61 ▼3.38
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0334.42 ▼5.3134.68 ▼3.26
Add New Post /wp-admin/post-new.php1,541 ▲618.34 ▲0.20642.95 ▲26.2753.56 ▼16.39
Media Library /wp-admin/upload.php1,400 ▲34.32 ▲0.13103.41 ▲0.8943.68 ▼0.46
ProChains /wp-admin/admin.php?page=pch-welcome280.420.063.97
Fetching Bulk Products /wp-admin/admin.php?page=pch-crawler280.420.073.72

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/prochains/prochains.php:32

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=pch-welcome
    • > Network (severe)
    wp-admin/admin.php?page=pch-welcome - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=pch-crawler
    • > Network (severe)
    wp-admin/admin.php?page=pch-crawler - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

prochains/prochains.php Passed 13 tests

This is the main PHP file of "ProChains - Best Dropship and Affiliate Tools for WooCommerce" version 2.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
An easy way to connect products from multiple marketplaces to your WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,386 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP133671841,689
JavaScript2186210624
CSS121173

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.75
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods9
▷ Static methods555.56%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.45MB with 0.30MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/banner-prochains.png457.71KB148.11KB▼ 67.64%