84% xpro-theme-builder

Code Review | Best Theme Builder For Elementor - FREE

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

About plugin

  • Plugin page: xpro-theme-builder
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 25, 2022
  • Latest release: Nov 17, 2023
  • Number of updates: 59
  • Update frequency: every 9.7 days
  • Top authors: xpro (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /27,340 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.02MB] [CPU: ▼4.72ms] Passed 4 tests

A check of server-side resources used by Best Theme Builder For Elementor - FREE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.08 ▼5.46
Dashboard /wp-admin3.32 ▲0.0244.65 ▼7.20
Posts /wp-admin/edit.php3.37 ▲0.0247.01 ▲1.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.54 ▼4.09
Media Library /wp-admin/upload.php3.25 ▲0.0132.26 ▼2.13

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 93 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Best Theme Builder For Elementor - FREE: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.54 ▼0.231.72 ▲0.0444.59 ▲0.89
Dashboard /wp-admin2,198 ▲245.61 ▼0.0693.70 ▼5.5242.66 ▼3.50
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0239.52 ▼0.1439.89 ▲7.08
Add New Post /wp-admin/post-new.php1,528 ▲223.37 ▲0.22627.93 ▼29.7249.55 ▼11.80
Media Library /wp-admin/upload.php1,400 ▲64.21 ▲0.0993.64 ▼8.3641.92 ▼0.81

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Xpro_Theme_Builder\\Lib\\plugins_url() in wp-content/plugins/xpro-theme-builder/lib/target-rule/class-xpro-target-rules-fields.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xpro-theme-builder/themes/class-astra-compatibility.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xpro-theme-builder/themes/class-default-compatibility.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xpro-theme-builder/themes/class-generatepress-compatibility.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/xpro-theme-builder/xpro-theme-builder.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xpro-theme-builder/themes/class-xpro-compatibility.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template() in wp-content/plugins/xpro-theme-builder/plugin.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/xpro-theme-builder/inc/templates/header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xpro-theme-builder/themes/class-oceanwp-compatibility.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xpro-theme-builder/themes/class-megaone-compatibility.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid plugin version format
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in xpro-theme-builder/assets to your readme.txt
You can look at the official readme.txt

xpro-theme-builder/xpro-theme-builder.php Passed 13 tests

The primary PHP file in "Best Theme Builder For Elementor - FREE" version 1.2.6 is used by WordPress to initiate all plugin functionality
140 characters long description:
Free Theme Builder for Elementor with 50+ widgets. Now create theme parts like header, footer, singular, archive, woocommerce stores & more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,473 lines of code in 89 files:
LanguageFilesBlank linesComment linesLines of code
PHP208918873,404
JavaScript62545562
CSS5005
Markdown1001
SVG1001

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.47
Average class complexity42.14
▷ Minimum class complexity5.00
▷ Maximum class complexity231.00
Average method complexity5.15
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes214.29%
Methods137
▷ Static methods5036.50%
▷ Public methods13497.81%
▷ Protected methods10.73%
▷ Private methods21.46%
Functions17
▷ Named functions1270.59%
▷ Anonymous functions529.41%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin