10% omnisearch

Code Review | Global Admin Search

WordPress plugin Global Admin Search scored10%from 54 tests.

About plugin

  • Plugin page: omnisearch
  • Plugin version: 0.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.7
  • WordPress version: 6.3.1
  • First release: Aug 28, 2013
  • Latest release: Oct 27, 2013
  • Number of updates: 8
  • Update frequency: every 7.4 days
  • Top authors: georgestephanis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,453 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-posts.php+101
    Declaration of WP_Search_Posts::bulk_actions() should be compatible with WP_List_Table::bulk_actions($which = '')

Server metrics [RAM: ▼1.83MB] [CPU: ▼52.27ms] Passed 4 tests

Server-side resources used by Global Admin Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.97 ▼3.87
Dashboard /wp-admin2.11 ▼1.197.35 ▼44.01
Posts /wp-admin/edit.php2.11 ▼1.256.15 ▼45.46
Add New Post /wp-admin/post-new.php2.11 ▼3.787.22 ▼87.73
Media Library /wp-admin/upload.php2.11 ▼1.125.94 ▼31.86
/wp-admin/admin.php?page=search2.116.32

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Global Admin Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.18 ▼0.181.80 ▼0.2944.17 ▼1.77
Dashboard /wp-admin2,224 ▲505.61 ▲0.0493.53 ▼7.9343.40 ▼2.18
Posts /wp-admin/edit.php2,129 ▲291.97 ▼0.0334.88 ▼5.3234.53 ▼2.50
Add New Post /wp-admin/post-new.php1,556 ▲2818.40 ▼4.89616.57 ▼94.2561.78 ▲9.29
Media Library /wp-admin/upload.php1,420 ▲204.17 ▼0.03102.49 ▲0.1144.01 ▼0.66
/wp-admin/admin.php?page=search8281.9927.1932.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-posts.php+101
    Declaration of WP_Search_Posts::bulk_actions() should be compatible with WP_List_Table::bulk_actions($which = '')
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=search
    • > Warning in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-posts.php+101
    Declaration of WP_Search_Posts::bulk_actions() should be compatible with WP_List_Table::bulk_actions($which = '')

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
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-posts.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-plugin-install-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-plugins.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-media-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-media.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/omnisearch/omnisearch.php:11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-comments.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-comments-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-comments.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-posts.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-posts.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-comments-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-comments.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/omnisearch/wp-admin/includes/class-wp-search-posts.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
2 plugin tags: core-plugins, omnisearch

omnisearch/omnisearch.php Passed 13 tests

The entry point to "Global Admin Search" version 0.9.1 is a PHP file that has certain tags in its header comment area
74 characters long description:
Enables a Global Admin Search in WordPress. Feature pitch for Core in 3.8.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected476 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP69110379
CSS125097

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.18
Average class complexity6.40
▷ Minimum class complexity3.00
▷ Maximum class complexity16.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods36.82%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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