84% custom-search-filter

Code Review | Custom Search Filter

WordPress plugin Custom Search Filter scored84%from 54 tests.

About plugin

  • Plugin page: custom-search-filter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Sep 29, 2016
  • Latest release: Sep 29, 2016
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.54ms] Passed 4 tests

Analyzing server-side resources used by Custom Search Filter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.34 ▼9.35
Dashboard /wp-admin3.35 ▲0.0446.96 ▼3.55
Posts /wp-admin/edit.php3.40 ▲0.0444.12 ▼5.49
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.24 ▼11.75
Media Library /wp-admin/upload.php3.27 ▲0.0434.65 ▼1.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Custom Search Filter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.17 ▼0.381.99 ▲0.1940.62 ▼2.41
Dashboard /wp-admin2,200 ▲205.54 ▼0.0586.84 ▼8.4063.34 ▲20.47
Posts /wp-admin/edit.php2,123 ▲231.97 ▼0.0641.04 ▼1.4433.99 ▼2.71
Add New Post /wp-admin/post-new.php1,541 ▲523.38 ▲5.09719.06 ▲94.0355.55 ▼7.24
Media Library /wp-admin/upload.php1,420 ▲234.10 ▼0.09105.15 ▲1.3764.91 ▲21.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
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/custom-search-filter/custom-search-filter.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Admin Panel view of submitted form data.) image required
The official readme.txt is a good inspiration

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

"Custom Search Filter" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
Custom Search Filter WordPress plugin allows you to search products or custom text.

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
Good job! No executable or dangerous file extensions detected291 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14815149
CSS113075
PO File1212267

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.33MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png328.61KB94.81KB▼ 71.15%
images/logo.png11.25KB4.39KB▼ 60.99%
images/icon.png1.58KB1.43KB▼ 9.69%