73% woorousell

Code Review | Product Carousel For WooCommerce - WoorouSell

WordPress plugin Product Carousel For WooCommerce - WoorouSell scored73%from 54 tests.

About plugin

  • Plugin page: woorousell
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 3, 2018
  • Latest release: Jul 5, 2023
  • Number of updates: 18
  • Update frequency: every 94.8 days
  • Top authors: mojofywp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /7,979 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲5.08MB] [CPU: ▲27.38ms] 75% from 4 tests

An overview of server-side resources used by Product Carousel For WooCommerce - WoorouSell
The following require your attention
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.08MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.88 ▲5.4174.00 ▲32.06
Dashboard /wp-admin8.90 ▲5.5588.11 ▲26.11
Posts /wp-admin/edit.php8.90 ▲5.5482.15 ▲32.68
Add New Post /wp-admin/post-new.php9.69 ▲3.79114.18 ▲18.66
Media Library /wp-admin/upload.php8.90 ▲5.6774.81 ▲38.27
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9067.26

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 239 new files
Database: no new tables, 9 new options
New WordPress options
fs_debug_mode
fs_accounts
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
fs_active_plugins

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product Carousel For WooCommerce - WoorouSell
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,175 ▲41414.76 ▲0.401.63 ▼0.0335.39 ▼9.08
Dashboard /wp-admin2,577 ▲3976.45 ▲0.87119.71 ▲16.9142.73 ▼0.74
Posts /wp-admin/edit.php2,481 ▲3813.26 ▲1.3149.70 ▲13.7531.45 ▼2.76
Add New Post /wp-admin/post-new.php1,627 ▲9924.33 ▲1.27586.07 ▼85.5731.63 ▼17.56
Media Library /wp-admin/upload.php1,750 ▲3504.35 ▲0.2197.91 ▼13.0451.42 ▲4.32
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,4453.3446.5626.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/woorousell/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-comments
    • fs_accounts
    • fs_active_plugins
    • theysaidso_admin_options
    • fs_debug_mode
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wrsl() in wp-content/plugins/woorousell/builder/builder/controller.php:67
    • > PHP Warning
      require_once(WRSL_PATH/freemius/start.php): failed to open stream: No such file or directory in wp-content/plugins/woorousell/includes/freemius.php on line 21
    • > PHP Warning
      Use of undefined constant WRSL_PATH - assumed 'WRSL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woorousell/includes/freemius.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wrsl() in wp-content/plugins/woorousell/includes/help/free_version.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woorousell/includes/help.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woorousell/builder/settings-page/views/form.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wrsl() in wp-content/plugins/woorousell/builder/settings-page/controller.php:68
    • > PHP Fatal error
      require_once(): Failed opening required 'WRSL_PATH/freemius/start.php' (include_path='.:/usr/share/php') in wp-content/plugins/woorousell/includes/freemius.php on line 21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: woocommerce, ecommerce, autoplay, shortcode, woocommerce slider...

woorousell/functions.php 85% from 13 tests

The principal PHP file in "Product Carousel For WooCommerce - WoorouSell" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woorousell.php" instead of "functions.php")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/langCopyright 2012 - 2019 Smashing Advantage Enterprise.")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin46,855 lines of code in 173 files:
LanguageFilesBlank linesComment linesLines of code
PHP1378,59818,23836,376
CSS21140524,168
JavaScript127688123,325
SVG1002,671
PO File1137236293
JSON10022

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity82.17
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes58
▷ Abstract classes23.45%
▷ Concrete classes5696.55%
▷ Final classes00.00%
Methods1,341
▷ Static methods20014.91%
▷ Public methods95270.99%
▷ Protected methods171.27%
▷ Private methods37227.74%
Functions115
▷ Named functions115100.00%
▷ Anonymous functions00.00%
Constants150
▷ Global constants10368.67%
▷ Class constants4731.33%
▷ Public constants47100.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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/star.png1.14KB1.47KB0.00%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/img/logo.png12.80KB4.82KB▼ 62.37%