78% stax-addons-for-elementor

Code Review | Elementor Addons, Widgets and Enhancements - Stax

WordPress plugin Elementor Addons, Widgets and Enhancements - Stax scored78%from 54 tests.

About plugin

  • Plugin page: stax-addons-for-e...
  • Plugin version: 1.4.4.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2020
  • Latest release: Jul 5, 2023
  • Number of updates: 12
  • Update frequency: every 102.5 days
  • Top authors: seventhqueen (66.67%)staxwp (41.67%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /10,697 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.35ms] Passed 4 tests

An overview of server-side resources used by Elementor Addons, Widgets and Enhancements - Stax
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.96 ▲5.21
Dashboard /wp-admin3.35 ▲0.0447.87 ▲2.42
Posts /wp-admin/edit.php3.46 ▲0.1045.45 ▼0.18
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.64 ▼19.33
Media Library /wp-admin/upload.php3.27 ▲0.0437.16 ▲3.68

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 215 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Elementor Addons, Widgets and Enhancements - Stax: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲11814.79 ▲0.412.12 ▲0.4744.79 ▲2.20
Dashboard /wp-admin2,242 ▲606.00 ▲0.14100.92 ▼4.7537.77 ▼7.38
Posts /wp-admin/edit.php2,129 ▲402.03 ▲0.0336.04 ▼1.4134.61 ▼0.35
Add New Post /wp-admin/post-new.php1,524 ▼2117.42 ▼0.78710.72 ▲84.4158.68 ▲3.23
Media Library /wp-admin/upload.php1,427 ▲364.22 ▼0.08111.36 ▲9.7946.29 ▲2.14

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 fix the following
  • 12× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/stax-addons-for-elementor/widgets/divider/templates/standard.php
    • > /wp-content/plugins/stax-addons-for-elementor/widgets/heading/template.php
    • > /wp-content/plugins/stax-addons-for-elementor/widgets/counter/templates/parts/digit.php
    • > /wp-content/plugins/stax-addons-for-elementor/widgets/scroll-top/template.php
    • > /wp-content/plugins/stax-addons-for-elementor/widgets/divider/templates/with-icon.php
    • > /wp-content/plugins/stax-addons-for-elementor/widgets/blockquote/templates/top.php
    • > /wp-content/plugins/stax-addons-for-elementor/widgets/testimonials-slider/templates/parts/swiper-pag.php
    • > /wp-content/plugins/stax-addons-for-elementor/widgets/slider/template.php
    • > /wp-content/plugins/stax-addons-for-elementor/widgets/dropdown/template.php
    • > /wp-content/plugins/stax-addons-for-elementor/widgets/blockquote/templates/inline.php
  • 124× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/stax-addons-for-elementor/widgets/counter/templates/parts/digit.php on line 2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/stax-addons-for-elementor/widgets/testimonials-slider/templates/parts/swiper-nav-outside.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/stax-addons-for-elementor/widgets/testimonials/template.php:13
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/stax-addons-for-elementor/widgets/slider/template.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/stax-addons-for-elementor/widgets/dropdown/template.php on line 5
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/stax-addons-for-elementor/widgets/testimonials/template.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'StaxAddons\\Utils' not found in wp-content/plugins/stax-addons-for-elementor/widgets/team-member/templates/info-below.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'StaxAddons\\Utils' not found in wp-content/plugins/stax-addons-for-elementor/widgets/info-button/template.php:3
    • > PHP Notice
      Undefined variable: icon_attribute in wp-content/plugins/stax-addons-for-elementor/widgets/scroll-top/template.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/stax-addons-for-elementor/widgets/testimonials/template.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: elementor widgets, elementor, fast elementor addons, light addons, elementor addons...

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

The main file in "Elementor Addons, Widgets and Enhancements - Stax" v. 1.4.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("stax-addons-for-elementor.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin14,060 lines of code in 200 files:
LanguageFilesBlank linesComment linesLines of code
PHP1371,9551,80011,800
Sass1111118598
CSS25498583
JavaScript2010846558
Markdown1820255
JSON200108
XML161195
YAML16032
SVG20031

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.98
▷ Minimum class complexity1.00
▷ Maximum class complexity144.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces28
Interfaces0
Traits0
Classes42
▷ Abstract classes12.38%
▷ Concrete classes4197.62%
▷ Final classes00.00%
Methods330
▷ Static methods3310.00%
▷ Public methods24574.24%
▷ Protected methods5416.36%
▷ Private methods319.39%
Functions9
▷ Named functions222.22%
▷ Anonymous functions777.78%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/pattern_01.png0.40KB0.18KB▼ 53.83%