78% codeless-page-builder

Code Review | Codeless Page Builder

WordPress plugin Codeless Page Builder scored 78% from 54 tests.

About plugin

  • Plugin page: codeless-page-bui...
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 26, 2020
  • Latest release: Feb 19, 2023
  • Number of updates: 15
  • Update frequency: every 72.6 days
  • Top authors: codelessthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 16,404 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▲0.82ms] Passed 4 tests

An overview of server-side resources used by Codeless Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3142.88 ▲2.36
Dashboard /wp-admin4.02 ▲0.7258.72 ▲5.63
Posts /wp-admin/edit.php3.67 ▲0.3146.85 ▲0.47
Add New Post /wp-admin/post-new.php6.13 ▲0.2595.15 ▼2.02
Media Library /wp-admin/upload.php3.48 ▲0.2538.26 ▲2.49

Server storage [IO: ▲3.66MB] [DB: ▲0.04MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
cl_builder_version
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Codeless Page Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲15413.54 ▼0.851.82 ▲0.0243.52 ▼6.38
Dashboard /wp-admin2,292 ▲1015.90 ▲0.03111.65 ▲3.2545.65 ▲6.62
Posts /wp-admin/edit.php2,098 ▲91.99 ▼0.0632.28 ▼3.1932.93 ▲2.01
Add New Post /wp-admin/post-new.php1,524 ▲517.39 ▼5.66659.82 ▼3.5253.18 ▼8.56
Media Library /wp-admin/upload.php1,398 ▲74.23 ▼0.0193.85 ▼2.0844.16 ▲3.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • cl_builder_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 22× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/codeless-page-builder/include/templates/shortcodes/cl_media.php
    • > /wp-content/plugins/codeless-page-builder/include/core/cl-register-post-type.php
    • > /wp-content/plugins/codeless-page-builder/codeless-builder.php
    • > /wp-content/plugins/codeless-page-builder/include/core/cl-builder-base.php
    • > /wp-content/plugins/codeless-page-builder/include/templates/shortcodes/cl_gallery.php
    • > /wp-content/plugins/codeless-page-builder/include/core/shortcodes/cl-shortcode.php
    • > /wp-content/plugins/codeless-page-builder/include/templates/shortcodes/cl_row.php
    • > /wp-content/plugins/codeless-page-builder/include/core/cl-builder-mapper.php
    • > /wp-content/plugins/codeless-page-builder/include/core/shortcodes/cl-shortcode-manager.php
    • > /wp-content/plugins/codeless-page-builder/include/core/shortcodes/cl-shortcode-simple.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Cl_Builder_Mapper' not found in wp-content/plugins/codeless-page-builder/include/templates/dialog.tpl.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Cl_Shortcode_Container' not found in wp-content/plugins/codeless-page-builder/include/core/shortcodes/cl-column.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cl_get_attributes() in wp-content/plugins/codeless-page-builder/include/templates/shortcodes/cl_custom_heading.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki' not found in wp-content/plugins/codeless-page-builder/config/cl-header-elements.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cl_builder_map() in wp-content/plugins/codeless-page-builder/config/cl-page-elements.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Panel' not found in wp-content/plugins/codeless-page-builder/include/core/kirki-setup/codeless_custom_panel.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codeless-page-builder/include/core/kirki-setup/codeless_controls.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cl_get_attributes() in wp-content/plugins/codeless-page-builder/include/templates/shortcodes/cl_text.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No tags were found

codeless-page-builder/codeless-builder.php 85% from 13 tests

The main file in "Codeless Page Builder" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("codeless-page-builder.php" instead of "codeless-builder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin25,053 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
CSS108441108,811
PHP342,1731,0108,507
JavaScript112,2334845,861
SVG71,20901,874

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity14.89
▷ Minimum class complexity1.00
▷ Maximum class complexity119.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes27.41%
▷ Concrete classes2592.59%
▷ Final classes14.00%
Methods145
▷ Static methods138.97%
▷ Public methods13492.41%
▷ Protected methods117.59%
▷ Private methods00.00%
Functions52
▷ Named functions4994.23%
▷ Anonymous functions35.77%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/layout_sprite.png0.17KB0.18KB0.00%