84% admin-search

Code Review | Admin Search

WordPress plugin Admin Search scored84%from 54 tests.

About plugin

  • Plugin page: admin-search
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.2-6.2.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 34
  • Update frequency: every 32.6 days
  • Top authors: andrewstichbury (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

900+ active /8,258 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by Admin Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.13 ▼4.54
Dashboard /wp-admin3.35 ▲0.0152.84 ▼11.81
Posts /wp-admin/edit.php3.41 ▲0.0552.16 ▼2.54
Add New Post /wp-admin/post-new.php5.95 ▲0.0788.90 ▼17.52
Media Library /wp-admin/upload.php3.27 ▲0.0539.83 ▲3.42
Admin Search /wp-admin/options-general.php?page=admin-search3.2435.99

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

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

Browser metrics Passed 4 tests

Admin Search: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.44 ▲0.041.83 ▲0.1244.66 ▼0.51
Dashboard /wp-admin2,219 ▲395.77 ▲0.1787.82 ▼0.3843.57 ▼0.98
Posts /wp-admin/edit.php2,121 ▲212.53 ▲0.5451.63 ▲16.2036.70 ▼1.98
Add New Post /wp-admin/post-new.php1,552 ▲2622.82 ▲5.24624.09 ▼43.9233.24 ▼25.55
Media Library /wp-admin/upload.php1,424 ▲274.26 ▲0.02103.24 ▼5.0776.52 ▲29.43
Admin Search /wp-admin/options-general.php?page=admin-search1,0261.9736.5434.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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 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 take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-search/settings.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/admin-search/admin-results.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-search/ui.php:165
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-search/ajax.php:226

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: admin, advanced, search

admin-search/admin-search.php 92% from 13 tests

The entry point to "Admin Search" version 1.3.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 208 characters long)

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 detected2,796 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3386.84%
▷ Anonymous functions513.16%
▷ Global constants2100.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