83% designer-for-elementor-lite

Code Review | Elementor Designer Lite

WordPress plugin Elementor Designer Lite scored83%from 54 tests.

About plugin

  • Plugin page: designer-for-elem...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2018
  • Latest release: Jan 5, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: norewp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,751 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.78ms] Passed 4 tests

A check of server-side resources used by Elementor Designer Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.20 ▼2.81
Dashboard /wp-admin3.34 ▲0.0446.22 ▼2.13
Posts /wp-admin/edit.php3.39 ▲0.0349.34 ▲2.84
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.43 ▼8.02
Media Library /wp-admin/upload.php3.26 ▲0.0335.11 ▼2.15

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Elementor Designer Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.18 ▼1.255.28 ▲3.3642.64 ▲4.33
Dashboard /wp-admin2,215 ▲334.87 ▼1.01109.02 ▲1.0544.20 ▲1.25
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0340.67 ▼0.7636.22 ▼2.49
Add New Post /wp-admin/post-new.php1,551 ▲2318.12 ▼0.24590.08 ▼16.2157.65 ▼0.27
Media Library /wp-admin/upload.php1,397 ▲94.18 ▼0.05102.38 ▼2.1142.28 ▼1.32

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorDesigner\\Base\\Module_Base' not found in wp-content/plugins/designer-for-elementor-lite/modules/designer/module.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • License uri: Invalid URI ("LICENSE File")
You can take inspiration from this readme.txt

designer-for-elementor-lite/designer-for-elementor-lite.php 85% from 13 tests

This is the main PHP file of "Elementor Designer Lite" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected6,659 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45368852,303
PHP104081142,177
CSS4374372,104
SVG10075

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity5.75
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes225.00%
▷ Concrete classes675.00%
▷ Final classes116.67%
Methods52
▷ Static methods713.46%
▷ Public methods4076.92%
▷ Protected methods917.31%
▷ Private methods35.77%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 7.20MB with 5.41MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot.png7,373.06KB1,832.58KB▼ 75.14%