90% filterable-showcase-for-woocommerce-products

Code Review | Filterable Showcase For Woocommerce Products

WordPress plugin Filterable Showcase For Woocommerce Products scored 90% from 54 tests.

About plugin

  • Plugin page: filterable-showca...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9
  • WordPress version: 5.8.1
  • First release: Nov 9, 2018
  • Latest release: Oct 28, 2019
  • Number of updates: 48
  • Update frequency: every 7.4 days
  • Top authors: mostafadeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 426 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼134.10ms] Passed 4 tests

Server-side resources used by Filterable Showcase For Woocommerce Products
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2640.39 ▲15.89
Dashboard /wp-admin3.20 ▲0.1455.36 ▲10.98
Posts /wp-admin/edit.php3.25 ▲0.1450.41 ▲6.28
Add New Post /wp-admin/post-new.php5.56 ▲0.1299.86 ▼559.78
Media Library /wp-admin/upload.php3.14 ▲0.1437.53 ▲6.14

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
widget_fsfwp_filterableshowcase

Browser metrics Passed 4 tests

Checking browser requirements for Filterable Showcase For Woocommerce Products
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.94 ▲0.318.20 ▼0.5146.38 ▲0.98
Dashboard /wp-admin2,970 ▲395.92 ▼0.05145.91 ▼7.86111.51 ▼12.92
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0070.66 ▲3.3394.60 ▲5.07
Add New Post /wp-admin/post-new.php1,683 ▼018.83 ▲0.45393.12 ▼5.54117.08 ▼2.81
Media Library /wp-admin/upload.php1,807 ▼05.00 ▲0.00161.36 ▼11.10124.32 ▲1.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_fsfwp_filterableshowcase

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: woocommerce, categories, authors, widget, products...

filterable-showcase-for-woocommerce-products/filterable-showcase-for-woocommerce-products.php 92% from 13 tests

The main PHP script in "Filterable Showcase For Woocommerce Products" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.6.1" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected891 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP32755437
CSS1488343
JavaScript210578
PO File181332
HTML1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity53.00
▷ Minimum class complexity31.00
▷ Maximum class complexity75.00
Average method complexity14.00
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin