84% ignore-block-name-in-search

Code Review | Ignore HTML and shortcodes in search

WordPress plugin Ignore HTML and shortcodes in search scored84%from 54 tests.

About plugin

  • Plugin page: ignore-block-name...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 6, 2023
  • Latest release: Oct 6, 2023
  • Number of updates: 5
  • Update frequency: every 54.6 days
  • Top authors: zodiac1978 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /892 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.61ms] Passed 4 tests

A check of server-side resources used by Ignore HTML and shortcodes in search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.38 ▼15.61
Dashboard /wp-admin3.33 ▲0.0250.53 ▼3.07
Posts /wp-admin/edit.php3.38 ▲0.0251.02 ▲3.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.17 ▲0.54
Media Library /wp-admin/upload.php3.25 ▲0.0235.83 ▼4.30

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Ignore HTML and shortcodes in search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.221.64 ▼0.2942.22 ▼1.68
Dashboard /wp-admin2,195 ▲185.65 ▲0.0786.58 ▼8.4143.17 ▼0.07
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0240.70 ▲0.1638.43 ▲1.81
Add New Post /wp-admin/post-new.php1,526 ▼223.60 ▲0.46659.35 ▲54.8758.30 ▲0.67
Media Library /wp-admin/upload.php1,394 ▼34.25 ▲0.0897.26 ▼6.3746.00 ▲2.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
  • 1× 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/ignore-block-name-in-search/wp-search-ignore-block-names.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: editor, gutenberg, better search, search

ignore-block-name-in-search/wp-search-ignore-block-names.php 85% from 13 tests

The main PHP script in "Ignore HTML and shortcodes in search" version 1.2.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ignore-block-name-in-search.php" instead of "wp-search-ignore-block-names.php")
  • Domain Path: The domain path folder does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected83 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1349383

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods666.67%
▷ Protected methods00.00%
▷ Private methods333.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin