90% exclude-posts-from-search-results

Code Review | Exclude Posts from Search Results

WordPress plugin Exclude Posts from Search Results scored90%from 54 tests.

About plugin

  • Plugin page: exclude-posts-fro...
  • Plugin version: 1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2021
  • Latest release: Jun 12, 2023
  • Number of updates: 18
  • Update frequency: every 34.6 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,258 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.70ms] Passed 4 tests

An overview of server-side resources used by Exclude Posts from Search Results
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.26 ▼1.19
Dashboard /wp-admin3.37 ▲0.0249.86 ▼16.39
Posts /wp-admin/edit.php3.49 ▲0.1353.74 ▲4.77
Add New Post /wp-admin/post-new.php5.97 ▲0.0888.56 ▼15.03
Media Library /wp-admin/upload.php3.29 ▲0.0641.26 ▲1.80

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
gwsepfsr_options
widget_recent-comments
can_compress_scripts
gwsepfsr_user_options
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Exclude Posts from Search Results
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5214.74 ▲0.381.60 ▼0.2044.23 ▲0.36
Dashboard /wp-admin2,219 ▲395.63 ▼0.0394.47 ▲0.5841.80 ▼5.79
Posts /wp-admin/edit.php2,184 ▲842.08 ▲0.0641.80 ▲4.8738.76 ▼0.02
Add New Post /wp-admin/post-new.php6,250 ▲4,72325.92 ▲2.64928.56 ▲256.6056.81 ▼8.84
Media Library /wp-admin/upload.php1,490 ▲904.25 ▲0.0896.68 ▼2.1944.07 ▼0.53

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • gwsepfsr_user_options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • gwsepfsr_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: Please take inspiration from this readme.txt

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

The principal PHP file in "Exclude Posts from Search Results" v. 1.6 is loaded by WordPress automatically on each request
96 characters long description:
This plugin excludes posts and pages from site's search results without harming SEO performance.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,669 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PO File125405691,657
PHP36818709
CSS2540291
JavaScript2208
SVG1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity37.00
▷ Minimum class complexity25.00
▷ Maximum class complexity48.00
Average method complexity4.70
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin