90% product-categories-designs-for-woocommerce

Code Review | Product Categories Designs for WooCommerce

WordPress plugin Product Categories Designs for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: product-categorie...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2016
  • Latest release: Sep 26, 2023
  • Number of updates: 45
  • Update frequency: every 56.8 days
  • Top authors: wponlinesupport (53.33%)anoopranawat (48.89%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /40,702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.30ms] Passed 4 tests

This is a short check of server-side resources used by Product Categories Designs for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.33 ▼1.96
Dashboard /wp-admin3.33 ▲0.0245.11 ▲0.26
Posts /wp-admin/edit.php3.38 ▲0.0243.56 ▼2.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.54 ▼13.22
Media Library /wp-admin/upload.php3.25 ▲0.0235.66 ▲1.13

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

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

Browser metrics Passed 4 tests

Product Categories Designs for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲5014.80 ▲0.051.78 ▼0.0644.13 ▲3.85
Dashboard /wp-admin2,230 ▲384.87 ▼0.1099.97 ▼12.4442.74 ▲3.73
Posts /wp-admin/edit.php2,109 ▲202.03 ▲0.0235.64 ▲0.5134.48 ▲0.25
Add New Post /wp-admin/post-new.php1,549 ▲3023.08 ▲0.01611.33 ▼59.8151.26 ▼10.45
Media Library /wp-admin/upload.php1,409 ▲214.19 ▼0.0096.55 ▼11.8141.70 ▼6.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP 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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: categories slider, categories grid, woocommerce categories slider, categories designs, woocommerce categories grid...

product-categories-designs-for-woocommerce/product-categories-designs-for-woocommerce.php 92% from 13 tests

"Product Categories Designs for WooCommerce" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,033 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP8150209723
JavaScript58151256
CSS47553
JSON1001

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.55
Average class complexity11.00
▷ Minimum class complexity3.00
▷ Maximum class complexity19.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
There are no PNG files in this plugin