84% woo-responsive-product-category

Code Review | WooCommerce Responsive Product Category

WordPress plugin WooCommerce Responsive Product Category scored84%from 54 tests.

About plugin

  • Plugin page: woo-responsive-pr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Oct 19, 2016
  • Latest release: Oct 20, 2016
  • Number of updates: 8
  • Update frequency: every 0.9 days
  • Top authors: poncosetiawan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,222 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WooCommerce Responsive Product Category
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.69 ▼8.62
Dashboard /wp-admin3.31 ▲0.0142.83 ▼9.71
Posts /wp-admin/edit.php3.36 ▲0.0143.67 ▼3.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.70 ▼4.38
Media Library /wp-admin/upload.php3.24 ▲0.0136.89 ▲3.38

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_woometismenu_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Responsive Product Category
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲15713.56 ▼1.128.71 ▲7.0343.04 ▼1.75
Dashboard /wp-admin2,203 ▲154.91 ▲0.06111.98 ▲4.2142.43 ▼2.23
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0139.14 ▼1.8635.78 ▲0.02
Add New Post /wp-admin/post-new.php1,528 ▼518.60 ▼4.20598.43 ▼59.0748.96 ▼3.79
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.03102.98 ▼9.9642.72 ▼2.53

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_woometismenu_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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 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/woo-responsive-product-category/woo-metismenu.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were detected

woo-responsive-product-category/woo-metismenu.php 92% from 13 tests

The main PHP file in "WooCommerce Responsive Product Category" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-responsive-product-category.php" instead of "woo-metismenu.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
Everything looks great! No dangerous files found in this plugin526 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36925310
CSS3829155
PHP1142261

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin