Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.88MB] [CPU: ▼190.85ms] Passed 4 tests
This is a short check of server-side resources used by Admin Global Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.75 ▼1.09 | 3.63 ▼21.83 |
Dashboard /wp-admin | 1.77 ▼1.30 | 3.43 ▼40.91 |
Posts /wp-admin/edit.php | 1.77 ▼1.34 | 3.48 ▼30.55 |
Add New Post /wp-admin/post-new.php | 1.77 ▼3.67 | 3.61 ▼670.11 |
Media Library /wp-admin/upload.php | 1.77 ▼1.23 | 3.97 ▼20.51 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Admin Global Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,725 ▲124 | 15.49 ▼0.07 | 6.27 ▼0.31 | 75.67 ▼0.72 |
Dashboard /wp-admin | 2,988 ▲89 | 6.21 ▲0.08 | 115.99 ▼16.27 | 201.19 ▲21.21 |
Posts /wp-admin/edit.php | 2,799 ▲62 | 3.12 ▼0.10 | 62.78 ▼0.77 | 150.94 ▲9.86 |
Add New Post /wp-admin/post-new.php | 3,932 ▲165 | 18.15 ▼1.09 | 421.25 ▼7.83 | 236.31 ▲71.58 |
Media Library /wp-admin/upload.php | 1,808 ▲59 | 5.55 ▲0.00 | 127.61 ▼15.62 | 217.95 ▲30.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/admin-global-search/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 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
4 plugin tags: page, admin, post, search
admin-global-search/index.php 92% from 13 tests
Analyzing the main PHP file in "Admin Global Search" version 1.0.0
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("admin-global-search.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected244 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 23 | 9 | 113 |
CSS | 1 | 20 | 0 | 106 |
JavaScript | 1 | 3 | 0 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 33.96KB | 15.10KB | ▼ 55.55% |
src/search.png | 116.04KB | 30.39KB | ▼ 73.81% |
screenshot-2.png | 44.16KB | 19.09KB | ▼ 56.77% |