84% fx-builder

Code Review | f(x) Builder

WordPress plugin f(x) Builder scored84%from 54 tests.

About plugin

  • Plugin page: fx-builder
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 6.3.1
  • First release: Sep 24, 2016
  • Latest release: Aug 13, 2017
  • Number of updates: 17
  • Update frequency: every 19.0 days
  • Top authors: turtlepod (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /2,979 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼20.96ms] Passed 4 tests

A check of server-side resources used by f(x) Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.16 ▼8.73
Dashboard /wp-admin3.35 ▲0.0546.03 ▼16.18
Posts /wp-admin/edit.php3.40 ▲0.0550.25 ▼13.37
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.63 ▼45.57
Media Library /wp-admin/upload.php3.28 ▲0.0543.57 ▲3.69
Page Builder /wp-admin/options-general.php?page=fx-builder3.2436.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
fx-builder_welcome
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for f(x) Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲2414.24 ▼0.242.06 ▼0.3643.87 ▼11.67
Dashboard /wp-admin2,217 ▲405.63 ▼0.0189.41 ▼14.7351.70 ▲6.30
Posts /wp-admin/edit.php2,123 ▲202.03 ▲0.0538.60 ▼7.7633.04 ▼7.69
Add New Post /wp-admin/post-new.php1,542 ▲1423.68 ▲2.73709.84 ▼37.1963.42 ▲8.64
Media Library /wp-admin/upload.php1,419 ▲194.18 ▼0.03111.79 ▼4.8647.41 ▲0.13
Page Builder /wp-admin/options-general.php?page=fx-builder8472.0328.1732.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fx_builder\\builder\\esc_attr() in wp-content/plugins/fx-builder/includes/builder/templates/tmpl-row.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fx_builder\\builder\\_e() in wp-content/plugins/fx-builder/includes/builder/templates/tmpl-item.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: drag and drop, page builder, beta

fx-builder/fx-builder.php Passed 13 tests

The main file in "f(x) Builder" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
75 characters long description:
A simple page builder plugin. The one you can actually use. (Alpha Version)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,729 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP203734891,352
CSS63574781
JavaScript7199320583
Markdown14013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.75
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods67
▷ Static methods2537.31%
▷ Public methods67100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.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
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/builder/assets/layout-images/layout-14_14_14_14.png1.21KB0.13KB▼ 89.47%
includes/builder/assets/layout-images/layout-13_23.png1.21KB0.12KB▼ 89.87%
includes/builder/assets/layout-images/layout-23_13.png1.21KB0.12KB▼ 90.00%
includes/builder/assets/layout-images/layout-12_12.png1.21KB0.12KB▼ 89.93%
includes/builder/assets/layout-images/layout-13_13_13.png1.21KB0.13KB▼ 89.68%