94% exclude-from-search

Code Review | Exclude From Search

WordPress plugin Exclude From Search scored 94% from 54 tests.

About plugin

  • Plugin page: exclude-from-search
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0
  • WordPress version: 5.8.1
  • First release: Feb 22, 2011
  • Latest release: Jan 22, 2019
  • Number of updates: 11
  • Update frequency: every 262.8 days
  • Top authors: albertochoa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 2,772 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.00MB] [CPU: ▼139.24ms] Passed 4 tests

Analyzing server-side resources used by Exclude From Search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0034.65 ▼1.34
Dashboard /wp-admin3.06 ▲0.0147.70 ▲13.04
Posts /wp-admin/edit.php3.11 ▲0.0139.19 ▼4.41
Add New Post /wp-admin/post-new.php5.43 ▼0.0191.87 ▼550.72
Media Library /wp-admin/upload.php3.00 ▲0.0029.70 ▼0.50

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Exclude From Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.94 ▲0.439.08 ▼2.0049.12 ▲1.86
Dashboard /wp-admin2,970 ▲805.94 ▲0.09152.15 ▲4.78108.93 ▼5.59
Posts /wp-admin/edit.php2,739 ▲32.72 ▲0.0064.48 ▲1.2591.13 ▼3.78
Add New Post /wp-admin/post-new.php1,675 ▲318.68 ▼0.30356.26 ▼53.49104.30 ▼5.23
Media Library /wp-admin/upload.php1,810 ▼05.04 ▼0.01149.54 ▲4.61116.21 ▼3.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exclude-from-search/exclude-from-search.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: search, page, exclude, attachment

exclude-from-search/exclude-from-search.php Passed 13 tests

The main PHP script in "Exclude From Search" version 0.2.1 is automatically included on every request by WordPress
59 characters long description:
Exclude Page and Attachment post types from search results.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15167

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin