90% woo-product-builder

Code Review | Product Builder for WooCommerce - Custom PC Builder

WordPress plugin Product Builder for WooCommerce - Custom PC Builder scored 90% from 54 tests.

About plugin

  • Plugin page: woo-product-builder
  • Plugin version: 1.0.12
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 12, 2018
  • Latest release: Jul 13, 2023
  • Number of updates: 46
  • Update frequency: every 40.6 days
  • Top authors: mrt3vn (32.61%)thanhtd (30.43%)mytrinh (26.09%)kimvt1991 (17.39%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 13,348 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Product Builder for WooCommerce - Custom PC Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.50 ▼16.20
Dashboard /wp-admin3.32 ▲0.0246.16 ▼13.06
Posts /wp-admin/edit.php3.37 ▲0.0150.97 ▲6.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.95 ▼9.62
Media Library /wp-admin/upload.php3.24 ▲0.0132.52 ▼2.65

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Product Builder for WooCommerce - Custom PC Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.59 ▼0.761.62 ▼0.6239.90 ▼11.18
Dashboard /wp-admin2,212 ▲235.84 ▲0.9095.60 ▼26.2939.95 ▼6.08
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0637.43 ▼0.3233.17 ▲1.32
Add New Post /wp-admin/post-new.php1,520 ▼217.48 ▼5.60660.79 ▲2.7354.14 ▼3.55
Media Library /wp-admin/upload.php1,394 ▲124.19 ▼0.0296.31 ▼1.9643.35 ▼0.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: custom pc builder, custom pc parts, add products step by step, prebuilt gaming pc, woocommerce

woo-product-builder/woo-product-builder.php Passed 13 tests

The primary PHP file in "Product Builder for WooCommerce - Custom PC Builder" version 1.0.12 is used by WordPress to initiate all plugin functionality
126 characters long description:
Increases sales with Building product configuration for your online store. Help build a complete product from small components

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 detected11,277 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript143912925,504
PHP276631,1724,328
CSS202721361,402
SVG10043

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity43.08
▷ Minimum class complexity4.00
▷ Maximum class complexity134.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods155
▷ Static methods138.39%
▷ Public methods14090.32%
▷ Protected methods106.45%
▷ Private methods53.23%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants1257.14%
▷ Class constants942.86%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/layout/layout_2column.png5.88KB2.75KB▼ 53.26%
images/square-image.png0.81KB0.90KB0.00%
images/added-success.png1.23KB1.07KB▼ 13.45%
images/layout/layout_3column.png5.80KB2.73KB▼ 52.97%
images/plus-product.png0.93KB0.63KB▼ 32.32%