Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲4.70MB] [CPU: ▲41.86ms] Passed 4 tests
A check of server-side resources used by Beaver Builder - WordPress Page Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.45 ▲4.98 | 81.12 ▲36.51 |
Dashboard /wp-admin | 7.99 ▲4.68 | 83.15 ▲31.53 |
Posts /wp-admin/edit.php | 8.07 ▲4.70 | 102.97 ▲53.51 |
Add New Post /wp-admin/post-new.php | 10.62 ▲4.72 | 140.33 ▲45.90 |
Media Library /wp-admin/upload.php | 7.93 ▲4.70 | 96.66 ▲58.92 |
Beaver Builder /wp-admin/options-general.php?page=fl-builder-settings | 8.03 | 86.52 |
Server storage [IO: ▲23.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 1,085 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Beaver Builder - WordPress Page Builder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲40 | 14.07 ▼0.64 | 1.73 ▲0.01 | 49.58 ▲5.94 |
Dashboard /wp-admin | 2,207 ▲36 | 5.66 ▼0.01 | 97.46 ▼2.39 | 42.63 ▲2.44 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.99 ▲0.04 | 39.58 ▼1.40 | 35.01 ▼5.62 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.15 ▲0.10 | 683.34 ▼19.97 | 51.08 ▼7.54 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.18 ▼0.03 | 93.77 ▼4.43 | 42.77 ▲0.62 |
Beaver Builder /wp-admin/options-general.php?page=fl-builder-settings | 2,524 | 3.56 | 86.75 | 126.94 |
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
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 35× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/beaver-builder-lite-version/includes/ui-field-ordering.php
- > /wp-content/plugins/beaver-builder-lite-version/modules/heading/includes/frontend.php
- > /wp-content/plugins/beaver-builder-lite-version/includes/shapes/triangles.svg.php
- > /wp-content/plugins/beaver-builder-lite-version/includes/shapes/concave.svg.php
- > /wp-content/plugins/beaver-builder-lite-version/includes/ui-field-time.php
- > /wp-content/plugins/beaver-builder-lite-version/includes/shapes/star.svg.php
- > /wp-content/plugins/beaver-builder-lite-version/includes/ui-field-form.php
- > /wp-content/plugins/beaver-builder-lite-version/includes/ui-extras.php
- > /wp-content/plugins/beaver-builder-lite-version/includes/shapes/rect.svg.php
- > /wp-content/plugins/beaver-builder-lite-version/includes/shapes/edge-slant.svg.php
- 439× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/beaver-builder-lite-version/includes/vendor/mailerlite/guzzlehttp/psr7/src/UploadedFile.php:9
- > PHP Notice
Trying to get property 'bg_video_audio' of non-object in wp-content/plugins/beaver-builder-lite-version/includes/row-css.php on line 62
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/beaver-builder-lite-version/includes/vendor/mailerlite/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/beaver-builder-lite-version/includes/vendor/mailerlite/guzzlehttp/psr7/src/Request.php:12
- > PHP Fatal error
Uncaught Error: Class 'Http\\Message\\Encoding\\FilteredStream' not found in wp-content/plugins/beaver-builder-lite-version/includes/vendor/mailerlite/php-http/message/src/Encoding/DeflateStream.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/beaver-builder-lite-version/includes/ui-field-typography.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-revisions.php:17
- > PHP Fatal error
Uncaught Error: Class 'FLBuilderService' not found in wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-service-getresponse.php:8
- > PHP Fatal error
Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/beaver-builder-lite-version/modules/html/html.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/beaver-builder-lite-version/includes/vendor/mailjet/guzzlehttp/psr7/src/PumpStream.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: beaver builder, landing page, drag and drop editor, page builder, front-end builder
beaver-builder-lite-version/fl-builder.php 85% from 13 tests
The entry point to "Beaver Builder - WordPress Page Builder" version 2.7.3.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("beaver-builder-lite-version.php" instead of "fl-builder.php")
- 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
Code Analysis 95% from 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
Everything looks great! No dangerous files found in this plugin181,341 lines of code in 923 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 648 | 16,328 | 36,087 | 76,116 |
JavaScript | 111 | 15,202 | 23,757 | 64,863 |
CSS | 90 | 1,006 | 604 | 14,523 |
JSON | 12 | 0 | 0 | 12,603 |
SVG | 41 | 0 | 0 | 9,643 |
Markdown | 15 | 1,121 | 0 | 3,476 |
Pascal | 1 | 30 | 120 | 64 |
YAML | 2 | 0 | 0 | 19 |
XML | 1 | 1 | 3 | 15 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,493)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 198)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 21.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,493.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 198.00 |
Code structure | ||
---|---|---|
Namespaces | 58 | |
Interfaces | 43 | |
Traits | 8 | |
Classes | 493 | |
▷ Abstract classes | 8 | 1.62% |
▷ Concrete classes | 485 | 98.38% |
▷ Final classes | 134 | 27.63% |
Methods | 4,538 | |
▷ Static methods | 1,274 | 28.07% |
▷ Public methods | 3,663 | 80.72% |
▷ Protected methods | 400 | 8.81% |
▷ Private methods | 475 | 10.47% |
Functions | 328 | |
▷ Named functions | 169 | 51.52% |
▷ Anonymous functions | 159 | 48.48% |
Constants | 411 | |
▷ Global constants | 112 | 27.25% |
▷ Class constants | 299 | 72.75% |
▷ Public constants | 299 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
23 PNG files occupy 0.36MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/beaver-256.png | 38.64KB | 15.99KB | ▼ 58.62% |
img/sprite.png | 2.75KB | 2.02KB | ▼ 26.46% |
img/spacer.png | 0.11KB | 0.09KB | ▼ 13.64% |
img/beaver.png | 8.31KB | 4.25KB | ▼ 48.78% |
img/shape-bottom_left.png | 19.67KB | 8.08KB | ▼ 58.93% |