90% live-composer-page-builder

Code Review | Page Builder: Live Composer

WordPress plugin Page Builder: Live Composer scored90%from 54 tests.

About plugin

  • Plugin page: live-composer-pag...
  • Plugin version: 1.5.23
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 9, 2015
  • Latest release: Feb 28, 2023
  • Number of updates: 207
  • Update frequency: every 13.2 days
  • Top authors: LiveComposer (100%)

Code review

54 tests

User reviews

199 reviews

Install metrics

10,000+ active /1,328,364 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.66MB] [CPU: ▲7.47ms] Passed 4 tests

Analyzing server-side resources used by Page Builder: Live Composer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5944.33 ▲7.23
Dashboard /wp-admin3.99 ▲0.6951.79 ▲6.62
Posts /wp-admin/edit.php4.04 ▲0.6959.98 ▲9.89
Add New Post /wp-admin/post-new.php6.62 ▲0.7393.54 ▲6.14
Media Library /wp-admin/upload.php3.91 ▲0.6944.47 ▲13.34
Testimonials /wp-admin/edit.php?post_type=dslc_testimonials3.9845.64
Projects /wp-admin/edit.php?post_type=dslc_projects3.9842.50
Downloads /wp-admin/edit.php?post_type=dslc_downloads3.9841.78
Categories /wp-admin/edit-tags.php?taxonomy=dslc_partners_cats&post_type=dslc_partners3.9142.50
Categories /wp-admin/edit-tags.php?taxonomy=dslc_projects_cats&post_type=dslc_projects3.9143.29
Categories /wp-admin/edit-tags.php?taxonomy=dslc_staff_cats&post_type=dslc_staff3.9143.87
Add Project /wp-admin/post-new.php?post_type=dslc_projects4.1666.09
Add Staff /wp-admin/post-new.php?post_type=dslc_staff4.1666.27
Categories /wp-admin/edit-tags.php?taxonomy=dslc_downloads_cats&post_type=dslc_downloads3.9142.92
Add Download Item /wp-admin/post-new.php?post_type=dslc_downloads4.1664.76

Server storage [IO: ▲6.85MB] [DB: ▲0.08MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 256 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
dslc_version
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Page Builder: Live Composer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,356 ▲62114.54 ▲0.3018.63 ▲16.8627.60 ▼11.26
Dashboard /wp-admin2,517 ▲3324.92 ▲0.05115.45 ▲4.8948.22 ▲2.72
Posts /wp-admin/edit.php2,409 ▲3232.12 ▲0.1442.98 ▲3.5339.34 ▲4.04
Add New Post /wp-admin/post-new.php1,734 ▲22023.32 ▲5.71687.50 ▲104.5436.98 ▼16.78
Media Library /wp-admin/upload.php1,696 ▲3174.16 ▼0.0498.03 ▼8.3349.21 ▲4.79
Testimonials /wp-admin/edit.php?post_type=dslc_testimonials1,3722.0334.6536.74
Projects /wp-admin/edit.php?post_type=dslc_projects1,4032.0336.1132.70
Downloads /wp-admin/edit.php?post_type=dslc_downloads1,4092.1734.6532.96
Categories /wp-admin/edit-tags.php?taxonomy=dslc_partners_cats&post_type=dslc_partners1,5912.2331.2732.43
Categories /wp-admin/edit-tags.php?taxonomy=dslc_projects_cats&post_type=dslc_projects1,5912.2330.1134.63
Categories /wp-admin/edit-tags.php?taxonomy=dslc_staff_cats&post_type=dslc_staff1,5982.2329.0334.09
Add Project /wp-admin/post-new.php?post_type=dslc_projects3,1438.04195.1384.21
Add Staff /wp-admin/post-new.php?post_type=dslc_staff3,1728.12190.9369.69
Categories /wp-admin/edit-tags.php?taxonomy=dslc_downloads_cats&post_type=dslc_downloads1,5912.2328.9534.10
Add Download Item /wp-admin/post-new.php?post_type=dslc_downloads3,1658.17175.2571.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • dslc_version
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: landing page builder, page builder, drag and drop page builder, frontend page builder, website builder

live-composer-page-builder/ds-live-composer.php 92% from 13 tests

The entry point to "Page Builder: Live Composer" version 1.5.23 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("live-composer-page-builder.php" instead of "ds-live-composer.php")

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 detected103,715 lines of code in 155 files:
LanguageFilesBlank linesComment linesLines of code
PHP997,1376,11783,790
CSS141,85590111,475
JavaScript382,4982,3015,776
SVG4002,674

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity19.52
▷ Minimum class complexity2.00
▷ Maximum class complexity93.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes48
▷ Abstract classes00.00%
▷ Concrete classes48100.00%
▷ Final classes24.17%
Methods209
▷ Static methods188.61%
▷ Public methods19191.39%
▷ Protected methods00.00%
▷ Private methods188.61%
Functions235
▷ Named functions22796.60%
▷ Anonymous functions83.40%
Constants14
▷ Global constants14100.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
70 compressed PNG files occupy 0.77MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/lc-extension-videoembed.png6.46KB7.41KB0.00%
images/lc-design-header-footer.png11.44KB12.68KB0.00%
images/lc-extension-cpt.png15.04KB15.06KB0.00%
images/stylist.png14.48KB16.45KB0.00%
images/extensions/openstreetmap/thumbnail.png52.63KB17.08KB▼ 67.54%