78% storegrowth-sales-booster

Code Review | StoreGrowth - Sales Booster For WooCommerce | Live Sales Notifications, Upsell Bump, Quick Cart, Direct Checkout, Stock Countdown and more

WordPress plugin StoreGrowth - Sales Booster For WooCommerce | Live Sales Notifications, Upsell Bump, Quick Cart, Direct Checkout, Stock Countdown and more scored78%from 54 tests.

About plugin

  • Plugin page: storegrowth-sales...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 9
  • Update frequency: every 20.0 days
  • Top authors: invizo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /214 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 successfully, without throwing any errors or notices

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

Server-side resources used by StoreGrowth - Sales Booster For WooCommerce | Live Sales Notifications, Upsell Bump, Quick Cart, Direct Checkout, Stock Countdown and more
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.47 ▼8.17
Dashboard /wp-admin3.32 ▲0.0148.02 ▼2.17
Posts /wp-admin/edit.php3.37 ▲0.0148.99 ▲0.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.86 ▼2.65
Media Library /wp-admin/upload.php3.24 ▲0.0134.86 ▼0.37

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

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

Browser metrics Passed 4 tests

StoreGrowth - Sales Booster For WooCommerce | Live Sales Notifications, Upsell Bump, Quick Cart, Direct Checkout, Stock Countdown and more: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.34 ▼0.401.69 ▼0.0639.51 ▼5.96
Dashboard /wp-admin2,202 ▲225.58 ▼0.0998.17 ▲13.4342.16 ▼0.99
Posts /wp-admin/edit.php2,107 ▲41.95 ▼0.0739.80 ▼0.1836.39 ▼1.68
Add New Post /wp-admin/post-new.php1,533 ▲723.22 ▲0.04618.78 ▲16.7260.71 ▲9.82
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0393.15 ▼1.8743.21 ▲2.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/storegrowth-sales-booster/includes/modules/sales-pop/templates/product-selection.php
  • 53× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/storegrowth-sales-booster/includes/modules/sales-pop/templates/popup-style.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_ID() on null in wp-content/plugins/storegrowth-sales-booster/includes/modules/direct-checkout/templates/add-cart-with-buy-now.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/storegrowth-sales-booster/includes/modules/sales-pop/templates/popup-style.php on line 13
    • > PHP Notice
      Undefined variable: product in wp-content/plugins/storegrowth-sales-booster/includes/modules/stock-bar/templates/simple-stock-status.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/storegrowth-sales-booster/includes/modules/sales-pop/templates/popup-style.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/storegrowth-sales-booster/includes/modules/upsell-order-bump/templates/bump-product-front-view.php:10
    • > PHP Notice
      Undefined variable: popup_properties in wp-content/plugins/storegrowth-sales-booster/includes/modules/sales-pop/templates/popup-style.php on line 18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/storegrowth-sales-booster/includes/modules/sales-pop/templates/popup-style.php on line 25
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/storegrowth-sales-booster/includes/modules/sales-pop/templates/popup-style.php on line 30
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/storegrowth-sales-booster/includes/modules/sales-pop/templates/popup-style.php on line 38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

storegrowth-sales-booster/storegrowth-sales-booster.php Passed 13 tests

The main file in "StoreGrowth - Sales Booster For WooCommerce | Live Sales Notifications, Upsell Bump, Quick Cart, Direct Checkout, Stock Countdown and more" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
95 characters long description:
The ultimate plugin for WooCommerce store to enhance customer experience and maximize revenue.

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
No dangerous file extensions were detected26,040 lines of code in 363 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1841,28142314,136
PHP791,0412,2314,670
Sass2796753,212
SVG76272,120
CSS21331851,878
XML19424

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.40
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces15
Interfaces1
Traits1
Classes40
▷ Abstract classes00.00%
▷ Concrete classes40100.00%
▷ Final classes00.00%
Methods269
▷ Static methods20.74%
▷ Public methods20576.21%
▷ Protected methods41.49%
▷ Private methods6022.30%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants11
▷ Global constants981.82%
▷ Class constants218.18%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.15MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/modules/countdown-timer/assets/images/sales-countdown-meta.png34.55KB34.61KB0.00%
includes/modules/stock-bar/assets/build/images/stock-bar-instruction.a0c4b12b.png21.68KB23.79KB0.00%
includes/modules/sales-pop/assets/images/sale_product.png1.22KB0.73KB▼ 40.21%
includes/modules/fly-cart/assets/images/trash-active.png1.12KB0.37KB▼ 66.87%
includes/modules/countdown-timer/assets/build/images/sales-countdown-meta.30b3f82b.png34.55KB34.61KB0.00%