78% searchy

Code Review | Searchy

WordPress plugin Searchy scored 78% from 54 tests.

About plugin

  • Plugin page: searchy
  • Plugin version: 1,0...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Jul 13, 2015
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: dopewp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,607 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.03MB] [CPU: ▼1.58ms] Passed 4 tests

A check of server-side resources used by Searchy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.57 ▼4.19
Dashboard /wp-admin3.33 ▲0.0346.30 ▼3.75
Posts /wp-admin/edit.php3.38 ▲0.0348.63 ▲6.55
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.80 ▲5.26
Media Library /wp-admin/upload.php3.25 ▲0.0335.84 ▼3.62
Searchy /wp-admin/options-general.php?page=searchy-settings3.2226.53

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Searchy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲17913.98 ▼0.589.00 ▲7.3040.93 ▼2.91
Dashboard /wp-admin2,210 ▲224.82 ▼1.08113.54 ▲0.8943.12 ▼7.05
Posts /wp-admin/edit.php2,096 ▲42.03 ▲0.0240.02 ▲0.8435.31 ▲1.90
Add New Post /wp-admin/post-new.php1,536 ▼623.28 ▲5.01665.86 ▲0.2455.82 ▼1.15
Media Library /wp-admin/upload.php1,386 ▼24.26 ▲0.0599.87 ▼22.8441.38 ▼11.00
Searchy /wp-admin/options-general.php?page=searchy-settings8622.0526.0033.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/searchy/searchybits/no-results.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: searchy_sortby_field_hidden in wp-content/plugins/searchy/searchybits/perform-search.php on line 56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/searchy/searchybits/search_filters.php:14
    • > PHP Notice
      Undefined index: searchy_sortby_hidden in wp-content/plugins/searchy/searchybits/perform-search.php on line 55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/searchy/searchybits/perform-search.php:71
    • > PHP Notice
      Undefined index: SearchybyName in wp-content/plugins/searchy/searchybits/perform-search.php on line 62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/searchy/searchybits/options-panel.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
7 plugin tags: search, category, custom fields, sorting, filter...

searchy/index.php 85% from 13 tests

The main PHP file in "Searchy" ver. 1,0... adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("searchy.php" instead of "index.php")
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1,0...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin448 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP510939295
CSS1309118
JavaScript1111335

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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 files were detected