90% filter-search-page

Code Review | Filter Search Page

WordPress plugin Filter Search Page scored90%from 54 tests.

About plugin

  • Plugin page: filter-search-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Jan 2, 2014
  • Latest release: Jan 3, 2014
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: alexvorn2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,373 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.07ms] Passed 4 tests

Server-side resources used by Filter Search Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0250.01 ▲6.82
Dashboard /wp-admin3.37 ▲0.0361.06 ▼6.52
Posts /wp-admin/edit.php3.42 ▲0.0755.91 ▲2.62
Add New Post /wp-admin/post-new.php5.95 ▲0.0798.15 ▼7.92
Media Library /wp-admin/upload.php3.29 ▲0.0644.66 ▼0.45
Filter Search Page /wp-admin/plugins.php?page=filter_search_page3.2746.03

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Filter Search Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.10 ▼0.251.79 ▲0.0858.03 ▲17.32
Dashboard /wp-admin2,196 ▲165.55 ▼0.04110.39 ▲22.4945.47 ▲0.49
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0739.49 ▲0.0732.58 ▼3.71
Add New Post /wp-admin/post-new.php1,529 ▲123.02 ▲1.89619.84 ▼96.8857.74 ▼3.37
Media Library /wp-admin/upload.php1,404 ▲44.25 ▲0.08119.57 ▲14.6249.07 ▼3.42
Filter Search Page /wp-admin/plugins.php?page=filter_search_page9282.0229.0639.97

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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: search, wp_query, filter

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

The entry point to "Filter Search Page" version 1.0 is a PHP file that has certain tags in its header comment area
138 characters long description:
This plugin will help you to filter the search page results by category and post type. (Go to: Dashboard -> Plugins -> Filter Search Page)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected642 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP413367393
CSS1340203
JavaScript18346

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions16
▷ Named functions16100.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
There were not PNG files found in your plugin