67% platycorp-etsy-syncer

Code Review | Platy Syncer Woocommerce to Etsy

WordPress plugin Platy Syncer Woocommerce to Etsy scored67%from 54 tests.

About plugin

  • Plugin page: platycorp-etsy-sy...
  • Plugin version: 6.1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 11, 2020
  • Latest release: Nov 4, 2023
  • Number of updates: 102
  • Update frequency: every 11.3 days
  • Top authors: inonkp (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

200+ active /15,254 total downloads

Benchmarks

Plugin footprint 65% 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.08MB] [CPU: ▲18.34ms] Passed 4 tests

A check of server-side resources used by Platy Syncer Woocommerce to Etsy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.8072.16 ▲37.00
Dashboard /wp-admin4.08 ▲0.7880.47 ▲31.04
Posts /wp-admin/edit.php4.13 ▲0.7774.07 ▲29.15
Add New Post /wp-admin/post-new.php3.87 ▼2.0267.91 ▼23.83
Media Library /wp-admin/upload.php4.00 ▲0.7772.67 ▲37.78

Server storage [IO: ▲11.11MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 340 new files
Database: 9 new tables, 6 new options
New tables
wp_plty_etsy_templates_meta
wp_plty_etsy_logs
wp_plty_etsy_options
wp_plty_etsy_products_meta
wp_plty_etsy_templates
wp_plty_etsy_connections
wp_plty_etsy_shops
wp_plty_etsy_product_attributes
wp_plty_etsy_products
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Platy Syncer Woocommerce to Etsy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲11913.73 ▼0.988.54 ▲6.5238.31 ▼6.01
Dashboard /wp-admin2,203 ▲265.59 ▼0.0691.70 ▲3.3641.66 ▼6.59
Posts /wp-admin/edit.php2,108 ▲81.97 ▼0.0435.48 ▼0.8430.58 ▼7.45
Add New Post /wp-admin/post-new.php1,534 ▲821.11 ▼2.16693.15 ▲32.4559.61 ▼7.02
Media Library /wp-admin/upload.php1,411 ▲114.20 ▲0.04100.13 ▼8.5044.77 ▼0.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 9 tables in the database
    • wp_plty_etsy_templates
    • wp_plty_etsy_product_attributes
    • wp_plty_etsy_connections
    • wp_plty_etsy_logs
    • wp_plty_etsy_products
    • wp_plty_etsy_templates_meta
    • wp_plty_etsy_shops
    • wp_plty_etsy_options
    • wp_plty_etsy_products_meta
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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 items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/platycorp-etsy-syncer/public/partials/platy-syncer-etsy-public-display.php
    • > /wp-content/plugins/platycorp-etsy-syncer/admin/partials/platy-syncer-etsy-admin-display.php
  • 115× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_help_tip() in wp-content/plugins/platycorp-etsy-syncer/admin/views/platy-syncer-etsy-logo.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'platy\\etsy\\EtsySyncerException' not found in wp-content/plugins/platycorp-etsy-syncer/includes/exceptions/core/class-no-such-item-exception.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'platy\\etsy\\Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/GuzzleHttp/Psr7/Response.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/platycorp-etsy-syncer/admin/rest/attributes/class-product-attributes-api.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'platy\\etsy\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/GuzzleHttp/Psr7/Stream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'platy\\etsy\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/GuzzleHttp/Psr7/FnStream.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'platy\\etsy\\GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/GuzzleHttp/Exception/ConnectException.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'platy\\etsy\\Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/Psr/Http/Client/RequestExceptionInterface.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'platy\\etsy\\GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/GuzzleHttp/BodySummarizer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/platycorp-etsy-syncer/admin/rest/etsy-categories/class-etsy-categories-api.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: sync, syncer, woocommerce, etsy, export...

platycorp-etsy-syncer/platy-syncer-etsy.php 77% from 13 tests

The main PHP file in "Platy Syncer Woocommerce to Etsy" ver. 6.1.9 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("platycorp-etsy-syncer.php" instead of "platy-syncer-etsy.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("3.5.0" instead of "4.0.0")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected23,968 lines of code in 259 files:
LanguageFilesBlank linesComment linesLines of code
PHP2244,3646,77118,650
JSON5305,080
JavaScript204654194
CSS803425
Markdown19018
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.80
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces26
Interfaces27
Traits3
Classes173
▷ Abstract classes10.58%
▷ Concrete classes17299.42%
▷ Final classes3419.77%
Methods1,435
▷ Static methods18813.10%
▷ Public methods1,12078.05%
▷ Protected methods926.41%
▷ Private methods22315.54%
Functions162
▷ Named functions3823.46%
▷ Anonymous functions12476.54%
Constants162
▷ Global constants31.85%
▷ Class constants15998.15%
▷ Public constants14893.08%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.57MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png359.55KB99.84KB▼ 72.23%
assets/images/etsy_logo.png12.79KB6.80KB▼ 46.85%
assets/images/etsy_full_logo.png3.08KB2.42KB▼ 21.63%
assets/screenshot-3.PNG47.23KB20.27KB▼ 57.09%
assets/screenshot-2.PNG25.50KB13.30KB▼ 47.84%