79% admin-category-search

Code Review | WP Admin Category Search

WordPress plugin WP Admin Category Search scored 79% from 54 tests.

About plugin

  • Plugin page: admin-category-se...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.1
  • WordPress version: 5.8.1
  • First release: Sep 30, 2014
  • Latest release: Mar 9, 2022
  • Number of updates: 27
  • Update frequency: every 111.4 days
  • Top authors: atillaordog (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active / 11,026 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by WP Admin Category Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0230.21 ▲0.41
Dashboard /wp-admin3.09 ▲0.0236.68 ▼5.82
Posts /wp-admin/edit.php3.15 ▲0.0336.82 ▲1.71
Add New Post /wp-admin/post-new.php5.45 ▲0.0173.37 ▼749.93
Media Library /wp-admin/upload.php3.03 ▲0.0325.03 ▼0.14
Category search /wp-admin/options-general.php?page=wp_admin_category_search_settings3.0123.77

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 4 new options
New WordPress options
wp_admin_category_search_categoriesTab
wp_admin_category_search_categoriesInField
wp_admin_category_search_showSubcategories
wp_admin_category_search_author

Browser metrics Passed 4 tests

An overview of browser requirements for WP Admin Category Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,725 ▲12416.13 ▲0.505.64 ▼3.4676.53 ▼1.94
Dashboard /wp-admin2,939 ▲476.12 ▼0.21117.63 ▼9.03166.89 ▼1.58
Posts /wp-admin/edit.php2,749 ▲93.27 ▲0.0365.53 ▼0.56140.80 ▼0.18
Add New Post /wp-admin/post-new.php2,328 ▼1,47915.72 ▼3.01396.56 ▼76.69153.71 ▼6.17
Media Library /wp-admin/upload.php1,761 ▲95.57 ▲0.07145.86 ▼7.56183.91 ▼7.03
Category search /wp-admin/options-general.php?page=wp_admin_category_search_settings1,1152.6256.13113.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 4 options
    • wp_admin_category_search_author
    • wp_admin_category_search_categoriesInField
    • wp_admin_category_search_showSubcategories
    • wp_admin_category_search_categoriesTab

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/admin-category-search/admin-category-search.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/admin-category-search/settings.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wp_admin_category_search_settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: adminCategorySearch is not defined" "ReferenceError: adminCategorySearch is not defined\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=wp_admin_category_search_settings:202:4)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
    • > GET request to /wp-admin/options-general.php?page=wp_admin_category_search_settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught ReferenceError: adminCategorySearch is not defined

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
1 plugin tags: categories

admin-category-search/admin-category-search.php Passed 13 tests

The entry point to "WP Admin Category Search" version 1.2 is a PHP file that has certain tags in its header comment area
77 characters long description:
This plugin adds search functionality to taxonomies and dropdowns like author

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected436 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6451195
PO File23838122
PHP21422119

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected