89% catalog-booster-for-woocommerce

Code Review | WooCommerce Catalog Booster & Product Catalog Mode

WordPress plugin WooCommerce Catalog Booster & Product Catalog Mode scored89%from 54 tests.

About plugin

  • Plugin page: catalog-booster-f...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 13, 2017
  • Latest release: Aug 14, 2023
  • Number of updates: 60
  • Update frequency: every 40.0 days
  • Top authors: impleCode (95%)ndre (6.67%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /60,528 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by WooCommerce Catalog Booster & Product Catalog Mode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.77 ▲2.70
Dashboard /wp-admin3.32 ▲0.0151.71 ▼1.72
Posts /wp-admin/edit.php3.37 ▲0.0146.88 ▼3.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.55 ▼10.11
Media Library /wp-admin/upload.php3.24 ▲0.0139.11 ▲4.28

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Catalog Booster & Product Catalog Mode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.28 ▼0.301.91 ▼0.0245.71 ▲2.87
Dashboard /wp-admin2,204 ▲275.63 ▲0.1095.80 ▼1.9842.82 ▲0.37
Posts /wp-admin/edit.php2,107 ▲101.98 ▼0.1737.46 ▲3.4535.08 ▼1.52
Add New Post /wp-admin/post-new.php1,532 ▲623.35 ▲0.34705.95 ▼10.2256.73 ▲5.12
Media Library /wp-admin/upload.php1,409 ▲64.22 ▲0.02100.41 ▼5.9044.66 ▼0.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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
Even though everything seems fine, this is not 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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 require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === catalog-booster-for-woocommerce === )
  • Tags: Too many tags (33 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

catalog-booster-for-woocommerce/woocommerce-catalog-booster.php 85% from 13 tests

The main PHP script in "WooCommerce Catalog Booster & Product Catalog Mode" version 1.2.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.5" instead of "3.0.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("catalog-booster-for-woocommerce.php" instead of "woocommerce-catalog-booster.php")

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
Good job! No executable or dangerous file extensions detected1,968 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP203263311,939
CSS15629

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity34.00
▷ Minimum class complexity21.00
▷ Maximum class complexity47.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions114
▷ Named functions114100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/success.png7.86KB2.45KB▼ 68.86%
css/images/info.png2.21KB1.70KB▼ 22.85%
css/images/warning.png1.64KB1.48KB▼ 9.80%
css/images/plus.png5.59KB2.14KB▼ 61.65%
img/implecode.png11.70KB5.04KB▼ 56.91%