99% catalog-for-logged-out-users

Code Review | WooCommerce Catalog for Logged Out Users

WordPress plugin WooCommerce Catalog for Logged Out Users scored 99% from 54 tests.

About plugin

  • Plugin page: catalog-for-logge...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 5.9.2
  • First release: Jul 14, 2021
  • Latest release: Jul 14, 2021
  • Number of updates: 3
  • Update frequency: every 37.3 days
  • Top authors: itechtheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 124 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by WooCommerce Catalog for Logged Out Users
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0355.37 ▲1.25
Dashboard /wp-admin3.44 ▲0.0334.18 ▼37.30
Posts /wp-admin/edit.php3.66 ▲0.0240.93 ▲2.79
Add New Post /wp-admin/post-new.php6.90 ▼0.0794.63 ▼1,219.30
Media Library /wp-admin/upload.php3.32 ▲0.0225.70 ▼3.39

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Catalog for Logged Out Users
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.86 ▼0.156.10 ▲0.352.65 ▲0.41
Dashboard /wp-admin2,892 ▲346.17 ▼0.02133.65 ▼9.06157.50 ▼9.29
Posts /wp-admin/edit.php2,688 ▼33.23 ▼0.0163.59 ▼39.70139.44 ▼16.83
Add New Post /wp-admin/post-new.php1,800 ▲4821.19 ▼0.10430.70 ▼49.38171.03 ▲9.41
Media Library /wp-admin/upload.php1,695 ▼35.55 ▲0.06155.79 ▲9.03270.79 ▲79.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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:
  • Screenshots: These screenshots do not have images: #1 (Setting Page), #2 (Product Archive Page), #3 (Single Product Page)
You can take inspiration from this readme.txt

catalog-for-logged-out-users/catalog-for-logged-out-users.php 85% from 13 tests

The main PHP script in "WooCommerce Catalog for Logged Out Users" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin83 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3264683

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods571.43%
▷ Public methods7100.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
PNG images were not found in this plugin