78% excel-like-price-change-for-woocommerce-and-wp-e-commerce-light

Code Review | Spreadsheet Price Changer for WooCommerce and WP E-commerce - Light

WordPress plugin Spreadsheet Price Changer for WooCommerce and WP E-commerce - Light scored78%from 54 tests.

About plugin

  • Plugin page: excel-like-price-...
  • Plugin version: 2.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2014
  • Latest release: Oct 18, 2023
  • Number of updates: 80
  • Update frequency: every 42.8 days
  • Top authors: holest (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /44,031 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.74ms] Passed 4 tests

Server-side resources used by Spreadsheet Price Changer for WooCommerce and WP E-commerce - Light
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1536.16 ▼1.74
Dashboard /wp-admin3.47 ▲0.1643.96 ▼1.57
Posts /wp-admin/edit.php3.58 ▲0.2243.66 ▼5.17
Add New Post /wp-admin/post-new.php6.05 ▲0.1681.06 ▼14.48
Media Library /wp-admin/upload.php3.39 ▲0.1635.84 ▲1.23
Settings /wp-admin/admin.php?page=excellikepricechangeforwoocommerceandwpecommercelight-settings3.3834.61
Excel-Like Price Manager /wp-admin/admin.php?page=excellikepricechangeforwoocommerceandwpecommercelight-root3.3632.80

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Spreadsheet Price Changer for WooCommerce and WP E-commerce - Light
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8014.28 ▼0.311.95 ▲0.4837.82 ▼2.15
Dashboard /wp-admin2,225 ▲445.50 ▼0.1584.31 ▼14.5939.41 ▼5.19
Posts /wp-admin/edit.php2,127 ▲271.99 ▼0.0532.78 ▼2.3533.46 ▼8.75
Add New Post /wp-admin/post-new.php1,548 ▲2223.60 ▲0.74661.86 ▲5.1253.15 ▼4.40
Media Library /wp-admin/upload.php1,430 ▲304.17 ▲0.0793.53 ▼22.6243.79 ▼4.12
Settings /wp-admin/admin.php?page=excellikepricechangeforwoocommerceandwpecommercelight-settings1,0572.0425.3432.71
Excel-Like Price Manager /wp-admin/admin.php?page=excellikepricechangeforwoocommerceandwpecommercelight-root7851.9922.2520.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: elpm_shop_com in wp-content/plugins/excel-like-price-change-for-woocommerce-and-wp-e-commerce-light/lib/settings_panel.php on line 21
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/excel-like-price-change-for-woocommerce-and-wp-e-commerce-light/lib/settings_panel.php:23
    • > PHP Notice
      Undefined variable: elpm_shop_com in wp-content/plugins/excel-like-price-change-for-woocommerce-and-wp-e-commerce-light/lib/settings_panel.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=excellikepricechangeforwoocommerceandwpecommercelight-settings
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=excellikepricechangeforwoocommerceandwpecommercelight-settings 208:56 Uncaught TypeError: Cannot read properties of undefined (reading 'autocomplete')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: There are too many tags (19 tag instead of maximum 10)
Please take inspiration from this readme.txt

excel-like-price-change-for-woocommerce-and-wp-e-commerce-light/excel-like-price-change-for-woocommerce-and-wp-e-commerce-light.php 92% from 13 tests

The primary PHP file in "Spreadsheet Price Changer for WooCommerce and WP E-commerce - Light" version 2.4.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 870 characters long)

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin14,479 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP72,36016712,071
CSS7280401,296
JavaScript12244961,111
HTML1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity67.83
▷ Minimum class complexity1.00
▷ Maximum class complexity639.00
Average method complexity7.90
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods116
▷ Static methods00.00%
▷ Public methods10489.66%
▷ Protected methods54.31%
▷ Private methods76.03%
Functions66
▷ Named functions6598.48%
▷ Anonymous functions11.52%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/delete.png0.33KB0.25KB▼ 24.63%
assets/manage_products.png58.31KB21.86KB▼ 62.51%
assets/images/redo.png0.61KB0.76KB0.00%
assets/images/htoggle.png0.63KB0.37KB▼ 41.27%
assets/images/right.png1.13KB0.28KB▼ 75.04%