89% woo-product-finder

Code Review | Product Finder For WooCommerce

WordPress plugin Product Finder For WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woo-product-finder
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2017
  • Latest release: Nov 23, 2023
  • Number of updates: 64
  • Update frequency: every 34.6 days
  • Top authors: dots (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

50+ active /6,970 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
This plugin's installer ran successfully

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

A check of server-side resources used by Product Finder For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.42 ▲2.40
Dashboard /wp-admin3.31 ▲0.0146.38 ▼10.71
Posts /wp-admin/edit.php3.37 ▲0.0047.79 ▲1.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0096.22 ▲4.09
Media Library /wp-admin/upload.php3.24 ▲0.0035.68 ▲0.87

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 270 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
fs_debug_mode
fs_accounts
fs_active_plugins
widget_recent-comments

Browser metrics Passed 4 tests

Product Finder For WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.281.84 ▲0.2343.04 ▼1.95
Dashboard /wp-admin2,192 ▲155.56 ▼0.0893.57 ▲1.7940.26 ▼5.00
Posts /wp-admin/edit.php2,100 ▼01.94 ▲0.0038.70 ▲1.0135.23 ▲0.34
Add New Post /wp-admin/post-new.php1,535 ▲923.17 ▲0.05606.21 ▼45.7965.24 ▲13.49
Media Library /wp-admin/upload.php1,394 ▼34.21 ▼0.0196.26 ▼9.1842.42 ▲1.39

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 9 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • fs_accounts
    • widget_theysaidso_widget
    • can_compress_scripts
    • fs_debug_mode
    • fs_active_plugins
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #10, #2, #2, #3, #3, #4, #4, #5, #5, #6, #6, #7, #8, #9 in woo-product-finder/assets to your readme.txt
You can look at the official readme.txt

woo-product-finder/woo-product-finder.php 92% from 13 tests

The primary PHP file in "Product Finder For WooCommerce" version 1.4.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 339 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected49,306 lines of code in 178 files:
LanguageFilesBlank linesComment linesLines of code
PHP1388,79618,73539,632
JavaScript94384044,542
PO File49921,3402,400
CSS2141701,895
SVG400688
XML11219147
Markdown1002

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity90.20
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes58
▷ Abstract classes23.45%
▷ Concrete classes5696.55%
▷ Final classes00.00%
Methods1,374
▷ Static methods20114.63%
▷ Public methods96970.52%
▷ Protected methods171.24%
▷ Private methods38828.24%
Functions111
▷ Named functions10897.30%
▷ Anonymous functions32.70%
Constants274
▷ Global constants22682.48%
▷ Class constants4817.52%
▷ Public constants48100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
30 PNG files occupy 2.03MB with 1.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/advance-flat-rate.png17.28KB7.41KB▼ 57.13%
admin/images/arrow_img.png1.14KB0.18KB▼ 84.62%
admin/images/wizard_setting.png129.19KB37.34KB▼ 71.10%
admin/css/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
admin/css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%