61% front-profile-builder

Code Review | Front Profile Builder

WordPress plugin Front Profile Builder scored61%from 54 tests.

About plugin

  • Plugin page: front-profile-bui...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 21, 2016
  • Latest release: May 21, 2016
  • Number of updates: 6
  • Update frequency: every 82.2 days
  • Top authors: upscalethought (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,891 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.84MB] [CPU: ▼26.37ms] Passed 4 tests

Analyzing server-side resources used by Front Profile Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1247.38 ▲8.90
Dashboard /wp-admin3.11 ▼0.2034.65 ▼19.04
Posts /wp-admin/edit.php3.11 ▼0.2529.83 ▼22.42
Add New Post /wp-admin/post-new.php3.11 ▼2.7831.26 ▼58.96
Media Library /wp-admin/upload.php3.11 ▼0.1227.85 ▼5.04
Front Profile Builder /wp-admin/admin.php?page=custom_profilebuilder3.1130.10
Profile Builder Pro /wp-admin/admin.php?page=profile-builder-pro-menu3.1132.10

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options
db_upgraded
passwordreset-form
passwordlost-form
editprofile-form
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
registration-form
login-form
...

Browser metrics Passed 4 tests

A check of browser resources used by Front Profile Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.35 ▼0.011.90 ▲0.1843.33 ▼1.25
Dashboard /wp-admin2,221 ▲415.60 ▼0.0689.53 ▼12.7542.18 ▼0.64
Posts /wp-admin/edit.php2,120 ▲232.02 ▲0.0137.51 ▼0.6135.80 ▼0.40
Add New Post /wp-admin/post-new.php1,545 ▲1723.11 ▼0.06675.64 ▲38.2355.20 ▲3.41
Media Library /wp-admin/upload.php1,426 ▲234.18 ▼0.00101.14 ▲2.3441.27 ▼1.78
Front Profile Builder /wp-admin/admin.php?page=custom_profilebuilder7812.0224.9228.07
Profile Builder Pro /wp-admin/admin.php?page=profile-builder-pro-menu8681.9923.1530.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • registration-form
    • db_upgraded
    • theysaidso_admin_options
    • login-form
    • editprofile-form
    • can_compress_scripts
    • passwordlost-form
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=profile-builder-pro-menu
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.

SRP 0% 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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/front-profile-builder/includes/frontprofile_builder_pro.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/front-profile-builder/includes/frontend_edit_user_profile.php:184
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/front-profile-builder/gen-frontprofile-builder.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/front-profile-builder/includes/password_lost.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/front-profile-builder/includes/password_reset.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/front-profile-builder/includes/front-end-registration-login.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Login- Front end Custom login), #2 (Register - Edit profile), #3 (Lost password), #4 (Reset Password)
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

front-profile-builder/gen-frontprofile-builder.php 85% from 13 tests

The main PHP script in "Front Profile Builder" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • 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
  • Main file name: Name the main plugin file the same as the plugin slug ("front-profile-builder.php" instead of "gen-frontprofile-builder.php")

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 detected683 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8107182683

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png9.91KB4.47KB▼ 54.89%
screenshot-1.png10.50KB4.20KB▼ 60.02%
screenshot-2.png13.11KB4.64KB▼ 64.63%
screenshot-4.png10.93KB5.54KB▼ 49.29%