90% category-listing-for-woocommerce

Code Review | Category Listing for WooCommerce

WordPress plugin Category Listing for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: category-listing-...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2019
  • Latest release: May 11, 2023
  • Number of updates: 16
  • Update frequency: every 84.9 days
  • Top authors: AlexanderJuulJ (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,651 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Category Listing for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0149.10 ▲7.85
Dashboard /wp-admin3.32 ▲0.0150.21 ▼0.62
Posts /wp-admin/edit.php3.37 ▲0.0147.20 ▼6.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.64 ▼17.52
Media Library /wp-admin/upload.php3.24 ▲0.0139.37 ▲2.35

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Category Listing for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.75 ▲0.371.90 ▲0.1043.82 ▲0.41
Dashboard /wp-admin2,192 ▲155.57 ▲0.0183.01 ▼6.8339.46 ▼0.83
Posts /wp-admin/edit.php2,103 ▼02.02 ▲0.0236.43 ▼4.5932.11 ▼5.29
Add New Post /wp-admin/post-new.php1,545 ▲1423.33 ▲0.26652.28 ▲24.2356.48 ▲4.02
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.03106.66 ▲1.0646.86 ▲2.28

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: listing, woocommerce, category, categories, separate

category-listing-for-woocommerce/category-listing-for-woocommerce.php Passed 13 tests

The main PHP file in "Category Listing for WooCommerce" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
126 characters long description:
Creates a separate listing for your categories and subcategories on archive pages, so you do not mix products with categories.

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
Everything looks great! No dangerous files found in this plugin534 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS15445310
PO File42828155
PHP1524969

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin