Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼141.05ms] Passed 4 tests
This is a short check of server-side resources used by Customize search results order
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.29 ▲12.55 |
Dashboard /wp-admin | 3.08 ▲0.02 | 50.72 ▲8.48 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 46.86 ▼26.17 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 95.97 ▼545.84 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 36.32 ▼0.67 |
Customize search /wp-admin/tools.php?page=odwpasp-admin_page | 2.99 | 32.76 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Customize search results order
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲95 | 15.94 ▲0.48 | 7.07 ▼1.21 | 49.07 ▼0.89 |
Dashboard /wp-admin | 2,979 ▲45 | 6.08 ▼0.14 | 147.42 ▼17.97 | 121.95 ▲0.86 |
Posts /wp-admin/edit.php | 2,751 ▲15 | 2.70 ▲0.01 | 74.33 ▲9.14 | 92.11 ▼4.61 |
Add New Post /wp-admin/post-new.php | 1,668 ▲87 | 21.34 ▲1.13 | 282.31 ▼124.41 | 118.24 ▲6.28 |
Media Library /wp-admin/upload.php | 1,819 ▲15 | 5.02 ▲0.02 | 174.77 ▲24.12 | 124.30 ▲1.33 |
Customize search /wp-admin/tools.php?page=odwpasp-admin_page | 1,163 | 2.10 | 59.69 | 97.35 |
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
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: search, meta box
customize-search-results-order/odwp-add_search_priorities.php 77% from 13 tests
The entry point to "Customize search results order" version 1.2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 243 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("customize-search-results-order.php" instead of "odwp-add_search_priorities.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected707 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 75 | 188 | 456 |
JavaScript | 1 | 19 | 35 | 134 |
PO File | 1 | 38 | 60 | 93 |
CSS | 1 | 3 | 26 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin