84% product-categories-search-admin-for-woocommerce

Code Review | Product categories search admin for woocommerce

WordPress plugin Product categories search admin for woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: product-categorie...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 16, 2021
  • Latest release: Jun 14, 2023
  • Number of updates: 5
  • Update frequency: every 109.0 days
  • Top authors: asofantzis (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /1,179 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Product categories search admin for woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.51 ▼3.70
Dashboard /wp-admin3.31 ▲0.0147.05 ▼4.83
Posts /wp-admin/edit.php3.36 ▲0.0147.42 ▼4.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.25 ▲0.30
Media Library /wp-admin/upload.php3.23 ▲0.0139.41 ▼1.99

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product categories search admin for woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.27 ▲0.062.11 ▲0.2742.40 ▼4.18
Dashboard /wp-admin2,200 ▲235.66 ▼0.0284.91 ▼10.4738.58 ▼1.34
Posts /wp-admin/edit.php2,105 ▲22.02 ▲0.0243.91 ▲2.7537.95 ▼1.79
Add New Post /wp-admin/post-new.php1,531 ▲517.44 ▼0.06615.27 ▼75.7651.63 ▼1.40
Media Library /wp-admin/upload.php1,408 ▲54.25 ▲0.06100.59 ▼15.3240.54 ▼7.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-categories-search-admin-for-woocommerce/product-categories-search-admin-for-woocommerce.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: woocommerce, admin, product categories

product-categories-search-admin-for-woocommerce/product-categories-search-admin-for-woocommerce.php 92% from 13 tests

"Product categories search admin for woocommerce" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin43 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File15532
PHP151010
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
PNG images were not found in this plugin