90% pryc-woocommerce-product-search-in-any-search

Code Review | PRyC WP/WooCommerce: Product search in any search

WordPress plugin PRyC WP/WooCommerce: Product search in any search scored90%from 54 tests.

About plugin

  • Plugin page: pryc-woocommerce-...
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 16, 2014
  • Latest release: Jun 20, 2023
  • Number of updates: 29
  • Update frequency: every 112.5 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

300+ active /6,278 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by PRyC WP/WooCommerce: Product search in any search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.97 ▼12.98
Dashboard /wp-admin3.31 ▲0.0150.46 ▼3.59
Posts /wp-admin/edit.php3.36 ▲0.0048.33 ▼5.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.92 ▼5.91
Media Library /wp-admin/upload.php3.23 ▲0.0037.22 ▲1.65

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

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

Browser metrics Passed 4 tests

A check of browser resources used by PRyC WP/WooCommerce: Product search in any search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.25 ▼0.171.86 ▼0.1540.79 ▼4.36
Dashboard /wp-admin2,195 ▲185.62 ▲0.0494.03 ▼7.3242.54 ▼3.77
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0040.04 ▲2.9235.29 ▼1.07
Add New Post /wp-admin/post-new.php1,526 ▼023.38 ▼0.07652.34 ▼26.4356.70 ▲10.45
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.02102.27 ▲0.1345.29 ▼0.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woocommerce, ecommerce, search field, search

pryc-woocommerce-product-search-in-any-search/pryc-woocommerce-product-search-in-any-search.php Passed 13 tests

"PRyC WP/WooCommerce: Product search in any search" version 1.0.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Search WooCommerce product at default theme search field or any other...

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

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.25
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin