72% woolentor-addons

Code Review | ShopLentor – WooCommerce Builder for Elementor & Gutenberg +10 Modules – All in One Solution (formerly WooLentor)

WordPress plugin ShopLentor – WooCommerce Builder for Elementor & Gutenberg +10 Modules – All in One Solution (formerly WooLentor) scored72%from 54 tests.

About plugin

  • Plugin page: woolentor-addons
  • Plugin version: 2.7.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Aug 9, 2018
  • Latest release: Nov 27, 2023
  • Number of updates: 215
  • Update frequency: every 9.0 days
  • Top authors: devitemsllc (100%)

Code review

54 tests

User reviews

179 reviews

Install metrics

100,000+ active /2,967,695 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.87MB] [CPU: ▼2.63ms] Passed 4 tests

Analyzing server-side resources used by ShopLentor – WooCommerce Builder for Elementor & Gutenberg +10 Modules – All in One Solution (formerly WooLentor)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.18 ▲1.7141.89 ▼2.19
Dashboard /wp-admin3.91 ▲0.5751.18 ▼17.52
Posts /wp-admin/edit.php3.97 ▲0.6151.91 ▲4.45
Add New Post /wp-admin/post-new.php8.21 ▲2.32497.46 ▲405.89
Media Library /wp-admin/upload.php3.84 ▲0.6138.82 ▲4.74
Template Builder /wp-admin/edit.php?post_type=woolentor-template3.7331.58

Server storage [IO: ▲8.48MB] [DB: ▲0.04MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 399 new files
Database: no new tables, 9 new options
New WordPress options
recovery_mode_email_last_sent
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
woolentor_do_activation_redirect
widget_recent-posts
widget_theysaidso_widget
woolentor_plugin_permalinks_flushed

Browser metrics Passed 4 tests

Checking browser requirements for ShopLentor – WooCommerce Builder for Elementor & Gutenberg +10 Modules – All in One Solution (formerly WooLentor)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9314.33 ▲0.052.15 ▲0.3537.55 ▼5.49
Dashboard /wp-admin2,217 ▲375.65 ▲0.0791.28 ▼6.4041.05 ▼4.90
Posts /wp-admin/edit.php2,120 ▲202.12 ▲0.1041.09 ▲4.9435.49 ▼0.63
Add New Post /wp-admin/post-new.php6,309 ▲4,78320.66 ▼2.51952.63 ▲277.4663.86 ▲14.88
Media Library /wp-admin/upload.php1,422 ▲224.27 ▲0.0898.96 ▲2.3443.68 ▲1.16
Template Builder /wp-admin/edit.php?post_type=woolentor-template550.410.128.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • woolentor_plugin_permalinks_flushed
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • woolentor_do_activation_redirect
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=woolentor-template
    • > Error in wp-content/plugins/woolentor-addons/includes/admin/include/class.template-manager.php+443
    Uncaught Error: Call to undefined function woolentor_is_elementor_editor() in wp-content/plugins/woolentor-addons/includes/admin/include/class.template-manager.php:443
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): Woolentor_Template_Manager->enqueue_scripts()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin-header.php(118): do_action()
    #4 wp-admin/edit.php(407): require_once('/var/www/wordpr...')
    #5 {main}
    thrown

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
Almost there! Just fix the following items
  • 18× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woolentor-addons/includes/admin/include/template-library/templates_list.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woolentor-addons/includes/modules/wishlist/includes/templates/wishsuite-count.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woolentor-addons/includes/modules/sales-notification/class.sale_notification_fake.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/woolentor-addons/includes/modules/compare/includes/templates/evercompare-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woolentor-addons/classes/class.default_data.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woolentor-addons/woolentor-blocks/woolentor-blocks.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woolentor-addons/includes/modules/compare/includes/templates/evercompare-button-add.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woolentor-addons/includes/modules/ajax-search/widget-product-search-ajax.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woolentor-addons/includes/modules/rename-label/rename_label.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woolentor-addons/includes/modules/wishlist/includes/templates/wishsuite-table.php:46

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=woolentor-template
    • > Network (severe)
    wp-admin/edit.php?post_type=woolentor-template - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 90% 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: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

woolentor-addons/woolentor_addons_elementor.php 85% from 13 tests

The main PHP script in "ShopLentor – WooCommerce Builder for Elementor & Gutenberg +10 Modules – All in One Solution (formerly WooLentor)" version 2.7.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woolentor-addons.php" instead of "woolentor_addons_elementor.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected90,219 lines of code in 357 files:
LanguageFilesBlank linesComment linesLines of code
PHP2328,9894,93250,458
CSS412,37043325,578
JSON317006,097
JavaScript421,0968934,956
SVG10013,050
XML10080

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 136)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity24.69
▷ Minimum class complexity1.00
▷ Maximum class complexity267.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity136.00
Code structure
Namespaces19
Interfaces0
Traits0
Classes147
▷ Abstract classes00.00%
▷ Concrete classes147100.00%
▷ Final classes53.40%
Methods1,243
▷ Static methods13811.10%
▷ Public methods1,07286.24%
▷ Protected methods1229.81%
▷ Private methods493.94%
Functions160
▷ Named functions11773.12%
▷ Anonymous functions4326.88%
Constants51
▷ Global constants3364.71%
▷ Class constants1835.29%
▷ Public constants18100.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
21 PNG files occupy 0.29MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/assets/images/logo.png3.20KB1.69KB▼ 47.09%
includes/admin/assets/images/extension/whols-pro.png15.30KB7.40KB▼ 51.65%
includes/admin/assets/images/icons/rating.png3.91KB1.85KB▼ 52.56%
includes/admin/assets/images/helping-screenshot.png75.08KB29.48KB▼ 60.73%
includes/admin/assets/images/icons/caret-down.png0.19KB0.15KB▼ 20.21%