90% woocommerce-display-products-by-tags

Code Review | WooCommerce Display Products by Tags

WordPress plugin WooCommerce Display Products by Tags scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-displ...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2015
  • Latest release: Jun 15, 2015
  • Number of updates: 4
  • Update frequency: every 52.3 days
  • Top authors: sebsstudio (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /8,540 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
Install script ran successfully

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

An overview of server-side resources used by WooCommerce Display Products by Tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.01 ▼1.62
Dashboard /wp-admin3.31 ▼0.0443.53 ▼17.98
Posts /wp-admin/edit.php3.36 ▲0.0045.85 ▼1.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.30 ▼29.87
Media Library /wp-admin/upload.php3.23 ▲0.0035.38 ▲1.26

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Display Products by Tags
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.162.06 ▲0.3442.73 ▼0.11
Dashboard /wp-admin2,203 ▲155.83 ▲0.79103.32 ▼2.0042.60 ▼0.45
Posts /wp-admin/edit.php2,089 ▲182.05 ▲0.0139.20 ▼1.6833.35 ▼3.01
Add New Post /wp-admin/post-new.php1,533 ▲1422.72 ▼0.51654.02 ▲25.2649.53 ▼1.30
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.00103.30 ▲0.3842.80 ▼2.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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: taxonomy, woocommerce, filter, tags, products

woocommerce-display-products-by-tags/ss-wc-display-product-tags.php 92% from 13 tests

The main PHP file in "WooCommerce Display Products by Tags" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-display-products-by-tags.php" instead of "ss-wc-display-product-tags.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2243757

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin