62% wp-profile-builder

Code Review | WP Profile Builder

WordPress plugin WP Profile Builder scored 62% from 54 tests.

About plugin

  • Plugin page: wp-profile-builder
  • Plugin version: 0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 5.8.1
  • First release: May 10, 2017
  • Latest release: Mar 7, 2021
  • Number of updates: 46
  • Update frequency: every 30.4 days
  • Top authors: asaquzzaman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 3,570 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.42MB] [CPU: ▼187.26ms] Passed 4 tests

Analyzing server-side resources used by WP Profile Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.22 ▲0.5041.29 ▲22.99
Dashboard /wp-admin3.23 ▲0.1728.67 ▼82.91
Posts /wp-admin/edit.php3.23 ▲0.1125.90 ▼27.38
Add New Post /wp-admin/post-new.php3.23 ▼2.2027.76 ▼622.57
Media Library /wp-admin/upload.php3.23 ▲0.2321.01 ▼16.19
Settings /wp-admin/admin.php?page=wpup-settings3.2327.37

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 181 new files
Database: no new tables, 2 new options
New WordPress options
wpup_members_page_id
wpup_my_profile_page_id

Browser metrics Passed 4 tests

A check of browser resources used by WP Profile Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,733 ▲9615.79 ▲0.308.15 ▼0.2750.89 ▲2.59
Dashboard /wp-admin3,019 ▲856.10 ▼0.02144.72 ▼15.25118.59 ▼2.44
Posts /wp-admin/edit.php2,785 ▲462.69 ▲0.0074.32 ▲8.0891.03 ▼7.55
Add New Post /wp-admin/post-new.php1,527 ▼7718.88 ▲0.01381.63 ▼11.09115.95 ▲1.29
Media Library /wp-admin/upload.php1,853 ▲465.00 ▼0.01153.99 ▼4.32126.06 ▼2.04
Settings /wp-admin/admin.php?page=wpup-settings1,1582.0558.7495.90
Build Profile /wp-admin/admin.php?page=wpup-profile-builder#/1,7696.29133.46100.92
Users /wp-admin/admin.php?page=wpup-profile-builder#/users1,4135.82119.1774.75
My Profile /wp-admin/admin.php?page=wpup-profile-builder#/my-profile1,5635.69119.5875.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 2 options
    • wpup_my_profile_page_id
    • wpup_members_page_id

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=wpup-settings
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-profile-builder/templates/members/pagination.php
    • > /wp-content/plugins/wp-profile-builder/templates/members/members.php
  • 45× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-profile-builder/i18n/states/BG.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/wp-profile-builder/i18n/locale-info.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-profile-builder/templates/members/view-individual-user-profile.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-profile-builder/assets/js/components/url-field/url-field.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-profile-builder/i18n/states/JP.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-profile-builder/templates/my-profile/my-profile.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-profile-builder/assets/js/components/text-field/text-field.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-profile-builder/i18n/states/TR.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-profile-builder/i18n/states/ES.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-profile-builder/assets/js/components/profile-header/profile-header.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: user custom field, profile, user profile, wordpress profile, wordpress profile builder...

wp-profile-builder/wpup.php 77% from 13 tests

The primary PHP file in "WP Profile Builder" version 0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "4.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-profile-builder.php" instead of "wpup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected24,510 lines of code in 122 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript362,9563,32616,520
PHP747641,4015,222
CSS745601,508
SVG302660
JSON100599
HTML1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.83
▷ Minimum class complexity1.00
▷ Maximum class complexity122.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes14.35%
▷ Concrete classes2295.65%
▷ Final classes14.55%
Methods105
▷ Static methods6158.10%
▷ Public methods9792.38%
▷ Protected methods00.00%
▷ Private methods87.62%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
37 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/prettyPhoto/prettyPhoto/light_rounded/btnPrevious.png1.41KB1.19KB▼ 15.74%
assets/css/images/prettyPhoto/prettyPhoto/facebook/btnNext.png0.83KB0.57KB▼ 30.77%
assets/css/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
assets/css/images/prettyPhoto/prettyPhoto/facebook/contentPatternBottom.png0.14KB0.11KB▼ 21.13%
assets/css/images/prettyPhoto/prettyPhoto/dark_square/contentPattern.png0.12KB0.09KB▼ 20.66%