78% lastudio-element-kit

Code Review | LA-Studio Element Kit for Elementor

WordPress plugin LA-Studio Element Kit for Elementor scored78%from 54 tests.

About plugin

  • Plugin page: lastudio-element-kit
  • Plugin version: 1.3.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 24, 2021
  • Latest release: Oct 11, 2023
  • Number of updates: 19
  • Update frequency: every 49.0 days
  • Top authors: choijun (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10,000+ active /27,826 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.05MB] [CPU: ▲6.86ms] Passed 4 tests

Analyzing server-side resources used by LA-Studio Element Kit for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9648.92 ▲10.71
Dashboard /wp-admin4.42 ▲1.1159.41 ▲6.37
Posts /wp-admin/edit.php4.47 ▲1.1159.53 ▲2.40
Add New Post /wp-admin/post-new.php6.96 ▲1.07102.37 ▲7.94
Media Library /wp-admin/upload.php4.28 ▲1.0550.43 ▲14.44

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

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

Browser metrics Passed 4 tests

Checking browser requirements for LA-Studio Element Kit for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.30 ▼0.902.27 ▲0.6652.30 ▲9.54
Dashboard /wp-admin2,261 ▲584.91 ▲0.03116.87 ▲14.9045.12 ▲1.42
Posts /wp-admin/edit.php2,140 ▲372.16 ▲0.1740.48 ▲3.3938.20 ▲1.86
Add New Post /wp-admin/post-new.php1,551 ▲1123.45 ▲0.25645.56 ▼54.9155.53 ▼2.42
Media Library /wp-admin/upload.php1,440 ▲404.26 ▲0.05112.42 ▲0.9750.85 ▲4.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 44× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/lastudio-element-kit/templates/animated-text/global/animated-text-loop-start.php
    • > /wp-content/plugins/lastudio-element-kit/includes/framework/vue-ui/components/popup.php
    • > /wp-content/plugins/lastudio-element-kit/includes/framework/vue-ui/components/colorpicker.php
    • > /wp-content/plugins/lastudio-element-kit/templates/pricing-table/global/features-loop-start.php
    • > /wp-content/plugins/lastudio-element-kit/includes/framework/vue-ui/components/button.php
    • > /wp-content/plugins/lastudio-element-kit/templates/price-list/global/price-list-loop-start.php
    • > /wp-content/plugins/lastudio-element-kit/templates/timeline-vertical/global/timeline-loop-end.php
    • > /wp-content/plugins/lastudio-element-kit/includes/framework/vue-ui/components/tabs-panel.php
    • > /wp-content/plugins/lastudio-element-kit/templates/timeline-horizontal/global/list-bottom-loop-start.php
    • > /wp-content/plugins/lastudio-element-kit/includes/framework/vue-ui/components/list-table-heading.php
  • 115× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lastudio-element-kit/templates/banner/global/index.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lastudio-element-kit/templates/timeline-horizontal/global/index.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/lastudio-element-kit/templates/timeline-horizontal/global/card.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_cache_get() in wp-content/plugins/lastudio-element-kit/templates/register-frm/global/messages.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lastudio-element-kit/templates/timeline-horizontal/global/card.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lastudio-element-kit/includes/extensions/events/widget-templates/events/global/loop-item.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lastudio-element-kit/templates/subscribe-form/global/index.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lastudio-element-kit/templates/progress-bar/global/types/type-6.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lastudio-element-kit/templates/pricing-table/global/button.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lastudio-element-kit/templates/countdown-timer/global/00-days.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Plugin Settings), #2 (Plugin Settings), #3 (Add New Template), #4 (Add New Conditions)
You can take inspiration from this readme.txt

lastudio-element-kit/lastudio-element-kit.php 92% from 13 tests

The main PHP file in "LA-Studio Element Kit for Elementor" ver. 1.3.6 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: Since WordPress version 4.6 the text domain is optional; if specified, 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 plugin227,855 lines of code in 888 files:
LanguageFilesBlank linesComment linesLines of code
PHP50516,2978,993109,714
JavaScript16011,6127,63264,990
JSON260029,265
CSS1041201517,871
SVG54033,406
Sass3916832,609

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity15.35
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces59
Interfaces0
Traits2
Classes329
▷ Abstract classes226.69%
▷ Concrete classes30793.31%
▷ Final classes20.65%
Methods2,859
▷ Static methods2207.69%
▷ Public methods2,12474.29%
▷ Protected methods59320.74%
▷ Private methods1424.97%
Functions77
▷ Named functions1215.58%
▷ Anonymous functions6584.42%
Constants56
▷ Global constants47.14%
▷ Class constants5292.86%
▷ Public constants52100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 compressed PNG files occupy 0.46MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png49.48KB55.33KB0.00%
screenshot-1.png54.05KB57.80KB0.00%
includes/framework/dashboard/assets/images/banner-light-bg-1.png8.08KB7.96KB▼ 1.52%
screenshot-3.png101.58KB101.63KB0.00%
screenshot-2.png60.17KB66.29KB0.00%