83% wp-advanced-search

Code Review | WordPress WP-Advanced-Search

WordPress plugin WordPress WP-Advanced-Search scored83%from 54 tests.

About plugin

  • Plugin page: wp-advanced-search
  • Plugin version: 3.3.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 6, 2013
  • Latest release: Aug 4, 2023
  • Number of updates: 107
  • Update frequency: every 33.5 days
  • Top authors: Evigeo (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

700+ active /43,218 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.90MB] [CPU: ▲2.19ms] Passed 4 tests

Server-side resources used by WordPress WP-Advanced-Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /68.33 ▲64.8213,437,778.37 ▲13,437,728.28
Dashboard /wp-admin4.23 ▲0.8861.73 ▲8.35
Posts /wp-admin/edit.php4.35 ▲0.9455.03 ▼3.35
Add New Post /wp-admin/post-new.php6.81 ▲0.8892.56 ▼2.27
Media Library /wp-admin/upload.php4.16 ▲0.8847.23 ▲6.05
Autocorrect /wp-admin/admin.php?page=WP_Advanced_Search_Callback_Autocorrection4.1142.34
Import/Export /wp-admin/admin.php?page=WP_Advanced_Search_Callback_ExportImport4.1238.14
Readme /wp-admin/admin.php?page=WP_Advanced_Search_Callback_Documentation4.1238.22
Autocompletion /wp-admin/admin.php?page=WP_Advanced_Search_Callback_Autocompletion4.1246.86
Display options /wp-admin/admin.php?page=WP_Advanced_Search_Callback_Pagination4.1438.78
Templates and styles /wp-admin/admin.php?page=WP_Advanced_Search_Callback_Styles4.1442.14
Advanced Search /wp-admin/admin.php?page=wp-advanced-search4.1340.08

Server storage [IO: ▲3.86MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 116 new files
Database: 2 new tables, 6 new options
New tables
wp_advsh
wp_autosuggest
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WordPress WP-Advanced-Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲19313.58 ▼0.5611.57 ▲9.5841.97 ▼3.16
Dashboard /wp-admin2,228 ▲515.58 ▼0.1095.18 ▼7.2974.55 ▲13.95
Posts /wp-admin/edit.php2,148 ▲482.01 ▲0.0034.01 ▼8.6239.12 ▲0.74
Add New Post /wp-admin/post-new.php1,719 ▲19122.26 ▼0.55729.35 ▲38.7345.44 ▼26.77
Media Library /wp-admin/upload.php1,439 ▲394.27 ▲0.1099.43 ▼15.2473.78 ▲24.70
Autocorrect /wp-admin/admin.php?page=WP_Advanced_Search_Callback_Autocorrection1,0002.1424.9157.53
Import/Export /wp-admin/admin.php?page=WP_Advanced_Search_Callback_ExportImport8982.0029.1167.32
Readme /wp-admin/admin.php?page=WP_Advanced_Search_Callback_Documentation1,1662.1222.4746.30
Autocompletion /wp-admin/admin.php?page=WP_Advanced_Search_Callback_Autocompletion1,2722.1725.9137.09
Display options /wp-admin/admin.php?page=WP_Advanced_Search_Callback_Pagination1,3092.0429.4931.45
Templates and styles /wp-admin/admin.php?page=WP_Advanced_Search_Callback_Styles1,2372.1425.7633.81
Advanced Search /wp-admin/admin.php?page=wp-advanced-search1,5272.1226.3934.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 76 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-advanced-search
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 76 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-advanced-search
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP Passed 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
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 just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: You are using too many tags: 64 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 ("WP-Planification" dans le backoffice de Wordpress (BackOffice screenshot).), #2 (Panneau du widget (widget panel).), #3 (Exemple d'usage complet (for example : complete usage of plugin).), #4 (Exemple d'affichage différent (for example : another type of use of plugin).), #5 (Nouveau thème graphique (New template).), #6 (Options d'autosuggestion (autosuggest options).), #7 (Exemple d'autocomplétion (example for autocomplete query).), #8 (Usage du trigger pour afficher les résultats (example with trigger to display results).), #9 (Thème graphique complet "Google style" (complete template 'Google style').), #10 (Thème graphique en 2 ou 3 colonnes (template with 2 or 3 columns).)
You can take inspiration from this readme.txt

wp-advanced-search/WP-Advanced-Search.php 85% from 13 tests

The main file in "WordPress WP-Advanced-Search" v. 3.3.9.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-advanced-search.php" instead of "WP-Advanced-Search.php")
  • Description: The description should be shorter than 140 characters (currently 358 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected13,829 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
PO File83,1224,9796,380
PHP224277165,996
JavaScript15107140941
CSS3005512

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity47.20
▷ Minimum class complexity7.00
▷ Maximum class complexity167.00
Average method complexity11.04
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1982.61%
▷ Protected methods00.00%
▷ Private methods417.39%
Functions47
▷ Named functions4697.87%
▷ Anonymous functions12.13%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 2.51MB with 1.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png76.23KB36.45KB▼ 52.19%
screenshot-5.png89.21KB49.66KB▼ 44.34%
img/icon-256x256.png15.16KB8.05KB▼ 46.92%
screenshot-9.png305.21KB161.39KB▼ 47.12%
screenshot-1.png63.46KB31.26KB▼ 50.74%