84% layouts-for-elementor

Code Review | Layouts for Elementor

WordPress plugin Layouts for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: layouts-for-eleme...
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2019
  • Latest release: Oct 5, 2023
  • Number of updates: 19
  • Update frequency: every 88.8 days
  • Top authors: giraphix (73.68%)techeshta (31.58%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active /32,930 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Layouts for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0433.76 ▼2.84
Dashboard /wp-admin3.35 ▲0.0544.96 ▼6.03
Posts /wp-admin/edit.php3.41 ▲0.0445.46 ▼3.54
Add New Post /wp-admin/post-new.php5.96 ▲0.0690.96 ▼11.45
Media Library /wp-admin/upload.php3.28 ▲0.0434.63 ▼0.07

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Layouts for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.24 ▼0.381.66 ▲0.0341.63 ▲1.15
Dashboard /wp-admin2,208 ▲345.64 ▲0.0183.90 ▼0.5339.90 ▼1.45
Posts /wp-admin/edit.php2,110 ▲102.14 ▲0.1837.53 ▼1.9733.35 ▼4.84
Add New Post /wp-admin/post-new.php1,536 ▲1023.44 ▲0.48620.56 ▼50.3846.96 ▼9.84
Media Library /wp-admin/upload.php1,413 ▲134.16 ▲0.0197.76 ▲0.0142.07 ▼4.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\TemplateLibrary\\Source_Remote' not found in wp-content/plugins/layouts-for-elementor/includes/class-layout-importer.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/layouts-for-elementor/includes/layouts.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: elementor website templates, readymade templates, free elementor layouts, elementor template kits, elementor addon...

layouts-for-elementor/layouts-for-elementor.php Passed 13 tests

The main PHP file in "Layouts for Elementor" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
85 characters long description:
Beautifully designed, Free templates, Handcrafted for popular Elementor page builder.

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
Success! There were no dangerous files found in this plugin1,526 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS22111747
JavaScript27073392
PHP492118387

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants450.00%
▷ Class constants450.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/lfe-logo.png5.21KB2.49KB▼ 52.23%
assets/images/layouts-for-elementor.png1.14KB0.42KB▼ 62.97%