84% search-attributes-for-woocommerce

Code Review | Search Attributes for WooCommerce

WordPress plugin Search Attributes for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: search-attributes...
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 2, 2021
  • Latest release: Dec 17, 2022
  • Number of updates: 8
  • Update frequency: every 81.9 days
  • Top authors: aslamdoctor (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active /3,186 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Search Attributes for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.33 ▼3.25
Dashboard /wp-admin3.31 ▲0.0043.66 ▼7.17
Posts /wp-admin/edit.php3.36 ▲0.0049.58 ▲4.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.43 ▼1.23
Media Library /wp-admin/upload.php3.23 ▲0.0032.50 ▼3.56
Search Attributes for WooCommerce /wp-admin/admin.php?page=wsatt-page3.0023.42

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Search Attributes for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.68 ▼0.571.66 ▼0.2744.11 ▼4.51
Dashboard /wp-admin2,203 ▲155.79 ▲0.9098.18 ▼9.1639.53 ▼7.30
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0039.64 ▲1.9834.07 ▼2.89
Add New Post /wp-admin/post-new.php1,546 ▲1318.24 ▼5.37626.06 ▼29.7870.18 ▲21.64
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0494.47 ▼1.6239.77 ▼3.68
Search Attributes for WooCommerce /wp-admin/admin.php?page=wsatt-page280.440.073.79

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=wsatt-page
    • > Network (severe)
    wp-admin/admin.php?page=wsatt-page - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 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: attributes, woocommerce, search, attribute, ecommerce...

search-attributes-for-woocommerce/search-attributes-for-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Search Attributes for WooCommerce" version 1.3.3
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin560 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS110341
PHP94897216
JavaScript1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions10
▷ Named functions10100.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