94% press-tab-to-search

Code Review | Press Tab to Search - Search From Addressbar

WordPress plugin Press Tab to Search - Search From Addressbar scored 94% from 54 tests.

About plugin

  • Plugin page: press-tab-to-search
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-5.0.3
  • WordPress version: 5.8.1
  • First release: Dec 3, 2015
  • Latest release: Feb 19, 2019
  • Number of updates: 8
  • Update frequency: every 146.8 days
  • Top authors: onetarek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,109 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼134.03ms] Passed 4 tests

A check of server-side resources used by Press Tab to Search - Search From Addressbar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0134.63 ▲8.81
Dashboard /wp-admin3.07 ▲0.0144.23 ▼0.18
Posts /wp-admin/edit.php3.12 ▲0.0163.03 ▲19.05
Add New Post /wp-admin/post-new.php5.43 ▼0.00102.12 ▼538.02
Media Library /wp-admin/upload.php3.01 ▲0.0130.19 ▼6.72

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Press Tab to Search - Search From Addressbar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲8515.85 ▲0.2910.55 ▲2.1147.53 ▲1.68
Dashboard /wp-admin2,970 ▲365.91 ▼0.03149.09 ▲0.60121.37 ▲9.23
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0176.32 ▲10.58100.29 ▲8.43
Add New Post /wp-admin/post-new.php1,498 ▼17818.84 ▼0.03378.14 ▼11.98103.82 ▼7.11
Media Library /wp-admin/upload.php1,810 ▼05.01 ▼0.01141.86 ▼0.21119.43 ▲1.42

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
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/press-tab-to-search/press-tab-to-search.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

press-tab-to-search/press-tab-to-search.php 92% from 13 tests

"Press Tab to Search - Search From Addressbar" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18827

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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