10% category-wise-search

Code Review | Category Wise Search

WordPress plugin Category Wise Search scored 10% from 54 tests.

About plugin

  • Plugin page: category-wise-search
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.1.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2013
  • Latest release: Mar 26, 2019
  • Number of updates: 15
  • Update frequency: every 148.1 days
  • Top authors: shambhu patnaik (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 21,393 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/category-wise-search/category-wise-search.php+144
    Function create_function() is deprecated

Server metrics [RAM: ▼1.90MB] [CPU: ▼54.94ms] Passed 4 tests

Server-side resources used by Category Wise Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.70 ▼43.98
Dashboard /wp-admin2.11 ▼1.206.38 ▼43.69
Posts /wp-admin/edit.php2.11 ▼1.255.74 ▼41.39
Add New Post /wp-admin/post-new.php2.11 ▼3.787.59 ▼90.69
Media Library /wp-admin/upload.php2.11 ▼1.125.72 ▼27.86

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Category Wise Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.25 ▼0.994.27 ▲1.9541.39 ▲2.65
Dashboard /wp-admin2,203 ▲184.85 ▼0.17110.39 ▼11.5243.94 ▼1.79
Posts /wp-admin/edit.php2,092 ▲61.98 ▼0.0639.70 ▲3.4635.40 ▲3.53
Add New Post /wp-admin/post-new.php1,542 ▲2818.63 ▲1.05584.60 ▼120.6153.71 ▼16.08
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0495.22 ▼18.1440.81 ▼6.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > Deprecated in wp-content/plugins/category-wise-search/category-wise-search.php+144
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_category_wise_search
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 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)
Good news, no errors were detected

SRP 0% from 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/category-wise-search/index.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/category-wise-search/category-wise-search.php:10

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: exclude search category, category wise search widget, search filter, widget, category...

category-wise-search/category-wise-search.php Passed 13 tests

This is the main PHP file of "Category Wise Search" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
Category Wise Search Widget plugin.You have option search specific category content

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin106 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21045106

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png34.89KB13.75KB▼ 60.58%