72% woo-coupons-bulk-editor

Code Review | WooCommerce Bulk Edit Coupons - WP Sheet Editor

WordPress plugin WooCommerce Bulk Edit Coupons - WP Sheet Editor scored72%from 54 tests.

About plugin

  • Plugin page: woo-coupons-bulk-...
  • Plugin version: 1.3.44
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Nov 1, 2023
  • Number of updates: 126
  • Update frequency: every 14.5 days
  • Top authors: JoseVega (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active /25,219 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲6.82MB] [CPU: ▲42.05ms] 50% from 4 tests

A check of server-side resources used by WooCommerce Bulk Edit Coupons - WP Sheet Editor
Please have a look at the following items
  • RAM: The total memory usage must be kept under 10MB (currently 10.14MB on /wp-admin/admin.php?page=vg_sheet_editor_extensions)
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 6.82MB on /wp-admin/admin.php?page=vg_sheet_editor_extensions)
PageMemory (MB)CPU Time (ms)
Home /10.10 ▲6.6378.41 ▲37.60
Dashboard /wp-admin10.21 ▲6.8698.78 ▲34.54
Posts /wp-admin/edit.php10.32 ▲6.96103.59 ▲47.55
Add New Post /wp-admin/post-new.php12.79 ▲6.90149.71 ▲48.51
Media Library /wp-admin/upload.php10.13 ▲6.9093.03 ▲58.69
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius10.3881.28
WP Sheet Editor /wp-admin/admin.php?page=vg_sheet_editor_setup10.1687.63
Sheet Editor /wp-admin/admin.php?page=vgse-bulk-edit-shop_coupon10.6991.02
Settings /wp-admin/admin.php?page=vg_sheet_editor10.2682.12
Extensions /wp-admin/admin.php?page=vg_sheet_editor_extensions10.1489.37

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 376 new files
Database: no new tables, 14 new options
New WordPress options
fs_accounts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
vgse_columns_visibility_migrated
fs_active_plugins
vgse_columns_visibility
vg_sheet_editor
wpsewcc_welcome_redirect
...

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Bulk Edit Coupons - WP Sheet Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲21514.40 ▲0.051.71 ▼0.2230.30 ▼13.67
Dashboard /wp-admin2,380 ▲2035.60 ▼0.0991.28 ▼1.9579.13 ▲41.37
Posts /wp-admin/edit.php2,191 ▲881.97 ▼0.0640.30 ▼2.3838.00 ▲1.19
Add New Post /wp-admin/post-new.php1,747 ▲21921.25 ▼1.74713.36 ▲15.8745.33 ▼6.60
Media Library /wp-admin/upload.php1,481 ▲814.18 ▲0.0396.22 ▼8.9773.67 ▲26.70
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1451.6926.9931.14
WP Sheet Editor /wp-admin/admin.php?page=vg_sheet_editor_setup2,1016.02155.9485.22
Sheet Editor /wp-admin/admin.php?page=vgse-bulk-edit-shop_coupon8053.91114.1421.29
Settings /wp-admin/admin.php?page=vg_sheet_editor2,1815.5668.0664.65
Extensions /wp-admin/admin.php?page=vg_sheet_editor_extensions1,9695.6868.2380.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/woo-coupons-bulk-editor/vendor/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 12 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • fs_debug_mode
    • wpsewcc_welcome_redirect
    • widget_theysaidso_widget
    • fs_accounts
    • fs_active_plugins
    • vg_sheet_editor
    • vgse_columns_visibility
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/woo-coupons-bulk-editor/vendor/vg-plugin-sdk/views/page-template.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function VGSE() in wp-content/plugins/woo-coupons-bulk-editor/modules/wp-sheet-editor/views/whats-new/2.6.0.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-coupons-bulk-editor/modules/wp-sheet-editor/inc/integrations/visual-composer.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-coupons-bulk-editor/vendor/vg-plugin-sdk/samples/email-optin-form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-coupons-bulk-editor/vendor/vg-plugin-sdk/views/settings-form.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-coupons-bulk-editor/modules/wp-sheet-editor/inc/integrations/elementor.php:107
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woo-coupons-bulk-editor/vendor/vg-plugin-sdk/views/settings-page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
5 plugin tags: woocommerce, coupons, spreadsheet, bulk edit, wp sheet editor

woo-coupons-bulk-editor/coupons.php 77% from 13 tests

Analyzing the main PHP file in "WooCommerce Bulk Edit Coupons - WP Sheet Editor" version 1.3.44
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-coupons-bulk-editor.php" instead of "coupons.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin178,468 lines of code in 258 files:
LanguageFilesBlank linesComment linesLines of code
PO File3518,84927,59263,466
JavaScript1215,52818,55554,363
PHP18610,53418,85949,745
CSS189173397,726
SVG4002,691
Markdown12110429
JSON10032
XML13016

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity74.41
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes93
▷ Abstract classes33.23%
▷ Concrete classes9096.77%
▷ Final classes00.00%
Methods1,989
▷ Static methods24012.07%
▷ Public methods1,55978.38%
▷ Protected methods170.85%
▷ Private methods41320.76%
Functions131
▷ Named functions12796.95%
▷ Anonymous functions43.05%
Constants154
▷ Global constants10769.48%
▷ Class constants4730.52%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/wp-sheet-editor/assets/vendor/images/input-unchecked.png0.15KB0.15KB0.00%
vendor/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
modules/wp-sheet-editor/assets/imgs/icon-20x20.png45.33KB0.51KB▼ 98.88%
modules/wp-sheet-editor/assets/vendor/images/input-checked.png0.31KB0.32KB0.00%
assets/imgs/logo-248x102.png14.09KB5.48KB▼ 61.08%