84% unikforce-elementor-woocommerce

Code Review | UnikForce Elementor WooCommerce Builder

WordPress plugin UnikForce Elementor WooCommerce Builder scored84%from 54 tests.

About plugin

  • Plugin page: unikforce-element...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Sep 15, 2021
  • Latest release: Feb 5, 2022
  • Number of updates: 3
  • Update frequency: every 47.7 days
  • Top authors: unikforce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /298 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.48MB] [CPU: ▲6.46ms] Passed 4 tests

An overview of server-side resources used by UnikForce Elementor WooCommerce Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.47 ▲1.0135.43 ▼11.23
Dashboard /wp-admin4.95 ▲1.6462.30 ▲5.85
Posts /wp-admin/edit.php5.00 ▲1.6465.69 ▲11.64
Add New Post /wp-admin/post-new.php7.53 ▲1.64115.82 ▲19.57
Media Library /wp-admin/upload.php4.87 ▲1.6465.79 ▲29.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 9 new options
New WordPress options
_unikforce
unikforce_installed
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
unikforce_version
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for UnikForce Elementor WooCommerce Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,520 ▼24114.69 ▲0.141.54 ▼0.6216.74 ▼27.58
Dashboard /wp-admin2,270 ▲995.64 ▲0.0893.15 ▼11.6344.05 ▼0.48
Posts /wp-admin/edit.php2,176 ▲762.16 ▲0.1441.07 ▲3.1534.31 ▼1.38
Add New Post /wp-admin/post-new.php1,596 ▲7023.23 ▼0.04646.41 ▼38.5665.04 ▲7.10
Media Library /wp-admin/upload.php1,478 ▲844.17 ▼0.07101.74 ▲4.9146.39 ▲0.16

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • _unikforce
    • can_compress_scripts
    • widget_recent-comments
    • unikforce_installed
    • unikforce_version
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/unikforce-elementor-woocommerce/includes/widgets/products-block/view.php on line 20
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/unikforce-elementor-woocommerce/includes/widgets/products-block/view.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unikforce-elementor-woocommerce/includes/woo-data.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/unikforce-elementor-woocommerce/includes/widgets/products-block/view.php:29
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/unikforce-elementor-woocommerce/includes/widgets/products-block/view.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/unikforce-elementor-woocommerce/includes/widgets/products-block/view.php on line 6
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/unikforce-elementor-woocommerce/includes/widgets/products-block/view.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/unikforce-elementor-woocommerce/includes/widgets/products-block/view.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/unikforce-elementor-woocommerce/includes/widgets/products-block/view.php on line 20
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/unikforce-elementor-woocommerce/includes/widgets/products-block/view.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: wp elementor addon, elementor addons, wordpress woocommerce builder, elementor woocommerce builder

unikforce-elementor-woocommerce/unikforce-elementor-woocommerce.php 92% from 13 tests

"UnikForce Elementor WooCommerce Builder" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • 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 Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected36,238 lines of code in 173 files:
LanguageFilesBlank linesComment linesLines of code
PHP1213,9822,12317,125
PO File203,0373,4146,180
Sass1795934,846
CSS62824804,074
JavaScript61,2733484,006
JSON1005
SVG2002

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.56
Average class complexity21.98
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity5.01
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes82
▷ Abstract classes22.44%
▷ Concrete classes8097.56%
▷ Final classes11.25%
Methods429
▷ Static methods6615.38%
▷ Public methods40093.24%
▷ Protected methods266.06%
▷ Private methods30.70%
Functions41
▷ Named functions3995.12%
▷ Anonymous functions24.88%
Constants9
▷ Global constants888.89%
▷ Class constants111.11%
▷ Public constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%