83% woobuilder

Code Review | WooBuilder

WordPress plugin WooBuilder scored83%from 54 tests.

About plugin

  • Plugin page: woobuilder
  • Plugin version: 2.1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Dec 28, 2016
  • Latest release: Jan 24, 2022
  • Number of updates: 30
  • Update frequency: every 61.7 days
  • Top authors: shramee (93.33%)PootlePress (10%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /21,043 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WooBuilder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.92 ▲1.99
Dashboard /wp-admin3.31 ▲0.0048.93 ▼4.70
Posts /wp-admin/edit.php3.36 ▲0.0046.09 ▼9.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.54 ▼3.77
Media Library /wp-admin/upload.php3.23 ▲0.0038.63 ▲2.12

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooBuilder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.341.67 ▲0.0744.41 ▲2.04
Dashboard /wp-admin2,195 ▲185.67 ▲0.0290.61 ▼2.8442.62 ▲1.61
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0136.45 ▼5.5337.84 ▲0.81
Add New Post /wp-admin/post-new.php1,526 ▼023.35 ▲0.39635.24 ▼75.0253.52 ▼3.14
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.04100.78 ▼10.0649.88 ▲2.54

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

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/woobuilder/inc/ppb-product-tpl.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woobuilder/ppb-product-builder.php:116

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (WooBuilder modules.), #2 (`Product Builder` button.), #3 (`Enable Product builder` checkbox.)
You can look at the official readme.txt

woobuilder/ppb-product-builder.php 92% from 13 tests

This is the main PHP file of "WooBuilder" version 2.1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woobuilder.php" instead of "ppb-product-builder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected567 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5106240544
CSS174513
JavaScript221010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.50
▷ Minimum class complexity4.00
▷ Maximum class complexity27.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods31
▷ Static methods516.13%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions11
▷ Named functions00.00%
▷ Anonymous functions11100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin