90% pryc-wp-woocommerce-catalog-mode

Code Review | PRyC WP/WooCommerce: Catalog Mode

WordPress plugin PRyC WP/WooCommerce: Catalog Mode scored90%from 54 tests.

About plugin

  • Plugin page: pryc-wp-woocommer...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2016
  • Latest release: Jun 20, 2023
  • Number of updates: 20
  • Update frequency: every 131.8 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,221 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼1.40ms] Passed 4 tests

An overview of server-side resources used by PRyC WP/WooCommerce: Catalog Mode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.85 ▲0.05
Dashboard /wp-admin3.31 ▲0.0043.60 ▼0.60
Posts /wp-admin/edit.php3.36 ▲0.0048.94 ▲3.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.26 ▲0.78
Media Library /wp-admin/upload.php3.23 ▲0.0031.16 ▼5.83

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for PRyC WP/WooCommerce: Catalog Mode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.451.71 ▼0.0346.68 ▲3.40
Dashboard /wp-admin2,209 ▲245.85 ▲0.9597.20 ▼9.8039.11 ▼1.50
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0339.61 ▼1.2635.07 ▲0.83
Add New Post /wp-admin/post-new.php1,533 ▼523.44 ▼0.05691.23 ▲21.8964.70 ▲7.66
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0698.71 ▼12.0441.06 ▼4.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wc, shop, wordpress, woocommerce, catalog...

pryc-wp-woocommerce-catalog-mode/pryc-wp-woocommerce-catalog-mode.php Passed 13 tests

The main PHP script in "PRyC WP/WooCommerce: Catalog Mode" version 1.1.5 is automatically included on every request by WordPress
103 characters long description:
For WooCommerce plugin - hide "add to cart" button and price (single product and product list/archive).

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 plugin16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111216

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin