84% product-page-builder-woo

Code Review | Product Page Builder - Woo

WordPress plugin Product Page Builder - Woo scored84%from 54 tests.

About plugin

  • Plugin page: product-page-buil...
  • Plugin version: 2.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 17, 2021
  • Latest release: Apr 17, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: cooperk937 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /319 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
Installer ran successfully

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

Server-side resources used by Product Page Builder - Woo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.94 ▲1.94
Dashboard /wp-admin3.31 ▼0.0352.62 ▼9.02
Posts /wp-admin/edit.php3.36 ▲0.0155.21 ▲6.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.24 ▼9.94
Media Library /wp-admin/upload.php3.23 ▲0.0134.80 ▼2.20

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Product Page Builder - Woo: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.38 ▲0.421.76 ▲0.0842.90 ▼0.38
Dashboard /wp-admin2,199 ▲225.58 ▼0.0493.52 ▲6.1341.72 ▲1.62
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0339.49 ▼0.5133.36 ▼4.44
Add New Post /wp-admin/post-new.php1,530 ▲423.13 ▲0.03606.98 ▼52.9850.48 ▼5.54
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.03104.24 ▼15.6444.17 ▼7.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-page-builder-woo/page-redirect.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-page-builder-woo/meta-boxes.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-page-builder-woo/meta-boxes.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/product-page-builder-woo/content-replacement.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: builder, elementor, woocommerce, beaver builder, page...

product-page-builder-woo/woo-page-builder.php 85% from 13 tests

The main PHP file in "Product Page Builder - Woo" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("product-page-builder-woo.php" instead of "woo-page-builder.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
No dangerous file extensions were detected157 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44325133
JavaScript13015
CSS1009

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin