61% elementor

Code Review | Elementor Website Builder

WordPress plugin Elementor Website Builder scored 61% from 54 tests.

About plugin

  • Plugin page: elementor
  • Plugin version: 3.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: May 30, 2016
  • Latest release: Mar 23, 2022
  • Number of updates: 1,176
  • Update frequency: every 1.8 days
  • Top authors: KingYes (100%)

Code review

54 tests

User reviews

6119 reviews

Install metrics

5,000,000+ active / 169,301,944 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲6.14MB] [CPU: ▼262.27ms] 50% from 4 tests

This is a short check of server-side resources used by Elementor Website Builder
The following require your attention
  • RAM: Total memory usage must be kept under 10MB (currently 12.17MB on /wp-admin/admin.php?page=elementor-system-info)
  • Extra RAM: The extra memory usage must be under 5MB (currently 6.14MB on /wp-admin/admin.php?page=e-form-submissions)
PageMemory (MB)CPU Time (ms)
Home /12.04 ▲8.53119.32 ▲58.80
Dashboard /wp-admin9.49 ▲6.0880.09 ▲32.87
Posts /wp-admin/edit.php9.75 ▲6.1188.05 ▲45.98
Add New Post /wp-admin/post-new.php13.20 ▲6.23148.48 ▼1,168.81
Media Library /wp-admin/upload.php9.44 ▲6.1475.03 ▲40.87
Saved Templates /wp-admin/edit.php?post_type=elementor_library&tabs_group=library9.5077.50
Popups /wp-admin/edit.php?post_type=elementor_library&page=popup_templates9.3767.39
Go Pro /wp-admin/admin.php?page=go_elementor_pro8.9357.05
Custom Code /wp-admin/admin.php?page=elementor_custom_custom_code9.3769.39
System Info /wp-admin/admin.php?page=elementor-system-info12.17350.02
Get Help /wp-admin/admin.php?page=go_knowledge_base_site8.9357.23
All Landing Pages /wp-admin/edit.php?post_type=e-landing-page9.4975.17
Role Manager /wp-admin/admin.php?page=elementor-role-manager9.4365.55
Custom Fonts /wp-admin/admin.php?page=elementor_custom_fonts9.3766.48
Submissions /wp-admin/admin.php?page=e-form-submissions9.3778.59

Server storage [IO: ▲28.27MB] [DB: ▲0.60MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • The filesystem usage should be lower than 25MB (currently using 28.27MB)
Filesystem: 829 new files
Database: 1 new table, 4 new options
New tables
wp_e_events
New WordPress options
elementor_active_kit
elementor_version
elementor_install_history
_elementor_installed_time

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elementor Website Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,515 ▲76021.57 ▲5.8923.69 ▲16.702.81 ▲0.15
Dashboard /wp-admin3,389 ▲5389.63 ▲3.44169.21 ▲33.39190.43 ▲27.70
Posts /wp-admin/edit.php3,003 ▲3126.63 ▲3.4089.75 ▲23.33149.88 ▲1.64
Add New Post /wp-admin/post-new.php1,994 ▲33317.04 ▲0.88467.59 ▲53.89154.34 ▲1.53
Media Library /wp-admin/upload.php2,042 ▲3448.65 ▲3.14162.30 ▲19.78208.15 ▲15.37
Saved Templates /wp-admin/edit.php?post_type=elementor_library&tabs_group=library1,9707.16107.60148.13
Popups /wp-admin/edit.php?post_type=elementor_library&page=popup_templates1,3686.2384.86135.35
Go Pro /wp-admin/admin.php?page=go_elementor_pro11,25614.82486.46545.21
Custom Code /wp-admin/admin.php?page=elementor_custom_custom_code1,3636.2485.12155.03
System Info /wp-admin/admin.php?page=elementor-system-info2,3316.4391.69131.84
Get Help /wp-admin/admin.php?page=go_knowledge_base_site4,38713.40528.39262.79
All Landing Pages /wp-admin/edit.php?post_type=e-landing-page1,7656.6886.99124.66
Role Manager /wp-admin/admin.php?page=elementor-role-manager1,5566.5290.50130.82
Custom Fonts /wp-admin/admin.php?page=elementor_custom_fonts1,3706.3989.15150.69
Submissions /wp-admin/admin.php?page=e-form-submissions1,3716.2687.21157.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_e_events
  • Zombie WordPress options detected upon uninstall: 4 options
    • elementor_active_kit
    • elementor_version
    • elementor_install_history
    • _elementor_installed_time

Smoke tests 25% 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=elementor-system-info
    • > Notice in wp-content/plugins/elementor/core/experiments/experiments-reporter.php+89
    Undefined index: title
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=go_knowledge_base_site
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

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
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Data\\V2\\Base\\Endpoint' not found in wp-content/plugins/elementor/core/editor/data/globals/endpoints/base.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\Debug\\Classes\\Inspection_Base' not found in wp-content/plugins/elementor/core/debug/classes/htaccess.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Modules\\System_Info\\Reporters\\Base' not found in wp-content/plugins/elementor/core/experiments/experiments-reporter.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Data\\Base\\Processor' not found in wp-content/plugins/elementor/data/base/processor/before.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Data\\Base\\Endpoint' not found in wp-content/plugins/elementor/data/base/sub-endpoint.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\Debug\\Classes\\Inspection_Base' not found in wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\Editor\\Data\\Globals\\Endpoints\\Base' not found in wp-content/plugins/elementor/core/editor/data/globals/endpoints/typography.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\Editor\\Data\\Globals\\Endpoints\\Base' not found in wp-content/plugins/elementor/core/editor/data/globals/endpoints/colors.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/elementor/data/base/controller.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/elementor/core/kits/views/panel.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=go_elementor_pro
    • > Console-api (warning) in unknown
    https://static.hotjar.com/c/hotjar-1903348.js?sv=7 2:1244 "Hotjar not launching due to suspicious userAgent:" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/99.0.4844.82 Safari/537.36"
    • > GET request to /wp-admin/admin.php?page=go_elementor_pro
    • > Network (severe)
    https://alb.reddit.com/rp.gif?ts=1648205695278&id=t2_igyg9991&event=PageVisit&m.itemCount=&m.value=&m.valueDecimal=&m.currency=&m.transactionId=&m.customEventName=&uuid=d1402b43-f788-40d2-985a-a41261a7758c&aaid=&em=&external_id=&idfa=&integration=gtm&opt_out=0&sh=800&sw=600&v=rdt_da535582 - Failed to load resource: the server responded with a status of 403 ()
    • > GET request to /wp-admin/admin.php?page=go_knowledge_base_site
    • > Network (severe)
    https://alb.reddit.com/rp.gif?ts=1648205702044&id=t2_igyg9991&event=PageVisit&m.itemCount=&m.value=&m.valueDecimal=&m.currency=&m.transactionId=&m.customEventName=&uuid=d1402b43-f788-40d2-985a-a41261a7758c&aaid=&em=&external_id=&idfa=&integration=gtm&opt_out=0&sh=800&sw=600&v=rdt_da535582 - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

elementor/elementor.php 92% from 13 tests

"Elementor Website Builder" version 3.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 145 characters long)

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
Success! There were no dangerous files found in this plugin346,058 lines of code in 780 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13753,54833,954200,015
CSS1379,83052370,929
PHP42913,58731,24559,471
SVG67445113,881
JSON101501,762

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.62
▷ Minimum class complexity1.00
▷ Maximum class complexity195.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity93.00
Code structure
Namespaces111
Interfaces3
Traits2
Classes403
▷ Abstract classes7318.11%
▷ Concrete classes33081.89%
▷ Final classes20.61%
Methods3,476
▷ Static methods40211.57%
▷ Public methods2,41669.51%
▷ Protected methods60617.43%
▷ Private methods45413.06%
Functions194
▷ Named functions73.61%
▷ Anonymous functions18796.39%
Constants334
▷ Global constants195.69%
▷ Class constants31594.31%
▷ Public constants315100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.31MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/blur.png11.33KB10.19KB▼ 10.05%
assets/images/logo-icon.png1.58KB1.25KB▼ 20.45%
assets/images/placeholder.png6.00KB5.03KB▼ 16.19%
assets/images/library-connect/left-2.png95.49KB103.39KB0.00%
assets/images/contrast.png1.19KB0.26KB▼ 78.33%