72% shortcodes-for-buddypress

Code Review | Wbcom Designs – Shortcodes & Elementor Widgets For BuddyPress

WordPress plugin Wbcom Designs – Shortcodes & Elementor Widgets For BuddyPress scored72%from 54 tests.

About plugin

  • Plugin page: shortcodes-for-bu...
  • Plugin version: 2.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2017
  • Latest release: Oct 13, 2023
  • Number of updates: 16
  • Update frequency: every 144.5 days
  • Top authors: wbcomdesigns (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

900+ active /25,506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.47ms] Passed 4 tests

A check of server-side resources used by Wbcom Designs – Shortcodes & Elementor Widgets For BuddyPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.80 ▼3.29
Dashboard /wp-admin3.31 ▼0.0443.70 ▼18.78
Posts /wp-admin/edit.php3.36 ▲0.0046.41 ▲1.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.96 ▼6.88
Media Library /wp-admin/upload.php3.23 ▲0.0034.29 ▼0.93
BP Shortcodes /wp-admin/admin.php?page=shortcodes-for-buddypress3.0121.62
Support /wp-admin/admin.php?page=wbcom-support-page3.0123.36
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page3.0121.60
Our Themes /wp-admin/admin.php?page=wbcom-themes-page3.0121.90
General /wp-admin/admin.php?page=wbcomplugins3.0023.45

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wbcom Designs – Shortcodes & Elementor Widgets For BuddyPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.35 ▲0.001.76 ▼0.0543.14 ▼10.18
Dashboard /wp-admin2,195 ▲185.59 ▼0.1287.69 ▼16.8038.97 ▼5.41
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0539.24 ▲4.6035.26 ▲0.16
Add New Post /wp-admin/post-new.php1,536 ▼122.98 ▲5.02664.92 ▲15.2672.39 ▲9.11
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.0697.36 ▲1.6341.30 ▼1.80
BP Shortcodes /wp-admin/admin.php?page=shortcodes-for-buddypress280.420.124.00
Support /wp-admin/admin.php?page=wbcom-support-page280.420.063.89
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page280.420.103.58
Our Themes /wp-admin/admin.php?page=wbcom-themes-page280.420.063.66
General /wp-admin/admin.php?page=wbcomplugins280.420.063.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/shortcodes-for-buddypress/public/partials/shortcodes-for-buddypress-public-display.php
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/shortcodes-for-buddypress/admin/template/shortcodes-for-buddypress-activity-listing.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/shortcodes-for-buddypress/admin/class-shortcode-for-buddypress-user-review.php:311
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/shortcodes-for-buddypress/admin/template/shortcodes-for-buddypress-groups-listing.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/shortcodes-for-buddypress/admin/template/shortcodes-for-buddypress-notifications-listing.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/shortcodes-for-buddypress/admin/template/shortcodes-for-buddypress-general.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/shortcodes-for-buddypress/templates/nouveau/notifications/notifications-loop.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/shortcodes-for-buddypress/templates/legacy/members/bp-shortcodes-members.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/shortcodes-for-buddypress/admin/wbcom/templates/wbcom-license-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/shortcodes-for-buddypress/templates/legacy/activity/bp-shortcodes-activity.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/shortcodes-for-buddypress/templates/legacy/notifications/notifications-loop.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=shortcodes-for-buddypress
    • > Network (severe)
    wp-admin/admin.php?page=shortcodes-for-buddypress - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wbcom-support-page
    • > Network (severe)
    wp-admin/admin.php?page=wbcom-support-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wbcom-plugins-page
    • > Network (severe)
    wp-admin/admin.php?page=wbcom-plugins-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wbcom-themes-page
    • > Network (severe)
    wp-admin/admin.php?page=wbcom-themes-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wbcomplugins
    • > Network (severe)
    wp-admin/admin.php?page=wbcomplugins - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (It is displaying admin documentation page screenshot-1.png), #2 (It is displaying members listing based on given user id screenshot-2.png), #3 (It is displaying activity listing based on given user id and allow_posting=true screenshot-3.png), #4 (It is displaying groups listing based on given user id screenshot-4.png)
The official readme.txt is a good inspiration

shortcodes-for-buddypress/shortcodes-for-buddypress.php 92% from 13 tests

The main PHP file in "Wbcom Designs – Shortcodes & Elementor Widgets For BuddyPress" ver. 2.6.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 245 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected11,197 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP417881,5426,062
JSON2002,839
CSS3291551,628
JavaScript6161252668

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity20.00
▷ Minimum class complexity1.00
▷ Maximum class complexity177.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods96
▷ Static methods33.12%
▷ Public methods8588.54%
▷ Protected methods66.25%
▷ Private methods55.21%
Functions38
▷ Named functions1231.58%
▷ Anonymous functions2668.42%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/image/bp-shortcode-icon-256x256.png5.27KB2.18KB▼ 58.54%
admin/wbcom/assets/imgs/wbcom-offer-notice.png67.64KB32.40KB▼ 52.11%
admin/wbcom/assets/imgs/logowbcom.png10.12KB3.87KB▼ 61.72%