Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/front-page-builder/include/backup.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; fpb_backup_restore_options has a deprecated constructor
Server metrics [RAM: ▲0.43MB] [CPU: ▼37.16ms] Passed 4 tests
Server-side resources used by Front Page Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.43 ▲0.96 | 25.03 ▼17.49 |
Dashboard /wp-admin | 4.45 ▲1.10 | 27.69 ▼36.86 |
Posts /wp-admin/edit.php | 4.45 ▲1.09 | 29.80 ▼19.07 |
Add New Post /wp-admin/post-new.php | 4.45 ▼1.45 | 27.52 ▼75.20 |
Media Library /wp-admin/upload.php | 4.45 ▲1.22 | 32.08 ▼4.68 |
Backup Front Page Builder Options /wp-admin/tools.php?page=fpb-backup-options | 4.45 | 27.04 |
Server storage [IO: ▲4.81MB] [DB: ▲0.14MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 332 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Front Page Builder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,560 ▲814 | 13.82 ▼0.53 | 30.87 ▲29.12 | 172.56 ▲128.61 |
Dashboard /wp-admin | 2,199 ▲25 | 5.58 ▼0.08 | 92.12 ▼7.30 | 38.25 ▼7.37 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.00 | 41.06 ▲2.94 | 35.35 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 22.26 ▼1.41 | 672.89 ▼2.32 | 68.54 ▲18.98 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.11 | 96.19 ▼6.12 | 48.25 ▲6.35 |
Backup Front Page Builder Options /wp-admin/tools.php?page=fpb-backup-options | 845 | 1.99 | 23.51 | 32.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.14MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/front-page-builder/include/backup.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; fpb_backup_restore_options has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/tools.php?page=fpb-backup-options
- > Deprecated in wp-content/plugins/front-page-builder/include/backup.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; fpb_backup_restore_options has a deprecated constructor
SRP 0% 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
Please fix the following items
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/front-page-builder/include/framework/controls/views/textarea.php
- > /wp-content/plugins/front-page-builder/include/framework/controls/views/code.php
- > /wp-content/plugins/front-page-builder/include/framework/controls/views/generic.php
- > /wp-content/plugins/front-page-builder/include/framework/core/dynamic-css.php
- > /wp-content/plugins/front-page-builder/front-page-builder.php
- > /wp-content/plugins/front-page-builder/include/framework/modules/webfonts/class-kirki-fonts-google-local.php
- > /wp-content/plugins/front-page-builder/include/framework/controls/views/number.php
- > /wp-content/plugins/front-page-builder/include/framework/controls/views/radio.php
- > /wp-content/plugins/front-page-builder/include/framework/controls/views/select.php
- > /wp-content/plugins/front-page-builder/include/framework/controls/views/color.php
- 88× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Kirki' not found in wp-content/plugins/front-page-builder/include/options/bg-image-options.php:6
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field_Radio' not found in wp-content/plugins/front-page-builder/include/framework/field/class-kirki-field-palette.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function fpb_get_option() in wp-content/plugins/front-page-builder/templates/homepage-bg_image_section.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/front-page-builder/template-builder.php:120
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/front-page-builder/include/framework/field/class-kirki-field-radio.php:15
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field_Select' not found in wp-content/plugins/front-page-builder/include/framework/field/class-kirki-field-preset.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Upload_Control' not found in wp-content/plugins/front-page-builder/include/framework/controls/php/class-kirki-control-upload.php:15
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/front-page-builder/include/framework/field/class-kirki-field-color.php:15
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/front-page-builder/include/framework/field/class-kirki-field-checkbox.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/front-page-builder/include/backup.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: builder, front page, home page
front-page-builder/front-page-builder.php Passed 13 tests
Analyzing the main PHP file in "Front Page Builder" version 1.0.2
61 characters long description:
Easily build beautiful home page. Easy to use with any theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin53,310 lines of code in 290 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 93 | 4,316 | 2,703 | 16,401 |
CSS | 14 | 674 | 98 | 14,951 |
PHP | 173 | 1,943 | 7,340 | 10,728 |
JSON | 4 | 0 | 0 | 8,318 |
SVG | 3 | 0 | 0 | 2,810 |
Sass | 2 | 12 | 1 | 75 |
YAML | 1 | 7 | 0 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 10.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 137 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 137 | 100.00% |
▷ Final classes | 9 | 6.57% |
Methods | 474 | |
▷ Static methods | 101 | 21.31% |
▷ Public methods | 253 | 53.38% |
▷ Protected methods | 198 | 41.77% |
▷ Private methods | 23 | 4.85% |
Functions | 39 | |
▷ Named functions | 15 | 38.46% |
▷ Anonymous functions | 24 | 61.54% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/framework/assets/images/2cr.png | 0.85KB | 0.27KB | ▼ 68.58% |
img/pattern/bg_1.png | 0.20KB | 0.10KB | ▼ 49.28% |
img/pattern/none.png | 3.06KB | 0.31KB | ▼ 89.97% |
img/pattern/bg_6.png | 2.79KB | 0.10KB | ▼ 96.29% |
img/pattern/bg_3.png | 0.21KB | 0.12KB | ▼ 46.12% |