84% admin-category-search

Code Review | WP Admin Category Search

WordPress plugin WP Admin Category Search scored84%from 54 tests.

About plugin

  • Plugin page: admin-category-se...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 30, 2014
  • Latest release: May 9, 2023
  • Number of updates: 28
  • Update frequency: every 122.7 days
  • Top authors: atillaordog (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /18,203 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.96ms] Passed 4 tests

This is a short check of server-side resources used by WP Admin Category Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.09 ▲2.26
Dashboard /wp-admin3.34 ▲0.0346.70 ▼3.07
Posts /wp-admin/edit.php3.39 ▲0.0344.80 ▼2.85
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.91 ▼13.52
Media Library /wp-admin/upload.php3.26 ▲0.0337.72 ▼0.39
Category search /wp-admin/options-general.php?page=wp_admin_category_search_settings3.2330.34

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
wp_admin_category_search_categoriesTab
widget_theysaidso_widget
wp_admin_category_search_showSubcategories
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
wp_admin_category_search_author
wp_admin_category_search_categoriesInField

Browser metrics Passed 4 tests

This is 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 /2,832 ▲9713.23 ▼1.151.84 ▲0.0242.18 ▼1.88
Dashboard /wp-admin2,210 ▲224.89 ▼0.01113.61 ▲11.2240.13 ▼4.07
Posts /wp-admin/edit.php2,096 ▲42.02 ▲0.0134.32 ▼9.4332.53 ▼4.68
Add New Post /wp-admin/post-new.php1,524 ▼923.30 ▲0.15682.20 ▼15.8457.00 ▲2.25
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.0496.38 ▼5.3141.40 ▼3.46
Category search /wp-admin/options-general.php?page=wp_admin_category_search_settings8162.0523.6926.78

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 10 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • wp_admin_category_search_author
    • wp_admin_category_search_categoriesInField
    • wp_admin_category_search_showSubcategories
    • wp_admin_category_search_categoriesTab
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/admin-category-search/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/admin-category-search/admin-category-search.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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

"WP Admin Category Search" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin441 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6451197
PHP21422122
PO File23838122

PHP code Passed 2 tests

This is a very shot review 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
There were not PNG files found in your plugin