84% stax-woo-addons-for-elementor

Code Review | Woo Addons for Elementor - Stax

WordPress plugin Woo Addons for Elementor - Stax scored84%from 54 tests.

About plugin

  • Plugin page: stax-woo-addons-f...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: Jul 6, 2023
  • Number of updates: 4
  • Update frequency: every 292.8 days
  • Top authors: staxwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,310 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.92ms] Passed 4 tests

This is a short check of server-side resources used by Woo Addons for Elementor - Stax
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.45 ▼6.88
Dashboard /wp-admin3.33 ▲0.0354.39 ▼0.22
Posts /wp-admin/edit.php3.38 ▲0.0349.96 ▼5.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.92 ▼15.31
Media Library /wp-admin/upload.php3.26 ▲0.0338.05 ▼0.33

Server storage [IO: ▲0.50MB] [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: 58 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Woo Addons for Elementor - Stax
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.26 ▼1.125.23 ▲3.3843.64 ▼0.18
Dashboard /wp-admin2,262 ▲715.08 ▼0.78117.26 ▲12.1744.23 ▲1.79
Posts /wp-admin/edit.php2,145 ▲562.06 ▲0.0641.12 ▲4.7535.74 ▲1.84
Add New Post /wp-admin/post-new.php1,536 ▲817.54 ▼5.75626.13 ▼47.2851.26 ▼4.84
Media Library /wp-admin/upload.php1,445 ▲604.21 ▼0.02106.18 ▼14.8148.77 ▼0.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(wp-content/plugins/stax-woo-addons-for-elementor/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/stax-woo-addons-for-elementor/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/stax-woo-addons-for-elementor/core/admin/pages/templates/widgets.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/stax-woo-addons-for-elementor/core/admin/layout.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/stax-woo-addons-for-elementor/core/admin/actions.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/stax-woo-addons-for-elementor/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/stax-woo-addons-for-elementor/vendor/appsero/client/.php-cs-fixer.dist.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: woocommerce widgets, elementor, elementor woocommerce, woo addons, woocommerce

stax-woo-addons-for-elementor/loader.php 92% from 13 tests

"Woo Addons for Elementor - Stax" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("stax-woo-addons-for-elementor.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,622 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP309291,2854,399
CSS61072544
Markdown1820255
JavaScript3209115
JSON200108
XML161195
SVG20038
Sass15036
YAML16032

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.58
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes19
▷ Abstract classes15.26%
▷ Concrete classes1894.74%
▷ Final classes00.00%
Methods201
▷ Static methods2914.43%
▷ Public methods14672.64%
▷ Protected methods2311.44%
▷ Private methods3215.92%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants16
▷ Global constants1487.50%
▷ Class constants212.50%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin