67% live-composer-lite

Code Review | Live Landing Page Composer – visual landing page builder for digital marketers

WordPress plugin Live Landing Page Composer – visual landing page builder for digital marketers scored67%from 54 tests.

About plugin

  • Plugin page: live-composer-lite
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4.2
  • WordPress version: 6.3.1
  • First release: Jun 11, 2014
  • Latest release: Mar 4, 2016
  • Number of updates: 16
  • Update frequency: every 39.5 days
  • Top authors: LiveComposer (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active /21,950 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼27.65ms] Passed 4 tests

This is a short check of server-side resources used by Live Landing Page Composer – visual landing page builder for digital marketers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.82 ▲1.3656.48 ▲12.83
Dashboard /wp-admin4.34 ▲1.0034.77 ▼43.07
Posts /wp-admin/edit.php4.34 ▲0.9939.70 ▼10.05
Add New Post /wp-admin/post-new.php4.34 ▼1.5438.25 ▼58.51
Media Library /wp-admin/upload.php4.34 ▲1.1237.23 ▲1.03
Add Template /wp-admin/post-new.php?post_type=dslc_templates4.3435.05
Getting Started /wp-admin/admin.php?page=dslc_getting_started4.3434.72
Templates /wp-admin/edit.php?post_type=dslc_templates4.3535.35
Widgets Module /wp-admin/admin.php?page=dslc_plugin_options_widgets_m4.3435.57
General Options /wp-admin/admin.php?page=dslc_plugin_options4.3438.57
Slugs /wp-admin/admin.php?page=dslc_plugin_options_cpt_slugs4.3432.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Live Landing Page Composer – visual landing page builder for digital marketers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,050 ▲28914.60 ▼0.0233.12 ▲30.8942.52 ▼0.09
Dashboard /wp-admin2,270 ▲965.57 ▼0.0685.44 ▼4.5537.83 ▼2.81
Posts /wp-admin/edit.php2,162 ▲651.96 ▼0.0540.65 ▲5.1036.17 ▼2.21
Add New Post /wp-admin/post-new.php1,584 ▲5823.08 ▼0.12598.98 ▼95.9151.04 ▼5.03
Media Library /wp-admin/upload.php1,465 ▲654.20 ▼0.02102.59 ▼9.2646.09 ▼0.93
Add Template /wp-admin/post-new.php?post_type=dslc_templates1,9363.8065.2739.71
Getting Started /wp-admin/admin.php?page=dslc_getting_started1,2024.26114.6161.19
Templates /wp-admin/edit.php?post_type=dslc_templates1,1141.9830.1931.78
Widgets Module /wp-admin/admin.php?page=dslc_plugin_options_widgets_m9002.1826.5027.38
General Options /wp-admin/admin.php?page=dslc_plugin_options9182.0225.1632.21
Slugs /wp-admin/admin.php?page=dslc_plugin_options_cpt_slugs9962.0524.2228.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/live-composer-lite/includes/plugin-options-framework/inc/init.php+26
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 116 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=dslc_plugin_options_cpt_slugs
    • > Deprecated in wp-content/plugins/live-composer-lite/includes/plugin-options-framework/inc/init.php+156
    Function create_function() is deprecated
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=dslc_getting_started
    • > Notice in wp-content/plugins/live-composer-lite/includes/plugin-options-framework/getting-started.php+27
    Trying to access array offset on value of type bool

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
Please fix the following
  • 41× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-composer-lite/includes/post-options-framework/post-options-framework.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-composer-lite/includes/display-functions.php:487
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/live-composer-lite/lite-ds-live-composer.php:20
    • > PHP Warning
      Use of undefined constant DSLC_PO_FRAMEWORK_ABS - assumed 'DSLC_PO_FRAMEWORK_ABS' (this will throw an Error in a future version of PHP) in wp-content/plugins/live-composer-lite/includes/plugin-options-framework/plugin-options-framework.php on line 6
    • > PHP Warning
      Use of undefined constant DSLC_PO_FRAMEWORK_ABS - assumed 'DSLC_PO_FRAMEWORK_ABS' (this will throw an Error in a future version of PHP) in wp-content/plugins/live-composer-lite/includes/plugin-options-framework/plugin-options-framework.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-composer-lite/includes/single-templates-framework/inc/filters.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-composer-lite/includes/single-templates-framework/inc/functions.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-composer-lite/includes/plugin-options-framework/inc/init.php:59
    • > PHP Fatal error
      Uncaught Error: Class 'DSLC_Module' not found in wp-content/plugins/live-composer-lite/modules/separator/module.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-composer-lite/includes/scripts.php:56

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: builder, live, modules, page, page builder...

live-composer-lite/lite-ds-live-composer.php 77% from 13 tests

The principal PHP file in "Live Landing Page Composer – visual landing page builder for digital marketers" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 80 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("live-composer-lite.php" instead of "lite-ds-live-composer.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin25,765 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP291,88598910,707
CSS81,2404597,802
JavaScript62,1499055,629
PO File15242,0221,087
SVG200540

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 111)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity20.69
▷ Minimum class complexity2.00
▷ Maximum class complexity112.00
Average method complexity9.26
▷ Minimum method complexity1.00
▷ Maximum method complexity111.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods31
▷ Static methods13.23%
▷ Public methods2993.55%
▷ Protected methods00.00%
▷ Private methods26.45%
Functions72
▷ Named functions72100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
25 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/select.png0.49KB0.33KB▼ 33.40%
images/colorpicker_submit.png0.96KB1.04KB0.00%
images/custom_background.png1.87KB2.12KB0.00%
images/custom_submit.png0.97KB0.99KB0.00%
images/custom_hsb_b.png1.07KB0.82KB▼ 23.61%