73% wp-front-end-profile

Code Review | WP Frontend Profile

WordPress plugin WP Frontend Profile scored73%from 54 tests.

About plugin

  • Plugin page: wp-front-end-profile
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.2.17+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2014
  • Latest release: Oct 13, 2023
  • Number of updates: 27
  • Update frequency: every 119.7 days
  • Top authors: glowlogix (70.37%)wpmarkuk (33.33%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /16,422 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲5.66MB] [CPU: ▲32.99ms] 75% from 4 tests

A check of server-side resources used by WP Frontend Profile
It is recommended to improve the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.66MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.48 ▲6.0162.37 ▲20.36
Dashboard /wp-admin9.53 ▲6.2378.90 ▲33.64
Posts /wp-admin/edit.php9.53 ▲6.1888.27 ▲42.05
Add New Post /wp-admin/post-new.php10.10 ▲4.21118.57 ▲37.54
Media Library /wp-admin/upload.php9.53 ▲6.3073.63 ▲40.43
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius9.5365.94

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 285 new files
Database: no new tables, 15 new options
New WordPress options
wpfep_emails_notification
wpfep_profile
fs_debug_mode
db_upgraded
wpfep_pages
fs_accounts
fs_active_plugins
widget_recent-posts
widget_wpfep-login-widget
wpfep_Install_Time
...

Browser metrics Passed 4 tests

Checking browser requirements for WP Frontend Profile
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,102 ▲34115.08 ▲0.475.53 ▲3.9027.93 ▼11.75
Dashboard /wp-admin2,400 ▲2296.44 ▲0.86124.13 ▲35.8946.25 ▲3.28
Posts /wp-admin/edit.php2,332 ▲2323.79 ▲1.8256.65 ▲18.7432.65 ▼3.51
Add New Post /wp-admin/post-new.php1,574 ▲4823.12 ▼0.37644.23 ▼47.3436.54 ▼29.24
Media Library /wp-admin/upload.php1,471 ▲774.41 ▲0.2281.06 ▼16.4046.04 ▲3.19
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,2983.4244.0828.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/wp-front-end-profile/uninstall.php+21
    Illegal string offset 'wpfep_remove_data_on_uninstall'
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • wpfep_pages
    • db_upgraded
    • fs_accounts
    • fs_debug_mode
    • fs_active_plugins
    • widget_wpfep-login-widget
    • wpfep_emails_notification
    • wpfep_profile
    • 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
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-front-end-profile/inc/class-wpfep-login-widget.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpfep_get_option() in wp-content/plugins/wp-front-end-profile/inc/class-wpfep-roles-editor.php:1421

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: profile, register, users, user meta, login

wp-front-end-profile/wp-frontend-profile.php 85% from 13 tests

Analyzing the main PHP file in "WP Frontend Profile" version 1.3.1
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-front-end-profile.php" instead of "wp-frontend-profile.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin64,428 lines of code in 229 files:
LanguageFilesBlank linesComment linesLines of code
PHP1498,99319,06840,013
PO File168,91810,77519,393
Sass34465802,862
JavaScript10221147979
CSS175915865
Markdown1580281
YAML10019
XML13016

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity81.66
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes62
▷ Abstract classes23.23%
▷ Concrete classes6096.77%
▷ Final classes00.00%
Methods1,434
▷ Static methods21815.20%
▷ Public methods1,04472.80%
▷ Protected methods171.19%
▷ Private methods37326.01%
Functions139
▷ Named functions13899.28%
▷ Anonymous functions10.72%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/icon/WP-front-end-color-icon.png1.64KB1.70KB0.00%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/icon/no_thumb.png16.92KB1.58KB▼ 90.65%
freemius/assets/img/wp-front-end-profile.png18.47KB5.29KB▼ 71.35%