83% vibe-buddypress-woocommerce

Code Review | Vibe BuddyPress WooCommerce

WordPress plugin Vibe BuddyPress WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: vibe-buddypress-w...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.8, BuddyPress 1.9-5.8.2
  • WordPress version: 6.3.1
  • First release: Mar 8, 2019
  • Latest release: Dec 15, 2021
  • Number of updates: 4
  • Update frequency: every 259.5 days
  • Top authors: VibeThemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,238 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.05ms] Passed 4 tests

An overview of server-side resources used by Vibe BuddyPress WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.74 ▲0.23
Dashboard /wp-admin3.37 ▲0.0648.12 ▼5.22
Posts /wp-admin/edit.php3.42 ▲0.0649.93 ▼1.56
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.09 ▼13.66
Media Library /wp-admin/upload.php3.29 ▲0.0639.67 ▲5.16
Vibe Bp Woo Sync /wp-admin/options-general.php?page=vibe-bp-woo-sync3.2332.95

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Vibe BuddyPress WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.401.55 ▲0.0540.61 ▼5.70
Dashboard /wp-admin2,193 ▲165.54 ▼0.1091.82 ▼1.9040.59 ▲1.62
Posts /wp-admin/edit.php2,104 ▲42.16 ▲0.1638.12 ▼0.4033.78 ▼1.39
Add New Post /wp-admin/post-new.php1,529 ▲123.15 ▲0.12691.23 ▲63.7645.75 ▼15.00
Media Library /wp-admin/upload.php1,407 ▲44.23 ▲0.06109.64 ▲4.0345.84 ▼0.39
Vibe Bp Woo Sync /wp-admin/options-general.php?page=vibe-bp-woo-sync9122.0227.0429.72

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=vibe-bp-woo-sync
    • > Notice in wp-content/plugins/vibe-buddypress-woocommerce/includes/class.settings.php+66
    Trying to get property 'profile' of non-object
    • > GET request to /wp-admin/options-general.php?page=vibe-bp-woo-sync
    • > Notice in wp-content/plugins/vibe-buddypress-woocommerce/includes/class.settings.php+66
    Trying to get property 'table_name_fields' of non-object
    • > GET request to /wp-admin/options-general.php?page=vibe-bp-woo-sync
    • > Notice in wp-content/plugins/vibe-buddypress-woocommerce/includes/class.settings.php+100
    Trying to access array offset on value of type bool

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (BP WOO Sync Setting.) image missing
Please take inspiration from this readme.txt

vibe-buddypress-woocommerce/loader.php 77% from 13 tests

The main PHP script in "Vibe BuddyPress WooCommerce" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 3.8, BuddyPress 1.9")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vibe-buddypress-woocommerce.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected258 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35532244
JavaScript14013
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.50
▷ Minimum class complexity16.00
▷ Maximum class complexity27.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected