84% site-builder-for-elementor

Code Review | Site Builder for Elementor

WordPress plugin Site Builder for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: site-builder-for-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4
  • WordPress version: 6.3.1
  • First release: Apr 28, 2020
  • Latest release: Apr 28, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wplabdotorg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /606 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.03MB] [CPU: ▼8.62ms] Passed 4 tests

An overview of server-side resources used by Site Builder for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.02 ▼0.4420.58 ▼18.99
Dashboard /wp-admin3.41 ▲0.1146.62 ▼7.07
Posts /wp-admin/edit.php3.53 ▲0.1744.04 ▼3.75
Add New Post /wp-admin/post-new.php6.00 ▲0.1287.83 ▼4.67
Media Library /wp-admin/upload.php3.34 ▲0.1135.76 ▼1.70

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Site Builder for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,445 ▼31614.68 ▲0.330.59 ▼0.9916.30 ▼22.72
Dashboard /wp-admin2,195 ▲185.62 ▼0.0284.35 ▼6.9239.49 ▼1.76
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0435.10 ▼6.7330.30 ▼9.15
Add New Post /wp-admin/post-new.php1,534 ▲823.47 ▲0.00645.24 ▼38.5967.00 ▼3.73
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0299.40 ▼10.1744.78 ▼3.33

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Plugin' not found in wp-content/plugins/site-builder-for-elementor/src/Templates/BlankPage.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementorSiteBuilder\\add_action() in wp-content/plugins/site-builder-for-elementor/site-builder-for-elementor.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Modules\\Library\\Documents\\Library_Document' not found in wp-content/plugins/site-builder-for-elementor/src/Documents/SiteHeader.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Modules\\Library\\Documents\\Library_Document' not found in wp-content/plugins/site-builder-for-elementor/src/Documents/SiteFooter.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/site-builder-for-elementor/src/Templates/SiteFooter.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/site-builder-for-elementor/src/Templates/SiteHeader.php:7

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: footer-builder, gutenberg, header-builder, template, mega-menu...

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

The primary PHP file in "Site Builder for Elementor" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected780 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8128209778
JavaScript1001
Markdown1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity21.40
▷ Minimum class complexity5.00
▷ Maximum class complexity64.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes5100.00%
Methods37
▷ Static methods410.81%
▷ Public methods2464.86%
▷ Protected methods25.41%
▷ Private methods1129.73%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin