72% woo-product-shortcodes

Code Review | Woo Product Shortcodes (Free)

WordPress plugin Woo Product Shortcodes (Free) scored72%from 54 tests.

About plugin

  • Plugin page: woo-product-short...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.3.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2017
  • Latest release: Jun 27, 2020
  • Number of updates: 7
  • Update frequency: every 153.3 days
  • Top authors: escitsupport (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /10,484 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.02MB] [CPU: ▼5.72ms] Passed 4 tests

Server-side resources used by Woo Product Shortcodes (Free)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.70 ▼5.48
Dashboard /wp-admin3.33 ▲0.0255.43 ▼3.29
Posts /wp-admin/edit.php3.38 ▲0.0255.50 ▲0.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.87 ▼14.90
Media Library /wp-admin/upload.php3.25 ▲0.0241.01 ▲3.11
/wp-admin/admin.php?page=product_shortcodes_main___errors3.1935.22
Woo Product Shortcodes /wp-admin/tools.php?page=product_shortcodes_main___dashboard3.2232.20
/wp-admin/admin.php?page=product_shortcodes_main___settings3.2136.48

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Woo Product Shortcodes (Free)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.011.73 ▼0.0742.41 ▼1.83
Dashboard /wp-admin2,199 ▲195.63 ▲0.0390.56 ▼35.5341.34 ▼4.90
Posts /wp-admin/edit.php2,104 ▲222.00 ▼0.0139.72 ▲2.8336.12 ▼0.03
Add New Post /wp-admin/post-new.php1,529 ▼223.07 ▲0.34693.48 ▼2.0752.84 ▼7.34
Media Library /wp-admin/upload.php1,404 ▲74.18 ▼0.00106.59 ▲0.0046.92 ▲0.88
/wp-admin/admin.php?page=product_shortcodes_main___errors7561.9934.3325.78
Woo Product Shortcodes /wp-admin/tools.php?page=product_shortcodes_main___dashboard7902.0024.5722.65
/wp-admin/admin.php?page=product_shortcodes_main___settings8032.0223.4728.81

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=product_shortcodes_main___errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'zfunction___woo_product_shortcodes___error_logs' not found or invalid function name

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woo-product-shortcodes/admin/page_header.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/woo-product-shortcodes/admin/page_error_logs.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/woo-product-shortcodes/admin/page_dashboard.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/woo-product-shortcodes/admin/page_settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-shortcodes/woo-product-shortcodes.php:39
    • > PHP Notice
      Undefined variable: tab in wp-content/plugins/woo-product-shortcodes/admin/page_header.php on line 3
    • > PHP Notice
      Undefined variable: tab in wp-content/plugins/woo-product-shortcodes/admin/page_header.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === woo-product-shortcodes === )
  • Donate link: Invalid url: ""
The official readme.txt might help

woo-product-shortcodes/woo-product-shortcodes.php 92% from 13 tests

The principal PHP file in "Woo Product Shortcodes (Free)" v. 2.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin206 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP63918206

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.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 are no PNG files in this plugin