94% search-by-title-only

Code Review | WordPress Search By Title Only

WordPress plugin WordPress Search By Title Only scored 94% from 54 tests.

About plugin

  • Plugin page: search-by-title-only
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.1
  • WordPress version: 5.9.2
  • First release: Aug 30, 2017
  • Latest release: Mar 8, 2019
  • Number of updates: 4
  • Update frequency: every 138.8 days
  • Top authors: mp518 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,002 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.51MB] [CPU: ▼338.44ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Search By Title Only
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.05 ▼0.4616.69 ▼33.13
Dashboard /wp-admin3.27 ▼0.1424.64 ▼12.29
Posts /wp-admin/edit.php3.21 ▼0.4322.16 ▼19.85
Add New Post /wp-admin/post-new.php5.97 ▼1.0064.92 ▼1,288.50
Media Library /wp-admin/upload.php3.30 ▼0.0024.35 ▼6.81

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WordPress Search By Title Only: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲6115.11 ▼0.197.21 ▲1.362.13 ▼0.00
Dashboard /wp-admin2,895 ▲346.14 ▼0.12138.23 ▲3.89201.41 ▲34.68
Posts /wp-admin/edit.php2,688 ▼03.24 ▲0.0060.92 ▲0.86135.96 ▼5.86
Add New Post /wp-admin/post-new.php1,660 ▼9216.11 ▼4.95426.42 ▼19.68183.68 ▲10.42
Media Library /wp-admin/upload.php1,701 ▼05.50 ▼0.00136.63 ▲0.17219.96 ▲15.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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_filter() in wp-content/plugins/search-by-title-only/search_by_title_only.php:31

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

search-by-title-only/search_by_title_only.php 92% from 13 tests

This is the main PHP file of "WordPress Search By Title Only" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("search-by-title-only.php" instead of "search_by_title_only.php")

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 plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14822

PHP code Passed 2 tests

A short review 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.42
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin