78% woocommerce-jetpack

Code Review | Booster for WooCommerce

WordPress plugin Booster for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-jetpack
  • Plugin version: 7.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Oct 18, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

491 reviews

Install metrics

60,000+ active /3,432,682 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Booster for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.18 ▲2.00
Dashboard /wp-admin3.32 ▼0.0243.35 ▼14.67
Posts /wp-admin/edit.php3.37 ▲0.0246.68 ▲3.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.00 ▼11.05
Media Library /wp-admin/upload.php3.24 ▲0.0236.03 ▲0.23

Server storage [IO: ▲34.21MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • Try to limit filesystem usage to 25MB (currently using 34.21MB)
Filesystem: 1,022 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Booster for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.091.62 ▲0.0146.15 ▲2.48
Dashboard /wp-admin2,198 ▲215.64 ▲0.0293.10 ▲6.0638.90 ▼2.22
Posts /wp-admin/edit.php2,097 ▼02.00 ▼0.0140.09 ▲7.0735.51 ▼1.16
Add New Post /wp-admin/post-new.php1,526 ▼023.37 ▼0.30665.95 ▼16.3156.67 ▼8.69
Media Library /wp-admin/upload.php1,400 ▼04.13 ▼0.11109.49 ▲11.9246.34 ▲1.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woocommerce-jetpack/includes/emails/email-html.php
    • > /wp-content/plugins/woocommerce-jetpack/includes/emails/email-plain.php
    • > /wp-content/plugins/woocommerce-jetpack/includes/lib/tcpdf/tools/tcpdf_addfont.php
  • 42× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woocommerce-jetpack/includes/admin/wcj-welcome-screen-content.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Filter\\FilterException' not found in wp-content/plugins/woocommerce-jetpack/includes/lib/FPDI/src/PdfParser/Filter/LzwException.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/woocommerce-jetpack/includes/lib/FPDI/src/PdfParser/Type/PdfNull.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'tFPDF' not found in wp-content/plugins/woocommerce-jetpack/includes/lib/FPDI/src/Tfpdf/FpdfTpl.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/woocommerce-jetpack/includes/lib/FPDI/src/PdfParser/Type/PdfName.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/woocommerce-jetpack/includes/lib/FPDI/src/PdfParser/Type/PdfArray.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/woocommerce-jetpack/includes/lib/FPDI/src/Tcpdf/Fpdi.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/woocommerce-jetpack/includes/lib/FPDI/src/PdfParser/Type/PdfString.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/woocommerce-jetpack/includes/lib/FPDI/src/PdfParser/Type/PdfBoolean.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/woocommerce-jetpack/includes/lib/FPDI/src/PdfParser/Type/PdfTypeException.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce integration, woocommerce customization, woocommerce bundle, ecommerce plugin, woocommerce product addon

woocommerce-jetpack/woocommerce-jetpack.php Passed 13 tests

The main PHP script in "Booster for WooCommerce" version 7.1.3 is automatically included on every request by WordPress
124 characters long description:
Supercharge your WooCommerce site with these awesome powerful features. More than 100 modules.All in one WooCommerce plugin.

Code Analysis 95% from 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
Everything looks great! No dangerous files found in this plugin352,318 lines of code in 601 files:
LanguageFilesBlank linesComment linesLines of code
SVG1000225,295
PHP4757,71935,086120,241
CSS121241172,880
JavaScript911493561,243
PO File153401,120
HTML690695
XML100542
Markdown2540198
JSON300104

PHP code 0% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,379)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 502)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity57.59
▷ Minimum class complexity1.00
▷ Maximum class complexity4,379.00
Average method complexity6.57
▷ Minimum method complexity1.00
▷ Maximum method complexity502.00
Code structure
Namespaces11
Interfaces4
Traits2
Classes260
▷ Abstract classes62.31%
▷ Concrete classes25497.69%
▷ Final classes10.39%
Methods2,722
▷ Static methods1505.51%
▷ Public methods2,38287.51%
▷ Protected methods32111.79%
▷ Private methods190.70%
Functions281
▷ Named functions23683.99%
▷ Anonymous functions4516.01%
Constants189
▷ Global constants15079.37%
▷ Class constants3920.63%
▷ Public constants39100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
357 compressed PNG files occupy 0.86MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/flag-icons/pe.png0.39KB0.52KB0.00%
assets/images/flag-icons/kg.png0.50KB0.64KB0.00%
assets/images/side-menu-icn1-act.png0.36KB0.23KB▼ 35.60%
assets/images/share.png0.40KB0.29KB▼ 26.11%
assets/images/flag-icons/eg.png0.45KB0.61KB0.00%