68% bp-profile-widgets

Code Review | BP Profile Widgets

WordPress plugin BP Profile Widgets scored 68% from 54 tests.

About plugin

  • Plugin page: bp-profile-widgets
  • Plugin version: 0.5.3
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Jun 27, 2013
  • Latest release: Feb 4, 2014
  • Number of updates: 34
  • Update frequency: every 6.5 days
  • Top authors: slushman (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

60+ active / 11,862 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.55MB] [CPU: ▼318.41ms] Passed 4 tests

Analyzing server-side resources used by BP Profile Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.6956.95 ▲2.50
Dashboard /wp-admin3.79 ▲0.3820.85 ▼11.50
Posts /wp-admin/edit.php3.79 ▲0.1421.13 ▼14.81
Add New Post /wp-admin/post-new.php3.79 ▼3.1920.61 ▼1,243.33
Media Library /wp-admin/upload.php3.79 ▲0.4919.41 ▼3.98
BP Profile Widgets /wp-admin/options-general.php?page=slushman_bppw_settings3.7920.47

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options
slushman_bppw_settings

Browser metrics Passed 4 tests

A check of browser resources used by BP Profile Widgets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲6815.90 ▲0.265.65 ▼0.412.67 ▲0.49
Dashboard /wp-admin2,897 ▲436.10 ▼0.11117.51 ▼17.83157.55 ▼3.74
Posts /wp-admin/edit.php2,696 ▲23.24 ▲0.0264.73 ▼0.03145.45 ▲3.99
Add New Post /wp-admin/post-new.php1,664 ▲316.57 ▼4.59420.65 ▲1.36168.28 ▲14.77
Media Library /wp-admin/upload.php1,706 ▲55.52 ▲0.02142.05 ▲10.25189.97 ▲0.41
BP Profile Widgets /wp-admin/options-general.php?page=slushman_bppw_settings1,2032.3752.55132.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/bp-profile-widgets/bp-profile-widgets.php+185
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 1 option
    • slushman_bppw_settings

Smoke tests 50% 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/options-general.php?page=slushman_bppw_settings
    • > Deprecated in wp-content/plugins/bp-profile-widgets/bp-profile-widgets.php+185
    Function create_function() is deprecated

SRP 50% 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 take a closer look at the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bp-profile-widgets/inc/bp-profile-music-player-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bp-profile-widgets/inc/bp-profile-photo-gallery-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bp-profile-widgets/inc/bp-profile-rss-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bp-profile-widgets/inc/bp-profile-text-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bp-profile-widgets/inc/bp-profile-video-player-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bp-profile-widgets/bp-profile-widgets.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-profile-widgets/inc/config.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 39 tag instead of maximum 10
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

bp-profile-widgets/bp-profile-widgets.php 92% from 13 tests

"BP Profile Widgets" version 0.5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 314 characters long)

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
Everything looks great! No dangerous files found in this plugin1,846 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP91,3561,4151,846

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity53.11
▷ Minimum class complexity3.00
▷ Maximum class complexity122.00
Average method complexity5.84
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods97
▷ Static methods00.00%
▷ Public methods97100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png2.67KB1.78KB▼ 33.35%