10% front-page-builder

Code Review | Front Page Builder

WordPress plugin Front Page Builder scored10%from 54 tests.

About plugin

  • Plugin page: front-page-builder
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 23, 2018
  • Latest release: Jun 6, 2018
  • Number of updates: 6
  • Update frequency: every 12.5 days
  • Top authors: themes4wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,370 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9625.03 ▼17.49
Dashboard /wp-admin4.45 ▲1.1027.69 ▼36.86
Posts /wp-admin/edit.php4.45 ▲1.0929.80 ▼19.07
Add New Post /wp-admin/post-new.php4.45 ▼1.4527.52 ▼75.20
Media Library /wp-admin/upload.php4.45 ▲1.2232.08 ▼4.68
Backup Front Page Builder Options /wp-admin/tools.php?page=fpb-backup-options4.4527.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,560 ▲81413.82 ▼0.5330.87 ▲29.12172.56 ▲128.61
Dashboard /wp-admin2,199 ▲255.58 ▼0.0892.12 ▼7.3038.25 ▼7.37
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0041.06 ▲2.9435.35 ▼1.86
Add New Post /wp-admin/post-new.php1,530 ▲422.26 ▼1.41672.89 ▼2.3268.54 ▲18.98
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.1196.19 ▼6.1248.25 ▲6.35
Backup Front Page Builder Options /wp-admin/tools.php?page=fpb-backup-options8451.9923.5132.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript934,3162,70316,401
CSS146749814,951
PHP1731,9437,34010,728
JSON4008,318
SVG3002,810
Sass212175
YAML17027

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 code0.47
Average class complexity10.15
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes137
▷ Abstract classes00.00%
▷ Concrete classes137100.00%
▷ Final classes96.57%
Methods474
▷ Static methods10121.31%
▷ Public methods25353.38%
▷ Protected methods19841.77%
▷ Private methods234.85%
Functions39
▷ Named functions1538.46%
▷ Anonymous functions2461.54%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
include/framework/assets/images/2cr.png0.85KB0.27KB▼ 68.58%
img/pattern/bg_1.png0.20KB0.10KB▼ 49.28%
img/pattern/none.png3.06KB0.31KB▼ 89.97%
img/pattern/bg_6.png2.79KB0.10KB▼ 96.29%
img/pattern/bg_3.png0.21KB0.12KB▼ 46.12%