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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.80 | 87.34 ▲49.16 |
Dashboard /wp-admin | 4.23 ▲0.92 | 51.22 ▲2.49 |
Posts /wp-admin/edit.php | 4.28 ▲0.92 | 53.23 ▲3.94 |
Add New Post /wp-admin/post-new.php | 6.83 ▲0.94 | 99.79 ▲4.81 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 40.96 ▲4.91 |
Index /wp-admin/admin.php?page=ric_plugin_admin_menu_sync | 4.06 | 35.49 |
Status /wp-admin/admin.php?page=ric_plugin_admin_menu_status | 4.06 | 39.41 |
Collections Creator /wp-admin/admin.php?page=ric_plugin_admin_menu_collections | 4.06 | 38.22 |
Reports /wp-admin/admin.php?page=ric_plugin_admin_menu_reports_free | 4.06 | 34.08 |
Ricerca Search /wp-admin/admin.php?page=ric_plugin_admin_menu_page | 4.23 | 72.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.71 ▲0.36 | 1.84 ▲0.15 | 45.10 ▲2.72 |
Dashboard /wp-admin | 2,247 ▲70 | 5.64 ▼0.03 | 92.15 ▲3.82 | 42.19 ▲0.34 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.07 ▲0.08 | 42.81 ▲4.02 | 35.75 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 23.32 ▲0.49 | 615.03 ▼31.66 | 64.22 ▲15.16 |
Media Library /wp-admin/upload.php | 1,453 ▲50 | 4.33 ▲0.15 | 102.76 ▲5.45 | 44.51 ▲1.80 |
Index /wp-admin/admin.php?page=ric_plugin_admin_menu_sync | 837 | 2.26 | 29.55 | 25.78 |
Status /wp-admin/admin.php?page=ric_plugin_admin_menu_status | 842 | 2.05 | 24.17 | 27.79 |
Collections Creator /wp-admin/admin.php?page=ric_plugin_admin_menu_collections | 838 | 2.18 | 25.95 | 28.38 |
Reports /wp-admin/admin.php?page=ric_plugin_admin_menu_reports_free | 839 | 2.33 | 23.66 | 26.89 |
Ricerca Search /wp-admin/admin.php?page=ric_plugin_admin_menu_page | 6,887 | 2.46 | 42.80 | 69.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 2,028 | 488 | 3,368 |
PO File | 2 | 571 | 828 | 1,177 |
CSS | 3 | 213 | 22 | 988 |
JavaScript | 3 | 601 | 194 | 914 |
SVG | 1 | 0 | 0 | 1 |
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 code | 0.24 |
Average class complexity | 24.32 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 5.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 69 | 63.89% |
▷ Public methods | 107 | 99.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.93% |
Functions | 33 | |
▷ Named functions | 3 | 9.09% |
▷ Anonymous functions | 30 | 90.91% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 7.96KB | 5.30KB | ▼ 33.43% |
assets/images/c1.png | 91.09KB | 37.08KB | ▼ 59.30% |
assets/images/c3.png | 16.49KB | 7.38KB | ▼ 55.24% |
assets/images/r2.png | 79.79KB | 32.77KB | ▼ 58.93% |
assets/images/r3.png | 55.60KB | 18.96KB | ▼ 65.91% |