84% product-categories-bottom-description-woo-comerce

Code Review | Product Categories/Tags Bottom Description for WooCommerce

WordPress plugin Product Categories/Tags Bottom Description for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: product-categorie...
  • Plugin version: 2.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Sep 15, 2023
  • Number of updates: 18
  • Update frequency: every 44.4 days
  • Top authors: dieguraa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /4,072 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: ▼5.63ms] Passed 4 tests

This is a short check of server-side resources used by Product Categories/Tags Bottom Description for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0435.63 ▼4.89
Dashboard /wp-admin3.34 ▲0.0342.22 ▼5.52
Posts /wp-admin/edit.php3.39 ▲0.0346.68 ▼0.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.08 ▼11.74
Media Library /wp-admin/upload.php3.26 ▲0.0334.02 ▲0.50

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Product Categories/Tags Bottom Description for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.51 ▼1.174.53 ▲2.7939.22 ▼6.71
Dashboard /wp-admin2,206 ▲154.85 ▼1.05112.15 ▲14.4443.26 ▼0.43
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0339.19 ▼2.0439.47 ▲3.44
Add New Post /wp-admin/post-new.php1,534 ▲123.11 ▲0.09659.47 ▲18.3060.01 ▲5.40
Media Library /wp-admin/upload.php1,382 ▼64.18 ▼0.0395.18 ▼6.2141.68 ▼3.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/product-categories-bottom-description-woo-comerce/product-categories-bottom-description-woo-commerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: ux, content, woocommerce, seo

product-categories-bottom-description-woo-comerce/product-categories-bottom-description-woo-commerce.php 92% from 13 tests

The primary PHP file in "Product Categories/Tags Bottom Description for WooCommerce" version 2.2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("product-categories-bottom-description-woo-comerce.php" instead of "product-categories-bottom-description-woo-commerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin204 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16929204

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.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
PNG images were not found in this plugin