94% advanced-admin-search

Code Review | Advanced Admin Search

WordPress plugin Advanced Admin Search scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-admin-se...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.7.2
  • WordPress version: 5.9.2
  • First release: Sep 27, 2018
  • Latest release: May 20, 2021
  • Number of updates: 17
  • Update frequency: every 56.8 days
  • Top authors: kuroit (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 64,973 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼291.90ms] Passed 4 tests

A check of server-side resources used by Advanced Admin Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0256.98 ▲7.27
Dashboard /wp-admin3.44 ▲0.0332.80 ▲0.32
Posts /wp-admin/edit.php3.66 ▲0.0235.98 ▼0.44
Add New Post /wp-admin/post-new.php6.90 ▼0.0792.50 ▼1,168.48
Media Library /wp-admin/upload.php3.31 ▲0.0224.08 ▲1.00
Advanced Admin Search /wp-admin/tools.php?page=advanced-admin-search3.2822.28

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Advanced Admin Search: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,950 ▲19616.39 ▲0.446.96 ▲1.043.39 ▲0.38
Dashboard /wp-admin2,990 ▲1066.62 ▲0.05132.67 ▼6.58178.65 ▲16.91
Posts /wp-admin/edit.php2,769 ▲783.36 ▼0.0861.72 ▼0.57145.21 ▲1.17
Add New Post /wp-admin/post-new.php1,739 ▲7822.90 ▲5.55386.36 ▼33.88203.06 ▲50.07
Media Library /wp-admin/upload.php1,774 ▲765.94 ▲0.20126.00 ▼23.67227.48 ▲40.63
Advanced Admin Search /wp-admin/tools.php?page=advanced-admin-search1,2472.8553.98167.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-admin-search/menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Kuroit\\AdvancedAdminSearch\\add_action() in wp-content/plugins/advanced-admin-search/searchresults.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration Passed 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
3 plugin tags: custom post type search, advance search, admin search

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

The entry point to "Advanced Admin Search" version 1.1.2 is a PHP file that has certain tags in its header comment area
79 characters long description:
Easily search everything in WordPress admin panel from one single search field.

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 plugin1,732 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity15.75
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected