84% jc-woocomerce-categories-list

Code Review | Create list of categories Woocommerce

WordPress plugin Create list of categories Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: jc-woocomerce-cat...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2015
  • Latest release: Mar 16, 2015
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: llavillaccama (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.55ms] Passed 4 tests

An overview of server-side resources used by Create list of categories Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.51 ▲1.73
Dashboard /wp-admin3.31 ▼0.0346.26 ▼11.85
Posts /wp-admin/edit.php3.36 ▲0.0143.14 ▼4.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.58 ▼11.71
Media Library /wp-admin/upload.php3.23 ▲0.0135.88 ▲2.73

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Create list of categories Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.25 ▼1.361.86 ▲0.2143.70 ▲0.77
Dashboard /wp-admin2,226 ▲355.86 ▲0.9699.83 ▼0.2271.04 ▲28.92
Posts /wp-admin/edit.php2,103 ▲142.02 ▲0.0135.56 ▼0.8534.41 ▼0.80
Add New Post /wp-admin/post-new.php1,534 ▲223.33 ▲5.23714.92 ▲102.5055.65 ▼5.19
Media Library /wp-admin/upload.php1,408 ▲234.24 ▲0.07106.38 ▲2.4849.35 ▲3.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jc-woocomerce-categories-list/jc-woocommerce-categories.php:15

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: You can take inspiration from this readme.txt

jc-woocomerce-categories-list/jc-woocommerce-categories.php 92% from 13 tests

"Create list of categories Woocommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jc-woocomerce-categories-list.php" instead of "jc-woocommerce-categories.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
Everything looks great! No dangerous files found in this plugin151 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2811132
CSS10011
JavaScript2188

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png2.40KB1.36KB▼ 43.15%
images/icon.png1.24KB0.44KB▼ 64.40%