10% woocommerce-categories-menu

Code Review | WooCommerce Categories Menu

WordPress plugin WooCommerce Categories Menu scored 10% from 54 tests.

About plugin

  • Plugin page: woocommerce-categ...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.3-3.9
  • WordPress version: 6.3.1
  • First release: Jan 13, 2014
  • Latest release: Sep 17, 2014
  • Number of updates: 5
  • Update frequency: every 49.4 days
  • Top authors: alvaron (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 13,145 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/woocommerce-categories-menu/woocommerce-categories-menu.php+549
    Methods with the same name as their class will not be constructors in a future version of PHP; WCCTM_Widget has a deprecated constructor

Server metrics [RAM: ▼1.66MB] [CPU: ▼51.71ms] Passed 4 tests

Server-side resources used by WooCommerce Categories Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.33 ▼1.1410.53 ▼29.97
Dashboard /wp-admin2.35 ▼0.965.94 ▼43.55
Posts /wp-admin/edit.php2.35 ▼1.018.87 ▼38.43
Add New Post /wp-admin/post-new.php2.35 ▼3.546.77 ▼94.89
Media Library /wp-admin/upload.php2.35 ▼0.887.56 ▼25.51

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
widget_wcctm-widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Categories Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.25 ▼1.141.99 ▼0.0942.79 ▲0.61
Dashboard /wp-admin2,206 ▲184.84 ▼0.05108.74 ▼5.5441.19 ▼2.20
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0240.24 ▲1.9235.37 ▼1.12
Add New Post /wp-admin/post-new.php1,533 ▲522.96 ▲4.61645.67 ▼4.6768.22 ▲3.11
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.04101.13 ▼1.7141.87 ▼2.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/woocommerce-categories-menu/woocommerce-categories-menu.php+549
    Methods with the same name as their class will not be constructors in a future version of PHP; WCCTM_Widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_wcctm-widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-categories-menu/woocommerce-categories-menu.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Configuring shortcode on wp-admin), #2 (Configuring multiwidget on wp-admin), #3 (Displaying list menu on front-end), #4 (Displaying select menu on front-end)
Please take inspiration from this readme.txt

woocommerce-categories-menu/woocommerce-categories-menu.php 92% from 13 tests

The main PHP script in "WooCommerce Categories Menu" version 1.2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin779 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11472779

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin