90% wp-search-exclude-categories-and-tags

Code Review | WP Search Exclude Categories and Tags

WordPress plugin WP Search Exclude Categories and Tags scored 90% from 54 tests.

About plugin

  • Plugin page: wp-search-exclude...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.0.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: Jan 30, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: eastsidecode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 473 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.00MB] [CPU: ▼5.10ms] Passed 4 tests

Server-side resources used by WP Search Exclude Categories and Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.09 ▼11.07
Dashboard /wp-admin3.31 ▲0.0147.94 ▼4.06
Posts /wp-admin/edit.php3.36 ▲0.0046.13 ▼0.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.05 ▼5.00
Media Library /wp-admin/upload.php3.23 ▲0.0034.52 ▲4.44

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Search Exclude Categories and Tags
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.48 ▼1.081.68 ▼0.1639.54 ▼4.63
Dashboard /wp-admin2,206 ▲185.90 ▼0.00107.35 ▼10.9242.78 ▼2.97
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0141.41 ▲4.8436.62 ▲1.40
Add New Post /wp-admin/post-new.php1,545 ▲2418.18 ▼4.96575.76 ▼104.7659.49 ▲0.72
Media Library /wp-admin/upload.php1,391 ▲64.20 ▲0.02100.94 ▼0.3043.19 ▼4.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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 | 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: tags, search engines, categories, noindex

wp-search-exclude-categories-and-tags/wp-search-exclude-catgories-tags.php 92% from 13 tests

The main PHP file in "WP Search Exclude Categories and Tags" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-search-exclude-categories-and-tags.php" instead of "wp-search-exclude-catgories-tags.php")

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
Everything looks great! No dangerous files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14107

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code1.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 functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin