84% wp-fix-search-function-search-only-pages

Code Review | WP - Fix search function [search only pages]

WordPress plugin WP - Fix search function [search only pages] scored84%from 54 tests.

About plugin

  • Plugin page: wp-fix-search-fun...
  • Plugin version: 1.4.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 24, 2019
  • Latest release: Apr 13, 2020
  • Number of updates: 21
  • Update frequency: every 19.7 days
  • Top authors: yvisherve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /864 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.34ms] Passed 4 tests

Analyzing server-side resources used by WP - Fix search function [search only pages]
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.15 ▼4.10
Dashboard /wp-admin3.31 ▲0.0159.35 ▲0.32
Posts /wp-admin/edit.php3.36 ▲0.0053.04 ▲0.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.97 ▼4.55
Media Library /wp-admin/upload.php3.24 ▲0.0039.32 ▼0.74

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP - Fix search function [search only pages]
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.081.79 ▼0.4845.95 ▲1.37
Dashboard /wp-admin2,195 ▲155.62 ▼0.0398.36 ▼2.4643.46 ▲1.01
Posts /wp-admin/edit.php2,103 ▲31.98 ▲0.0336.92 ▼0.2034.54 ▼2.37
Add New Post /wp-admin/post-new.php1,526 ▼223.42 ▲0.37663.50 ▼47.3055.86 ▼4.69
Media Library /wp-admin/upload.php1,400 ▲34.26 ▲0.06100.20 ▼14.4241.82 ▼5.54

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

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

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-fix-search-function-search-only-pages/index.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: page, users, search, pages

wp-fix-search-function-search-only-pages/index.php 92% from 13 tests

"WP - Fix search function [search only pages]" version 1.4.9'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:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-fix-search-function-search-only-pages.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13810

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin