99% customize-search-results-order

Code Review | Customize search results order

WordPress plugin Customize search results order scored 99% from 54 tests.

About plugin

  • Plugin page: customize-search-...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.5
  • WordPress version: 5.8.1
  • First release: Apr 30, 2018
  • Latest release: Apr 30, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ondrejd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 679 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1333.29 ▲12.55
Dashboard /wp-admin3.08 ▲0.0250.72 ▲8.48
Posts /wp-admin/edit.php3.16 ▲0.0646.86 ▼26.17
Add New Post /wp-admin/post-new.php5.44 ▲0.0095.97 ▼545.84
Media Library /wp-admin/upload.php3.02 ▲0.0236.32 ▼0.67
Customize search /wp-admin/tools.php?page=odwpasp-admin_page2.9932.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,691 ▲9515.94 ▲0.487.07 ▼1.2149.07 ▼0.89
Dashboard /wp-admin2,979 ▲456.08 ▼0.14147.42 ▼17.97121.95 ▲0.86
Posts /wp-admin/edit.php2,751 ▲152.70 ▲0.0174.33 ▲9.1492.11 ▼4.61
Add New Post /wp-admin/post-new.php1,668 ▲8721.34 ▲1.13282.31 ▼124.41118.24 ▲6.28
Media Library /wp-admin/upload.php1,819 ▲155.02 ▲0.02174.77 ▲24.12124.30 ▲1.33
Customize search /wp-admin/tools.php?page=odwpasp-admin_page1,1632.1059.6997.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


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:
LanguageFilesBlank linesComment linesLines of code
PO File1386093

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 code0.52
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 functions16100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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