90% woocommerce-filter-search

Code Review | WooCommerce Filter Search

WordPress plugin WooCommerce Filter Search scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-filte...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.7
  • WordPress version: 6.3.1
  • First release: Aug 12, 2014
  • Latest release: Jul 26, 2018
  • Number of updates: 13
  • Update frequency: every 111.1 days
  • Top authors: pinchofcode (92.31%)nicolamustone (15.38%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /3,939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by WooCommerce Filter Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0144.44 ▲3.80
Dashboard /wp-admin3.36 ▼0.0349.00 ▼18.54
Posts /wp-admin/edit.php3.41 ▲0.0150.25 ▼1.57
Add New Post /wp-admin/post-new.php5.94 ▲0.0186.84 ▼21.53
Media Library /wp-admin/upload.php3.28 ▲0.0136.29 ▼1.87

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Filter Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▲0.131.84 ▲0.2244.77 ▲5.42
Dashboard /wp-admin2,192 ▲145.57 ▼0.14100.36 ▼2.2842.95 ▼1.17
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0135.24 ▼11.2636.00 ▲1.12
Add New Post /wp-admin/post-new.php1,526 ▼023.00 ▼0.62609.66 ▼79.5952.70 ▼6.12
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.0398.46 ▼11.0246.53 ▼2.85

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: excerpt, woocommerce, search, filter, content...

woocommerce-filter-search/woocommerce-filter-search.php Passed 13 tests

The main PHP file in "WooCommerce Filter Search" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
59 characters long description:
Search for WooCommerce products only in the products title.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1163044

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity4.00
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected