90% buddycommerce

Code Review | BuddyCommerce: WooCommerce and BuddyPress Integration

WordPress plugin BuddyCommerce: WooCommerce and BuddyPress Integration scored90%from 54 tests.

About plugin

  • Plugin page: buddycommerce
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 2, 2019
  • Latest release: Aug 7, 2023
  • Number of updates: 14
  • Update frequency: every 114.1 days
  • Top authors: sbrajesh (64.29%)buddydev (35.71%)raviousprime (14.29%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /30,109 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
This plugin's installer ran successfully

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

A check of server-side resources used by BuddyCommerce: WooCommerce and BuddyPress Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.68 ▼0.83
Dashboard /wp-admin3.36 ▲0.0659.79 ▲10.63
Posts /wp-admin/edit.php3.47 ▲0.1253.98 ▼2.23
Add New Post /wp-admin/post-new.php5.94 ▲0.06103.94 ▲10.32
Media Library /wp-admin/upload.php3.28 ▲0.0537.25 ▼0.02

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
buddycommerce_settings
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyCommerce: WooCommerce and BuddyPress Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.61 ▼0.761.83 ▼0.0843.92 ▲1.81
Dashboard /wp-admin2,206 ▲214.87 ▼0.97108.75 ▲0.3440.63 ▲0.39
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0542.20 ▼2.2035.61 ▼0.26
Add New Post /wp-admin/post-new.php1,514 ▼1423.68 ▲0.40630.39 ▼82.3251.77 ▼0.89
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0099.80 ▼10.8143.56 ▼3.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • buddycommerce_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots need descriptions #2, #3, #4 in buddycommerce/assets to your readme.txt
The official readme.txt is a good inspiration

buddycommerce/buddycommerce.php Passed 13 tests

The main file in "BuddyCommerce: WooCommerce and BuddyPress Integration" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
BuddyPress and WooCommerce Integration.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,310 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP501,0722,5103,042
PO File17492188
JavaScript2171762
CSS14215
Markdown1103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity11.68
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces9
Interfaces0
Traits1
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods218
▷ Static methods177.80%
▷ Public methods17479.82%
▷ Protected methods00.00%
▷ Private methods4420.18%
Functions62
▷ Named functions6198.39%
▷ Anonymous functions11.61%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin