78% wp-search-url

Code Review | Wp Search Url

WordPress plugin Wp Search Url scored78%from 54 tests.

About plugin

  • Plugin page: wp-search-url
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2
  • WordPress version: 6.3.1
  • First release: Jun 17, 2015
  • Latest release: Jul 13, 2015
  • Number of updates: 6
  • Update frequency: every 4.3 days
  • Top authors: swadeshswain (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /5,833 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Wp Search Url
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.73 ▼21.94
Dashboard /wp-admin3.32 ▲0.0156.88 ▼3.37
Posts /wp-admin/edit.php3.37 ▲0.0146.69 ▼8.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.04 ▼31.16
Media Library /wp-admin/upload.php3.24 ▲0.0135.29 ▼3.03

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
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Wp Search Url
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6513.15 ▼1.511.83 ▼0.5642.96 ▼21.43
Dashboard /wp-admin2,207 ▲194.82 ▼0.09112.95 ▼8.8440.18 ▼1.81
Posts /wp-admin/edit.php2,093 ▼22.02 ▲0.0434.24 ▼18.3234.10 ▼6.30
Add New Post /wp-admin/post-new.php1,536 ▲2223.16 ▲5.56668.90 ▼23.8053.69 ▼19.55
Media Library /wp-admin/upload.php1,392 ▲74.13 ▼0.10110.07 ▼2.9748.20 ▲2.93
Wp Search Url /wp-admin/wp-search-url.php260.440.0713.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
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 is_admin() in wp-content/plugins/wp-search-url/wp-search-url.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/wp-search-url.php
    • > Network (severe)
    wp-admin/wp-search-url.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Screenshot #3 (Image 3) image missing
Please take inspiration from this readme.txt

wp-search-url/wp-search-url.php Passed 13 tests

This is the main PHP file of "Wp Search Url" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Redirects ?s=swadesh searches to /search/swadesh

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
There were no executable files found in this plugin58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP127858

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.75
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%
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
No PNG images were found in this plugin