78% elementskit-lite

Code Review | ElementsKit Elementor addons

WordPress plugin ElementsKit Elementor addons scored78%from 54 tests.

About plugin

  • Plugin page: elementskit-lite
  • Plugin version: 3.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 6, 2019
  • Latest release: Nov 28, 2023
  • Number of updates: 232
  • Update frequency: every 6.9 days
  • Top authors: ataurr (88.79%)wpmet (6.47%)xpeedstudio (5.6%)

Code review

54 tests

User reviews

1514 reviews

Install metrics

1,000,000+ active /15,166,697 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: ▲0.44MB] [CPU: ▼4.48ms] Passed 4 tests

Server-side resources used by ElementsKit Elementor addons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4536.88 ▼4.25
Dashboard /wp-admin3.76 ▲0.4146.74 ▼14.16
Posts /wp-admin/edit.php3.81 ▲0.4547.97 ▲1.10
Add New Post /wp-admin/post-new.php6.34 ▲0.4589.18 ▼0.62
Media Library /wp-admin/upload.php3.68 ▲0.4535.65 ▲2.37

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 452 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
elementskit-lite__plugin_activated

Browser metrics Passed 4 tests

ElementsKit Elementor addons: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6014.29 ▼0.051.43 ▼0.3035.96 ▼3.22
Dashboard /wp-admin2,227 ▲495.58 ▼0.1191.28 ▼22.8640.39 ▼5.34
Posts /wp-admin/edit.php2,133 ▲302.15 ▲0.1736.85 ▲0.6035.87 ▲4.47
Add New Post /wp-admin/post-new.php1,561 ▲2623.31 ▼1.88673.70 ▲58.4250.97 ▼6.40
Media Library /wp-admin/upload.php1,426 ▲264.20 ▲0.0299.92 ▼6.4541.14 ▼1.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • elementskit-lite__plugin_activated
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/elementskit-lite/widgets/team/parts/social-list.php
  • 195× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: ekit_video_popup_video_type in wp-content/plugins/elementskit-lite/widgets/video/parts/video-button.php on line 10
    • > PHP Notice
      Undefined index: link in wp-content/plugins/elementskit-lite/modules/onepage-scroll/nav-styles/line-grow.php on line 7
    • > PHP Notice
      Undefined variable: classlist in wp-content/plugins/elementskit-lite/modules/onepage-scroll/nav-styles/line-fill.php on line 6
    • > PHP Notice
      Undefined index: link in wp-content/plugins/elementskit-lite/modules/onepage-scroll/nav-styles/circle-stroke.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'ElementsKit_Lite\\Config\\Module_List' not found in wp-content/plugins/elementskit-lite/libs/framework/views/settings-sections/modules.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ElementsKit_Lite\\Core\\Handler_Widget' not found in wp-content/plugins/elementskit-lite/widgets/faq/faq-handler.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elementskit-lite/modules/onepage-scroll/nav-styles/line-fill.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'ElementsKit_Lite\\Core\\Handler_Widget' not found in wp-content/plugins/elementskit-lite/widgets/post-tab/post-tab-handler.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/elementskit-lite/widgets/testimonial/style/style1.php:1
    • > PHP Notice
      Undefined variable: nav_pos in wp-content/plugins/elementskit-lite/modules/onepage-scroll/nav-styles/line-move.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6, #7, #8, #9 in elementskit-lite/assets to your readme.txt
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

elementskit-lite/elementskit-lite.php 92% from 13 tests

"ElementsKit Elementor addons" version 3.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin77,095 lines of code in 335 files:
LanguageFilesBlank linesComment linesLines of code
PHP2658,4952,42860,961
PO File45,99213,41612,110
SVG16013,139
XML110816
JavaScript25414145
CSS220922
JSON2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.51
▷ Minimum class complexity1.00
▷ Maximum class complexity93.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity93.00
Code structure
Namespaces31
Interfaces2
Traits3
Classes204
▷ Abstract classes31.47%
▷ Concrete classes20198.53%
▷ Final classes10.50%
Methods1,342
▷ Static methods41831.15%
▷ Public methods1,12683.90%
▷ Protected methods14911.10%
▷ Private methods674.99%
Functions15
▷ Named functions533.33%
▷ Anonymous functions1066.67%
Constants29
▷ Global constants00.00%
▷ Class constants29100.00%
▷ Public constants29100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
96 compressed PNG files occupy 1.43MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widgets/heading/assets/imagechoose/6.png5.02KB5.33KB0.00%
libs/framework/assets/images/onboard/shape-14.png0.55KB0.34KB▼ 37.72%
widgets/blog-posts/assets/imagechoose/floating-date-1.png4.26KB4.35KB0.00%
widgets/heading/assets/imagechoose/8.png6.58KB7.00KB0.00%
libs/framework/assets/images/onboard/tutorial-banner.png26.71KB28.26KB0.00%