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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.97 ▼3.87 |
Dashboard /wp-admin | 2.11 ▼1.19 | 7.35 ▼44.01 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.15 ▼45.46 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.22 ▼87.73 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.94 ▼31.86 |
/wp-admin/admin.php?page=search | 2.11 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.18 ▼0.18 | 1.80 ▼0.29 | 44.17 ▼1.77 |
Dashboard /wp-admin | 2,224 ▲50 | 5.61 ▲0.04 | 93.53 ▼7.93 | 43.40 ▼2.18 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.97 ▼0.03 | 34.88 ▼5.32 | 34.53 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 18.40 ▼4.89 | 616.57 ▼94.25 | 61.78 ▲9.29 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.17 ▼0.03 | 102.49 ▲0.11 | 44.01 ▼0.66 |
/wp-admin/admin.php?page=search | 828 | 1.99 | 27.19 | 32.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 91 | 10 | 379 |
CSS | 1 | 25 | 0 | 97 |
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 code | 0.18 |
Average class complexity | 6.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 3 | 6.82% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected