78% woo-product-reviews-shortcode

Code Review | Builder for WooCommerce product reviews shortcodes - ReviewShort

WordPress plugin Builder for WooCommerce product reviews shortcodes - ReviewShort scored78%from 54 tests.

About plugin

  • Plugin page: woo-product-revie...
  • Plugin version: 1.01.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 18, 2020
  • Latest release: Oct 2, 2023
  • Number of updates: 87
  • Update frequency: every 15.8 days
  • Top authors: Tobias_Conrad (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /6,300 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.76ms] Passed 4 tests

A check of server-side resources used by Builder for WooCommerce product reviews shortcodes - ReviewShort
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.60 ▼2.88
Dashboard /wp-admin3.34 ▼0.0058.17 ▼4.73
Posts /wp-admin/edit.php3.39 ▲0.0448.83 ▼4.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.95 ▼14.83
Media Library /wp-admin/upload.php3.26 ▲0.0438.75 ▲3.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Builder for WooCommerce product reviews shortcodes - ReviewShort
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7814.73 ▲0.151.86 ▼0.4443.49 ▲0.20
Dashboard /wp-admin2,228 ▲225.08 ▲0.01112.48 ▼0.1442.22 ▲0.55
Posts /wp-admin/edit.php2,110 ▲102.05 ▲0.0236.11 ▼5.9333.69 ▼3.28
Add New Post /wp-admin/post-new.php1,552 ▲723.13 ▲0.02682.16 ▼13.0866.17 ▲1.74
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0698.86 ▼7.0843.95 ▼4.21

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-product-reviews-shortcode/admin/templates/intro_EN.php
    • > /wp-content/plugins/woo-product-reviews-shortcode/templates/product-reviews-title.php
    • > /wp-content/plugins/woo-product-reviews-shortcode/admin/templates/intro_DE.php
  • 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wprshrtcd_is_premium() in wp-content/plugins/woo-product-reviews-shortcode/admin/templates/builder-list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-product-reviews-shortcode/templates/product-reviews-meta.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wprshrtcd_is_premium() in wp-content/plugins/woo-product-reviews-shortcode/admin/templates/more-plugins.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_locale() in wp-content/plugins/woo-product-reviews-shortcode/admin/templates/intro.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-reviews-shortcode/admin/functions.php:2
    • > PHP Notice
      Undefined variable: show_schema in wp-content/plugins/woo-product-reviews-shortcode/templates/product-reviews-meta.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-product-reviews-shortcode/admin/templates/templating.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-reviews-shortcode/includes/woo-hooks.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-reviews-shortcode/includes/cpt.php:56
    • > PHP Notice
      Undefined variable: product_title in wp-content/plugins/woo-product-reviews-shortcode/templates/product-reviews-title.php on line 9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: review plugin, google rating, woocommerce reviews, customer reviews, woocommerce product reviews

woo-product-reviews-shortcode/woo-product-reviews-shortcode.php 92% from 13 tests

The entry point to "Builder for WooCommerce product reviews shortcodes - ReviewShort" version 1.01.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.0")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected40,953 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
PHP1428,50417,48535,479
PO File58659823,005
CSS1631891,742
JavaScript59559497
Markdown1680214
XML13016

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity93.38
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes48
▷ Abstract classes24.17%
▷ Concrete classes4695.83%
▷ Final classes00.00%
Methods1,259
▷ Static methods19815.73%
▷ Public methods86969.02%
▷ Protected methods171.35%
▷ Private methods37329.63%
Functions154
▷ Named functions15399.35%
▷ Anonymous functions10.65%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png46.41KB11.28KB▼ 75.70%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%