89% buddyforms-woocommerce-simple-auction

Code Review | BuddyForms Simple Auctions Integration for WooCommerce

WordPress plugin BuddyForms Simple Auctions Integration for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: buddyforms-woocom...
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2016
  • Latest release: Dec 21, 2022
  • Number of updates: 86
  • Update frequency: every 29.2 days
  • Top authors: svenl77 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /7,122 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.08MB] [CPU: ▼6.81ms] Passed 4 tests

Server-side resources used by BuddyForms Simple Auctions Integration for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.03 ▼7.40
Dashboard /wp-admin3.43 ▲0.1250.56 ▼0.75
Posts /wp-admin/edit.php3.48 ▲0.1248.61 ▼0.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0685.58 ▼18.36
Media Library /wp-admin/upload.php3.29 ▲0.0638.91 ▲4.86
Install Plugins /wp-admin/plugins.php?page=bf_wc_simple_auction-install-plugins3.3631.32

Server storage [IO: ▲0.57MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyForms Simple Auctions Integration for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.27 ▼0.081.88 ▲0.1643.99 ▼0.25
Dashboard /wp-admin2,230 ▲535.55 ▼0.0286.40 ▼15.7044.42 ▲2.97
Posts /wp-admin/edit.php2,144 ▲442.07 ▲0.0538.14 ▼0.8742.95 ▼1.26
Add New Post /wp-admin/post-new.php1,557 ▲2923.14 ▼0.11656.73 ▼12.4655.31 ▼7.63
Media Library /wp-admin/upload.php1,437 ▲344.22 ▲0.0398.96 ▲1.0251.84 ▲8.07
Install Plugins /wp-admin/plugins.php?page=bf_wc_simple_auction-install-plugins1,0452.0524.1438.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: frontend editing, profiles, custom post types, members, simple auction...

buddyforms-woocommerce-simple-auction/integration.php 85% from 13 tests

This is the main PHP file of "BuddyForms Simple Auctions Integration for WooCommerce" version 1.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("buddyforms-woocommerce-simple-auction.php" instead of "integration.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin5,344 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PO File171,4491,9934,842
PHP69299386
JavaScript2131685
JSON10027
CSS21154

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity32.83
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods131
▷ Static methods1410.69%
▷ Public methods10479.39%
▷ Protected methods2317.56%
▷ Private methods43.05%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin