84% theme-builder-for-elementor

Code Review | Theme Builder For Elementor

WordPress plugin Theme Builder For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: theme-builder-for...
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: Nov 3, 2023
  • Number of updates: 16
  • Update frequency: every 82.4 days
  • Top authors: theblockswp (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /17,300 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.48ms] Passed 4 tests

Server-side resources used by Theme Builder For Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0131.29 ▼6.21
Dashboard /wp-admin3.34 ▼0.0145.78 ▼18.62
Posts /wp-admin/edit.php3.39 ▲0.0346.55 ▲1.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.82 ▼14.18
Media Library /wp-admin/upload.php3.26 ▲0.0336.52 ▲5.18

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Theme Builder For Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,753 ▲614.22 ▲0.051.86 ▲0.2814.18 ▼26.07
Dashboard /wp-admin2,201 ▲245.72 ▲0.0784.11 ▼5.7339.97 ▼5.60
Posts /wp-admin/edit.php2,107 ▲71.95 ▲0.0139.41 ▲1.7739.18 ▲2.50
Add New Post /wp-admin/post-new.php1,535 ▲923.41 ▲0.12614.29 ▲32.9668.98 ▲7.41
Media Library /wp-admin/upload.php1,403 ▲64.17 ▲0.0398.20 ▲1.9341.55 ▼1.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/theme-builder-for-elementor/lib/elementor/sections/single-elementor-archive.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/theme-builder-for-elementor/lib/elementor/sections/single-elementor-404.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/theme-builder-for-elementor/lib/elementor/sections/template/sidebar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/theme-builder-for-elementor/lib/elementor/sections/single-elementor-page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-builder-for-elementor/lib/elementor/sections/module.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/theme-builder-for-elementor/lib/elementor/sections/template/404.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-builder-for-elementor/lib/metabox.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/theme-builder-for-elementor/lib/elementor/sections/single-elementor-sidebar.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/theme-builder-for-elementor/lib/elementor/sections/template/single.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/theme-builder-for-elementor/lib/elementor/sections/single-elementor-post.php:1

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: elementor widget, theme builder, elementor, demo import

theme-builder-for-elementor/theme-builder-for-elementor.php 92% from 13 tests

Analyzing the main PHP file in "Theme Builder For Elementor" version 1.2.2
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "3.3.0")

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
Everything looks great! No dangerous files found in this plugin4,522 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP276259424,319
CSS100203

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.85
▷ Minimum class complexity2.00
▷ Maximum class complexity29.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods86
▷ Static methods33.49%
▷ Public methods5968.60%
▷ Protected methods2124.42%
▷ Private methods66.98%
Functions52
▷ Named functions52100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin