72% search-in-place

Code Review | Search in Place

WordPress plugin Search in Place scored72%from 54 tests.

About plugin

  • Plugin page: search-in-place
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.5-6.4
  • WordPress version: 6.3.1
  • First release: Jun 29, 2012
  • Latest release: Nov 12, 2023
  • Number of updates: 184
  • Update frequency: every 22.6 days
  • Top authors: codepeople (100%)

Code review

54 tests

User reviews

51 reviews

Install metrics

3,000+ active /165,463 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 gracefully, with no errors

Server metrics [RAM: ▲0.29MB] [CPU: ▲1.29ms] Passed 4 tests

A check of server-side resources used by Search in Place
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3145.45 ▲5.83
Dashboard /wp-admin3.59 ▲0.2848.74 ▲0.73
Posts /wp-admin/edit.php3.70 ▲0.3451.72 ▲2.93
Add New Post /wp-admin/post-new.php6.18 ▲0.2998.05 ▲0.17
Media Library /wp-admin/upload.php3.51 ▲0.2835.81 ▲1.33

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
installed_search-in-place
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Search in Place
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15813.47 ▼0.679.35 ▲7.7243.50 ▲3.12
Dashboard /wp-admin2,227 ▲535.51 ▼0.1286.35 ▼8.4439.80 ▼1.23
Posts /wp-admin/edit.php2,135 ▲321.95 ▼0.0640.27 ▲0.3036.58 ▲3.01
Add New Post /wp-admin/post-new.php6,227 ▲4,70126.14 ▲2.82841.59 ▲176.7352.47 ▼10.39
Media Library /wp-admin/upload.php1,429 ▲294.18 ▼0.05101.02 ▼1.8241.42 ▼4.22
Upgrade /wp-admin/codepeople_search_in_place.php?page=search_in_place_upgrade260.410.0813.70
Search In Place /wp-admin/codepeople_search_in_place.php260.410.066.37
Online Help /wp-admin/codepeople_search_in_place.php?page=search_in_place_help260.410.067.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • installed_search-in-place
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% 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 0% 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 take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/search-in-place/php/autocomplete.clss.php
    • > /wp-content/plugins/search-in-place/php/searchinplace.clss.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-in-place/banner.php:106
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-in-place/banner.php:106
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/search-in-place/pagebuilders/siteorigin/siteorigin-cpsp/siteorigin-cpsp.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/search-in-place/pagebuilders/siteorigin/siteorigin-cpsp/tpl/siteorigin-search-in-place.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/codepeople_search_in_place.php?page=search_in_place_upgrade
    • > Network (severe)
    wp-admin/codepeople_search_in_place.php?page=search_in_place_upgrade - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/codepeople_search_in_place.php
    • > Network (severe)
    wp-admin/codepeople_search_in_place.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/codepeople_search_in_place.php?page=search_in_place_help
    • > Network (severe)
    wp-admin/codepeople_search_in_place.php?page=search_in_place_help - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #2 in search-in-place/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
The official readme.txt might help

search-in-place/codepeople_search_in_place.php 85% from 13 tests

Analyzing the main PHP file in "Search in Place" version 1.1.4
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("search-in-place.php" instead of "codepeople_search_in_place.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 344 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,633 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP102051011,442
PO File54054821,092
JavaScript39725824
HTML100180
CSS414294
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity31.67
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity4.76
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods49
▷ Static methods36.12%
▷ Public methods4183.67%
▷ Protected methods24.08%
▷ Private methods612.24%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/arrow.png0.22KB0.11KB▼ 49.34%
css/close-icon.png0.25KB0.25KB0.00%