88% woo-shortcodes-kit

Code Review | Woo Shortcodes Kit

WordPress plugin Woo Shortcodes Kit scored 88% from 54 tests.

About plugin

  • Plugin page: woo-shortcodes-kit
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.8.1
  • First release: Sep 28, 2016
  • Latest release: Feb 5, 2022
  • Number of updates: 163
  • Update frequency: every 12.0 days
  • Top authors: disespubli (100%)

Code review

54 tests

User reviews

35 reviews

Install metrics

9,000+ active / 120,435 total downloads

Benchmarks

Plugin footprint Passed 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.79MB] [CPU: ▼127.47ms] Passed 4 tests

A check of server-side resources used by Woo Shortcodes Kit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.6853.20 ▲25.71
Dashboard /wp-admin3.94 ▲0.8760.40 ▲18.72
Posts /wp-admin/edit.php3.99 ▲0.8754.68 ▲16.91
Add New Post /wp-admin/post-new.php6.24 ▲0.8099.23 ▼568.41
Media Library /wp-admin/upload.php3.83 ▲0.8248.09 ▲22.91
WSHK /wp-admin/admin.php?page=woo-shortcodes-kit3.96108.76

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 177 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Woo Shortcodes Kit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7515.97 ▲0.364.94 ▼0.0673.79 ▼3.26
Dashboard /wp-admin2,943 ▲506.00 ▼0.17125.17 ▼13.43173.99 ▼1.64
Posts /wp-admin/edit.php2,747 ▲73.24 ▼0.0064.74 ▼1.59141.71 ▼4.51
Add New Post /wp-admin/post-new.php3,814 ▲718.26 ▼0.23447.19 ▲7.04158.10 ▼2.37
Media Library /wp-admin/upload.php1,762 ▲105.52 ▼0.04147.77 ▲6.57187.58 ▲1.09
WSHK /wp-admin/admin.php?page=woo-shortcodes-kit18,2033.6779.93382.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-shortcodes-kit/settings/wshk-settings-page.php
  • 80× 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 get_option() in wp-content/plugins/woo-shortcodes-kit/settings/build-your-account-page/dashboard-sht-setting.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-shortcodes-kit/settings/customize-the-shop-page/total-shop-sales-counter-setting.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-shortcodes-kit/settings/wc-additional-settings/conditional-menu-setting.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-shortcodes-kit/settings/customize-the-shop-page/exclude-products-from-specific-cat-setting.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-shortcodes-kit/settings/customize-the-shop-page/build-a-new-shop-page-setting.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-shortcodes-kit/functions/wshk-additional-shortcodes.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-shortcodes-kit/settings/user-data/product-purchases-by-current-user-setting.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-shortcodes-kit/settings/wc-additional-settings/autocomplete-virtual-orders-setting.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-shortcodes-kit/settings/wc-additional-settings/limit-the-number-of-products-inthe-cart-setting.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-shortcodes-kit/settings/customize-the-shop-page/saving-price-and-percentages-onsale-products.php:14

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: You can take inspiration from this readme.txt

woo-shortcodes-kit/woo-shortcodes-kit.php 85% from 13 tests

The entry point to "Woo Shortcodes Kit" version 2.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.2" instead of "4.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 471 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected13,621 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
PHP1013,9501,77511,233
PO File17361,6282,387
CSS1041

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions164
▷ Named functions15192.07%
▷ Anonymous functions137.93%
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
69 compressed PNG files occupy 0.20MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/notification3.png2.85KB1.78KB▼ 37.30%
images/newsett.png1.31KB1.28KB▼ 2.31%
images/notification6.png1.91KB1.82KB▼ 5.01%
images/bought.png0.76KB0.76KB0.00%
images/notification4.png1.80KB1.72KB▼ 4.02%