78% woocommerce-category-rating

Code Review | Woocommerce Category Rating

WordPress plugin Woocommerce Category Rating scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-categ...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.0
  • WordPress version: 6.3.1
  • First release: Nov 16, 2014
  • Latest release: Nov 16, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: getano (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,196 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Woocommerce Category Rating
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.88 ▲3.34
Dashboard /wp-admin3.33 ▲0.0344.64 ▼1.00
Posts /wp-admin/edit.php3.38 ▲0.0247.74 ▲3.10
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.29 ▼8.22
Media Library /wp-admin/upload.php3.25 ▲0.0236.25 ▲1.32
Category Ratings /wp-admin/options-general.php?page=woocommerce-category-rating-plugin3.1930.08

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce Category Rating
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.74 ▲0.451.81 ▲0.1840.82 ▼3.35
Dashboard /wp-admin2,207 ▲165.83 ▲0.9499.91 ▼3.6037.61 ▼2.62
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0339.77 ▲1.6636.73 ▲6.41
Add New Post /wp-admin/post-new.php1,545 ▲2118.12 ▼5.14601.50 ▼78.3251.64 ▼5.18
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.0497.33 ▼6.3741.87 ▼6.64
Category Ratings /wp-admin/options-general.php?page=woocommerce-category-rating-plugin7772.0523.9826.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=woocommerce-category-rating-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=woocommerce-category-rating-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woocommerce-category-rating/woocommerce-category-rating.php

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === woocommerce-category-rating === )
The official readme.txt is a good inspiration

woocommerce-category-rating/woocommerce-category-rating.php 92% from 13 tests

"Woocommerce Category Rating" 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:
  • Description: The description should be shorter than 140 characters (currently 277 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1462692

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin