Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.96MB] [CPU: ▲3.23ms] Passed 4 tests
Server-side resources used by Page Builder Sandwich – Front End WordPress Page Builder Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.21 ▲1.75 | 53.60 ▲11.39 |
Dashboard /wp-admin | 4.10 ▲0.80 | 49.52 ▼2.48 |
Posts /wp-admin/edit.php | 4.16 ▲0.80 | 53.42 ▲13.25 |
Add New Post /wp-admin/post-new.php | 7.33 ▲1.44 | 101.33 ▼2.57 |
Media Library /wp-admin/upload.php | 4.03 ▲0.80 | 42.39 ▲6.56 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 4.35 | 36.34 |
Server storage [IO: ▲11.69MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 549 new files
Database: no new tables, 12 new options
New WordPress options |
---|
fs_gdpr |
fs_active_plugins |
pbs_install_date |
fs_accounts |
fs_debug_mode |
pbs_no_migration_notice |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Page Builder Sandwich – Front End WordPress Page Builder Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲184 | 13.32 ▼0.97 | 4.84 ▲3.11 | 32.45 ▼13.10 |
Dashboard /wp-admin | 2,285 ▲93 | 5.93 ▲1.02 | 99.11 ▼15.98 | 81.97 ▲42.16 |
Posts /wp-admin/edit.php | 2,223 ▲134 | 2.19 ▲0.19 | 38.05 ▼0.04 | 37.69 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,605 ▲77 | 24.50 ▲6.62 | 733.10 ▲114.02 | 53.75 ▲0.93 |
Media Library /wp-admin/upload.php | 1,461 ▲73 | 4.22 ▲0.04 | 98.30 ▼0.90 | 73.60 ▲30.96 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,094 | 1.74 | 25.22 | 27.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/page-builder-sandwich/freemius/includes/fs-essential-functions.php+378
Invalid argument supplied for foreach()
- This plugin does not fully uninstall, leaving 10 options in the database
- fs_active_plugins
- fs_accounts
- widget_recent-posts
- fs_gdpr
- can_compress_scripts
- fs_debug_mode
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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 50% 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/page-builder-sandwich/module-migration.php:450
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
10 plugin tags: wysiwyg builder, visual builder, website builder, site builder, homepage builder...
page-builder-sandwich/class-plugin.php 85% from 13 tests
The entry point to "Page Builder Sandwich – Front End WordPress Page Builder Plugin" version 5.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("page-builder-sandwich.php" instead of "class-plugin.php")
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected100,774 lines of code in 349 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 193 | 9,675 | 20,152 | 40,955 |
JavaScript | 35 | 8,006 | 13,584 | 29,273 |
CSS | 50 | 3,128 | 321 | 15,165 |
PO File | 11 | 5,675 | 6,421 | 12,608 |
SVG | 57 | 2 | 55 | 2,530 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
Sass | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 61.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 2 | 2.33% |
▷ Concrete classes | 84 | 97.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,547 | |
▷ Static methods | 201 | 12.99% |
▷ Public methods | 1,147 | 74.14% |
▷ Protected methods | 32 | 2.07% |
▷ Private methods | 368 | 23.79% |
Functions | 109 | |
▷ Named functions | 109 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 181 | |
▷ Global constants | 131 | 72.38% |
▷ Class constants | 50 | 27.62% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
page_builder_sandwich/images/pbs-logo.png | 31.89KB | 17.05KB | ▼ 46.52% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
page_builder_sandwich/images/shortcode-icon.png | 5.82KB | 3.59KB | ▼ 38.28% |
page_builder_sandwich/assets/element-icons/dashes.png | 0.31KB | 0.14KB | ▼ 53.04% |