89% woocommerce-buddypress-integration-xprofile-checkout-manager

Code Review | BuddyPress xProfile Checkout Manager for WooCommerce

WordPress plugin BuddyPress xProfile Checkout Manager for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: woocommerce-buddy...
  • Plugin version: 1.3.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2014
  • Latest release: May 20, 2023
  • Number of updates: 199
  • Update frequency: every 15.6 days
  • Top authors: svenl77 (95.48%)gfirem (5.03%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 13,025 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.09ms] Passed 4 tests

Analyzing server-side resources used by BuddyPress xProfile Checkout Manager for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0141.12 ▼4.54
Dashboard /wp-admin3.31 ▲0.0148.23 ▼6.38
Posts /wp-admin/edit.php3.36 ▲0.0046.28 ▼0.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.31 ▼11.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.19 ▼2.26

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress xProfile Checkout Manager for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.16 ▼1.011.70 ▼0.0544.32 ▼9.18
Dashboard /wp-admin2,206 ▲154.85 ▼0.01113.22 ▼8.8143.90 ▼2.76
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0134.47 ▼2.4331.96 ▼5.51
Add New Post /wp-admin/post-new.php1,534 ▲2023.25 ▲5.66657.30 ▼41.0958.48 ▲7.51
Media Library /wp-admin/upload.php1,391 ▲34.23 ▼0.0599.82 ▼5.7642.41 ▼3.30

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

woocommerce-buddypress-integration-xprofile-checkout-manager/loader.php 69% from 13 tests

This is the main PHP file of "BuddyPress xProfile Checkout Manager for WooCommerce" version 1.3.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-buddypress-integration-xprofile-checkout-manager.php" instead of "loader.php")

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 detected3,154 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP97821,8052,915
CSS2201116
JavaScript223594
JSON10029

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity36.60
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods121
▷ Static methods129.92%
▷ Public methods9780.17%
▷ Protected methods2319.01%
▷ Private methods10.83%
Functions33
▷ Named functions3296.97%
▷ Anonymous functions13.03%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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
PNG images were not found in this plugin