84% woo-for-elementor

Code Review | WooCommerce For Elementor

WordPress plugin WooCommerce For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: woo-for-elementor
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 30, 2018
  • Latest release: Dec 3, 2018
  • Number of updates: 24
  • Update frequency: every 7.8 days
  • Top authors: namncn (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /8,852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by WooCommerce For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.61 ▲2.67
Dashboard /wp-admin3.31 ▼0.0446.15 ▼14.20
Posts /wp-admin/edit.php3.36 ▲0.0047.75 ▼1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.76 ▼3.73
Media Library /wp-admin/upload.php3.23 ▲0.0036.49 ▲0.10

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

WooCommerce For Elementor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.23 ▼0.211.64 ▼0.1236.92 ▼3.28
Dashboard /wp-admin2,192 ▲115.51 ▼0.2180.55 ▼20.1636.67 ▼2.42
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0633.57 ▼1.2934.66 ▼2.24
Add New Post /wp-admin/post-new.php1,526 ▼923.18 ▲4.85645.72 ▼63.9852.25 ▼20.66
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0799.38 ▲1.9641.88 ▼2.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/woo-for-elementor/includes/base/base_widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: drag and drop, page builder, landing page, slider, editor...

woo-for-elementor/woocommerce-for-elementor.php 85% from 13 tests

The main PHP script in "WooCommerce For Elementor" version 1.0.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-for-elementor.php" instead of "woocommerce-for-elementor.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,151 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP143234812,058
Sass10053
JavaScript418226
CSS10013
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity9.71
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes116.67%
Methods54
▷ Static methods47.41%
▷ Public methods4685.19%
▷ Protected methods611.11%
▷ Private methods23.70%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin