72% search-in-place

Code Review | Search in Place

WordPress plugin Search in Place scored 72% from 53 tests.

About plugin

  • Plugin page: search-in-place
  • Plugin version: 1.0.86
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.5-5.8
  • WordPress version: 5.8.1
  • First release: Jun 29, 2012
  • Latest release: Oct 22, 2021
  • Number of updates: 146
  • Update frequency: every 23.3 days
  • Top authors: codepeople (100%)

Code review

53 tests

User reviews

39 reviews

Install metrics

3,000+ active / 108,271 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼264.62ms] Passed 4 tests

Server-side resources used by Search in Place
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1643.15 ▲24.35
Dashboard /wp-admin3.10 ▲0.0542.34 ▼3.63
Posts /wp-admin/edit.php3.22 ▲0.1139.80 ▼0.31
Add New Post /wp-admin/post-new.php5.46 ▲0.0496.56 ▼1,048.46
Media Library /wp-admin/upload.php3.05 ▲0.0432.52 ▼6.07

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 1 new option
New WordPress options
installed_search-in-place

Browser metrics Passed 4 tests

This is an overview of browser requirements for Search in Place
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,838 ▲23216.26 ▲0.7711.25 ▲0.0748.26 ▼1.27
Dashboard /wp-admin2,974 ▲1245.95 ▲0.18139.01 ▲5.38103.45 ▼4.08
Posts /wp-admin/edit.php2,747 ▲412.82 ▲0.1271.59 ▲9.4787.43 ▼2.94
Add New Post /wp-admin/post-new.php1,699 ▲4618.85 ▲0.05352.85 ▼27.39126.35 ▲16.63
Media Library /wp-admin/upload.php1,816 ▲445.01 ▼0.01141.19 ▼6.57107.17 ▼2.92
Online Help /wp-admin/codepeople_search_in_place.php?page=search_in_place_help260.900.0610.83
Search In Place /wp-admin/codepeople_search_in_place.php260.900.0912.40
Upgrade /wp-admin/codepeople_search_in_place.php?page=search_in_place_upgrade260.900.0810.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • installed_search-in-place

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/search-in-place/php/searchinplace.clss.php
    • > /wp-content/plugins/search-in-place/php/autocomplete.clss.php
    • > /wp-content/plugins/search-in-place/pagebuilders/siteorigin/siteorigin-cpsp/tpl/siteorigin-search-in-place.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > 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)
    • > 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_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)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (23 tag instead of maximum 10)
  • Screenshots: A description for screenshot #2 is required in search-in-place/assets to your readme.txt
The official readme.txt might help

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

The main PHP script in "Search in Place" version 1.0.86 is automatically included on every request by WordPress
It is important to fix the following:
  • 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: If Twitter did it, so should we! Keep the description under 140 characters (currently 344 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,504 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP102041021,435
PO File53954681,067
JavaScript28520733
HTML100179
CSS312289
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity28.17
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity4.26
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods50
▷ Static methods36.00%
▷ Public methods4182.00%
▷ Protected methods36.00%
▷ Private methods612.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
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%