83% setary

Code Review | Setary — Bulk Edit WooCommerce Products

WordPress plugin Setary — Bulk Edit WooCommerce Products scored83%from 54 tests.

About plugin

  • Plugin page: setary
  • Plugin version: 1.10.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 6, 2022
  • Latest release: Nov 30, 2023
  • Number of updates: 25
  • Update frequency: every 19.3 days
  • Top authors: setaryapp (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /2,954 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Setary — Bulk Edit WooCommerce Products
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.01 ▼6.17
Dashboard /wp-admin3.34 ▲0.0347.25 ▼2.49
Posts /wp-admin/edit.php3.39 ▲0.0351.71 ▲4.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.80 ▼6.48
Media Library /wp-admin/upload.php3.26 ▲0.0333.56 ▼3.62
Connect to Setary /wp-admin/index.php?page=setary-welcome3.2833.71

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

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

Browser metrics Passed 4 tests

Setary — Bulk Edit WooCommerce Products: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.32 ▲0.071.81 ▲0.0136.07 ▼7.23
Dashboard /wp-admin2,195 ▲185.63 ▲0.1193.15 ▲3.1843.13 ▲5.75
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.1038.92 ▲1.5534.64 ▼2.50
Add New Post /wp-admin/post-new.php1,526 ▼123.01 ▼0.13612.74 ▼30.2950.58 ▼0.07
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0295.91 ▼3.3241.98 ▲0.74
Connect to Setary /wp-admin/index.php?page=setary-welcome1,1181.9826.2971.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WC_REST_Products_Controller' not found in wp-content/plugins/setary/inc/class-upload-image.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'WC_REST_Controller' not found in wp-content/plugins/setary/inc/class-save-by-field.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Attachments_Controller' not found in wp-content/plugins/setary/inc/class-media-list.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Setary\\add_filter() in wp-content/plugins/setary/inc/class-settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Setary\\add_action() in wp-content/plugins/setary/inc/class-mu.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Setary\\is_admin() in wp-content/plugins/setary/inc/class-welcome.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Product_Data_Store_CPT' not found in wp-content/plugins/setary/inc/class-meta-attributes.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WC_REST_Products_Controller' not found in wp-content/plugins/setary/inc/class-products-with-variations.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Setary\\add_action() in wp-content/plugins/setary/inc/bootstrap.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WC_REST_Controller' not found in wp-content/plugins/setary/inc/class-info.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in setary/assets to your readme.txt
You can take inspiration from this readme.txt

setary/setary.php 85% from 13 tests

Analyzing the main PHP file in "Setary — Bulk Edit WooCommerce Products" version 1.10.2
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Requires at least: Required version does not match the one declared in readme.txt ("5.7" instead of "6.0.0")

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
Everything looks great! No dangerous files found in this plugin2,324 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP185267902,095
Markdown1510131
SVG90063
XML17429
JSON1006

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity16.94
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods79
▷ Static methods33.80%
▷ Public methods6886.08%
▷ Protected methods1113.92%
▷ Private methods00.00%
Functions9
▷ Named functions666.67%
▷ Anonymous functions333.33%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
1 PNG file occupies 1.28MB with 0.72MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/setary-app-preview.png1,310.28KB568.50KB▼ 56.61%