84% ricerca-smart-search

Code Review | Ricerca - advanced search

WordPress plugin Ricerca - advanced search scored84%from 54 tests.

About plugin

  • Plugin page: ricerca-smart-search
  • Plugin version: 1.0.59
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 26, 2023
  • Latest release: Oct 29, 2023
  • Number of updates: 65
  • Update frequency: every 3.4 days
  • Top authors: systemsrtk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,089 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.89MB] [CPU: ▲4.04ms] Passed 4 tests

Server-side resources used by Ricerca - advanced search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.8087.34 ▲49.16
Dashboard /wp-admin4.23 ▲0.9251.22 ▲2.49
Posts /wp-admin/edit.php4.28 ▲0.9253.23 ▲3.94
Add New Post /wp-admin/post-new.php6.83 ▲0.9499.79 ▲4.81
Media Library /wp-admin/upload.php4.15 ▲0.9240.96 ▲4.91
Index /wp-admin/admin.php?page=ric_plugin_admin_menu_sync4.0635.49
Status /wp-admin/admin.php?page=ric_plugin_admin_menu_status4.0639.41
Collections Creator /wp-admin/admin.php?page=ric_plugin_admin_menu_collections4.0638.22
Reports /wp-admin/admin.php?page=ric_plugin_admin_menu_reports_free4.0634.08
Ricerca Search /wp-admin/admin.php?page=ric_plugin_admin_menu_page4.2372.82

Server storage [IO: ▲0.78MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 53 new files
Database: 3 new tables, 7 new options
New tables
wp_ric_taxonomies
wp_ric_termscorrector
wp_ric_items
New WordPress options
widget_recent-comments
theysaidso_admin_options
ric_global_settings
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Ricerca - advanced search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7714.71 ▲0.361.84 ▲0.1545.10 ▲2.72
Dashboard /wp-admin2,247 ▲705.64 ▼0.0392.15 ▲3.8242.19 ▲0.34
Posts /wp-admin/edit.php2,153 ▲532.07 ▲0.0842.81 ▲4.0235.75 ▼0.40
Add New Post /wp-admin/post-new.php1,568 ▲4023.32 ▲0.49615.03 ▼31.6664.22 ▲15.16
Media Library /wp-admin/upload.php1,453 ▲504.33 ▲0.15102.76 ▲5.4544.51 ▲1.80
Index /wp-admin/admin.php?page=ric_plugin_admin_menu_sync8372.2629.5525.78
Status /wp-admin/admin.php?page=ric_plugin_admin_menu_status8422.0524.1727.79
Collections Creator /wp-admin/admin.php?page=ric_plugin_admin_menu_collections8382.1825.9528.38
Reports /wp-admin/admin.php?page=ric_plugin_admin_menu_reports_free8392.3323.6626.89
Ricerca Search /wp-admin/admin.php?page=ric_plugin_admin_menu_page6,8872.4642.8069.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • ric_global_settings
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=ric_plugin_admin_menu_page
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=ric_plugin_admin_menu_page 144 The specified value "100%" cannot be parsed, or is out of range.

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
10 plugin tags: product search, woocommerce search, ajax search, smart search, instant search...

ricerca-smart-search/ricerca-smart-search.php 92% from 13 tests

Analyzing the main PHP file in "Ricerca - advanced search" version 1.0.59
Please take the time to fix the following:
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,448 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP242,0284883,368
PO File25718281,177
CSS321322988
JavaScript3601194914
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity24.32
▷ Minimum class complexity2.00
▷ Maximum class complexity117.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods108
▷ Static methods6963.89%
▷ Public methods10799.07%
▷ Protected methods00.00%
▷ Private methods10.93%
Functions33
▷ Named functions39.09%
▷ Anonymous functions3090.91%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.28MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png7.96KB5.30KB▼ 33.43%
assets/images/c1.png91.09KB37.08KB▼ 59.30%
assets/images/c3.png16.49KB7.38KB▼ 55.24%
assets/images/r2.png79.79KB32.77KB▼ 58.93%
assets/images/r3.png55.60KB18.96KB▼ 65.91%