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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 30.21 ▲0.41 |
Dashboard /wp-admin | 3.09 ▲0.02 | 36.68 ▼5.82 |
Posts /wp-admin/edit.php | 3.15 ▲0.03 | 36.82 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 73.37 ▼749.93 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 25.03 ▼0.14 |
Category search /wp-admin/options-general.php?page=wp_admin_category_search_settings | 3.01 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,725 ▲124 | 16.13 ▲0.50 | 5.64 ▼3.46 | 76.53 ▼1.94 |
Dashboard /wp-admin | 2,939 ▲47 | 6.12 ▼0.21 | 117.63 ▼9.03 | 166.89 ▼1.58 |
Posts /wp-admin/edit.php | 2,749 ▲9 | 3.27 ▲0.03 | 65.53 ▼0.56 | 140.80 ▼0.18 |
Add New Post /wp-admin/post-new.php | 2,328 ▼1,479 | 15.72 ▼3.01 | 396.56 ▼76.69 | 153.71 ▼6.17 |
Media Library /wp-admin/upload.php | 1,761 ▲9 | 5.57 ▲0.07 | 145.86 ▼7.56 | 183.91 ▼7.03 |
Category search /wp-admin/options-general.php?page=wp_admin_category_search_settings | 1,115 | 2.62 | 56.13 | 113.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 45 | 1 | 195 |
PO File | 2 | 38 | 38 | 122 |
PHP | 2 | 14 | 22 | 119 |
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 code | 0.26 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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