10% actionwear-products-sync

Code Review | Actionwear products sync

WordPress plugin Actionwear products sync scored10%from 54 tests.

About plugin

  • Plugin page: actionwear-produc...
  • Plugin version: 2.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 16
  • Update frequency: every 16.8 days
  • Top authors: marcoingraiti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,194 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/actionwear-products-sync/includes/classes/product/class-action-wear-product.php+21
    require_once(wp-content/plugins/actionwear-products-sync/includes/classes/product/../../../../woocommerce/includes/admin/wc-admin-functions.php): failed to open stream: No such file or directory

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

This is a short check of server-side resources used by Actionwear products sync
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.82 ▼4.83
Dashboard /wp-admin3.31 ▼0.0447.70 ▼14.54
Posts /wp-admin/edit.php3.36 ▲0.0047.05 ▼0.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.82 ▲3.65
Media Library /wp-admin/upload.php3.23 ▲0.0034.15 ▲0.43

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 112 new files
Database: 9 new tables, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Actionwear products sync: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.61 ▲0.401.67 ▲0.0038.40 ▼5.79
Dashboard /wp-admin2,195 ▲145.66 ▼0.0794.54 ▼13.2641.55 ▼1.43
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0338.84 ▲2.8734.65 ▲2.12
Add New Post /wp-admin/post-new.php1,526 ▼022.99 ▼0.21604.06 ▼96.1253.48 ▼0.43
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0293.70 ▼7.2939.97 ▼1.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 9 tables in the database
    • wp_actionwear_categories_associations
    • wp_actionwear_brands
    • wp_actionwear_images
    • wp_actionwear_products
    • wp_actionwear_recharges_details
    • wp_actionwear_categories_product
    • wp_actionwear_recharges
    • wp_actionwear_categories
    • wp_actionwear_log
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/actionwear-products-sync/composer-setup.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'AC_SYNC\\Includes\\Classes\\Async\\Action_Wear_Background_Process' not found in wp-content/plugins/actionwear-products-sync/includes/classes/async/class-action-wear-differential-product-task.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'AC_SYNC\\Includes\\Classes\\Async\\Action_Wear_Async_Request' not found in wp-content/plugins/actionwear-products-sync/includes/classes/async/class-action-wear-background-process.php:17
    • > PHP Notice
      Undefined variable: argv in wp-content/plugins/actionwear-products-sync/composer-setup.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'AC_SYNC\\Includes\\Classes\\Async\\Action_Wear_Background_Process' not found in wp-content/plugins/actionwear-products-sync/includes/classes/async/class-action-wear-product-import.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: actionwear

actionwear-products-sync/actionwear.php 77% from 13 tests

"Actionwear products sync" version 2.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("actionwear-products-sync.php" instead of "actionwear.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin6,847 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.36
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
▷ Abstract classes47.55%
▷ Concrete classes4992.45%
▷ Final classes00.00%
▷ Static methods12431.16%
▷ Public methods34787.19%
▷ Protected methods4812.06%
▷ Private methods30.75%
▷ Named functions1933.93%
▷ Anonymous functions3766.07%
▷ Global constants48.51%
▷ Class constants4391.49%
▷ Public constants43100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
react-code/build/logo192.png2.81KB2.41KB▼ 14.28%
react-code/build/logo512.png3.59KB2.81KB▼ 21.68%
react-code/build/logo-mini.png2.02KB1.40KB▼ 30.43%