66% better-elementor-addons

Code Review | Better Elementor Addons

WordPress plugin Better Elementor Addons scored66%from 54 tests.

About plugin

  • Plugin page: better-elementor-...
  • Plugin version: 1.3.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.0
  • WordPress version: 6.3.1
  • First release: May 9, 2020
  • Latest release: Nov 10, 2023
  • Number of updates: 81
  • Update frequency: every 15.8 days
  • Top authors: smartinnovates (83.95%)designstore21 (17.28%)

Code review

54 tests

User reviews

4 reviews

Install metrics

6,000+ active /67,366 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.14MB] [CPU: ▼3.14ms] Passed 4 tests

An overview of server-side resources used by Better Elementor Addons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.01 ▼1.71
Dashboard /wp-admin3.45 ▲0.1548.74 ▼0.83
Posts /wp-admin/edit.php3.56 ▲0.2144.48 ▼2.33
Add New Post /wp-admin/post-new.php6.05 ▲0.1685.73 ▼7.70
Media Library /wp-admin/upload.php3.37 ▲0.1434.38 ▼0.58
Documentation /wp-admin/admin.php?page=better_el_addons_documentation3.1425.65
Settings /wp-admin/admin.php?page=better_el_addons3.3631.46

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 287 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Better Elementor Addons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲11714.43 ▲0.181.85 ▲0.1443.54 ▼3.19
Dashboard /wp-admin2,256 ▲765.83 ▲0.2188.54 ▼11.1239.86 ▼9.05
Posts /wp-admin/edit.php2,169 ▲692.36 ▲0.3636.75 ▲0.4130.42 ▼5.43
Add New Post /wp-admin/post-new.php1,578 ▲5223.51 ▲0.52688.69 ▲79.1536.52 ▼13.20
Media Library /wp-admin/upload.php1,467 ▲734.48 ▲0.2798.62 ▲1.0242.43 ▲1.32
Documentation /wp-admin/admin.php?page=better_el_addons_documentation2,4493.7482.96100.84
Settings /wp-admin/admin.php?page=better_el_addons1,6482.2430.7344.37

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=better_el_addons_documentation
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 53× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/better-elementor-addons/widgets/slider/styles/style9.php
    • > /wp-content/plugins/better-elementor-addons/widgets/heading/styles/style6.php
    • > /wp-content/plugins/better-elementor-addons/widgets/team/styles/style2.php
    • > /wp-content/plugins/better-elementor-addons/widgets/heading/styles/style4.php
    • > /wp-content/plugins/better-elementor-addons/widgets/slider/styles/style8.php
    • > /wp-content/plugins/better-elementor-addons/widgets/woo/tags.php
    • > /wp-content/plugins/better-elementor-addons/widgets/nav/styles/style2.php
    • > /wp-content/plugins/better-elementor-addons/widgets/testimonial-carousel/styles/style5.php
    • > /wp-content/plugins/better-elementor-addons/widgets/heading/styles/style5.php
    • > /wp-content/plugins/better-elementor-addons/widgets/menu-list/styles/style1.php
  • 374× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/better-elementor-addons/widgets/portfolio/styles/style6.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/better-elementor-addons/widgets/portfolio/styles/style5.php on line 4
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/better-elementor-addons/widgets/button/styles/style5.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/better-elementor-addons/widgets/services/styles/style4.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/better-elementor-addons/widgets/portfolio/styles/style7.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/better-elementor-addons/widgets/team/styles/style5.php on line 22
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/better-elementor-addons/widgets/image/styles/style2.php on line 2
    • > PHP Notice
      Undefined variable: better_heading_sub_title in wp-content/plugins/better-elementor-addons/widgets/heading/styles/style4.php on line 7
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/better-elementor-addons/widgets/info-box/styles/style5.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/better-elementor-addons/widgets/menu-list/styles/style2.php on line 7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=better_el_addons_documentation
    • > Network (severe)
    https://addons.kitsway.com/?wc-ajax=get_refreshed_fragments - Failed to load resource: the server responded with a status of 406 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: elementor, elementor addons, addons, elementor addon, elementor widget

better-elementor-addons/better-addons.php 85% from 13 tests

The main PHP file in "Better Elementor Addons" ver. 1.3.7 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • 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
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("better-elementor-addons.php" instead of "better-addons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin66,682 lines of code in 256 files:
LanguageFilesBlank linesComment linesLines of code
PHP1832,8374,36122,395
CSS142,70238619,037
Sass121,971713,084
SVG90139,389
JavaScript386033912,777

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.47
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes62
▷ Abstract classes00.00%
▷ Concrete classes62100.00%
▷ Final classes11.61%
Methods449
▷ Static methods10.22%
▷ Public methods29565.70%
▷ Protected methods15233.85%
▷ Private methods20.45%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/dots.png0.10KB0.10KB0.00%
admin/assets/images/logo-dark.png5.63KB1.89KB▼ 66.40%
assets/img/patern.png105.44KB43.40KB▼ 58.84%
assets/img/forward-arrow.png8.38KB5.91KB▼ 29.52%
assets/img/dotz.png3.32KB1.64KB▼ 50.59%