Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.76MB] [CPU: ▲543.87ms] 50% from 4 tests
This is a short check of server-side resources used by Voice Search For WooCommerce
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 573.06ms on /wp-admin/options-general.php?page=voice-search-for-woocommerce-settings)
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 543.87ms on /wp-admin/options-general.php?page=voice-search-for-woocommerce-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.80 | 605.20 ▲563.86 |
Dashboard /wp-admin | 4.07 ▲0.73 | 604.45 ▲542.87 |
Posts /wp-admin/edit.php | 4.12 ▲0.77 | 594.17 ▲541.80 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.79 | 643.32 ▲536.76 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 592.34 ▲554.03 |
Voice Search For WooCommerce /wp-admin/options-general.php?page=voice-search-for-woocommerce-settings | 3.91 | 573.06 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 15 new options
New WordPress options |
---|
vswc_uuid |
widget_recent-posts |
vswc_api_system_key |
can_compress_scripts |
vswc_first_activation |
widget_theysaidso_widget |
vswc_floating_mic_position |
vswc_selected_language |
vswc_settings_updated_timestamp |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Voice Search For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲136 | 13.35 ▼0.97 | 5.50 ▲3.45 | 46.30 ▼0.68 |
Dashboard /wp-admin | 2,238 ▲50 | 5.86 ▼0.04 | 100.75 ▼7.35 | 68.76 ▲23.69 |
Posts /wp-admin/edit.php | 2,121 ▲35 | 1.97 ▼0.06 | 35.76 ▲0.52 | 35.64 ▲3.45 |
Add New Post /wp-admin/post-new.php | 1,541 ▲17 | 21.07 ▼2.36 | 705.65 ▼4.49 | 59.69 ▲6.00 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.17 ▼0.02 | 93.16 ▼19.92 | 85.77 ▲36.47 |
Voice Search For WooCommerce /wp-admin/options-general.php?page=voice-search-for-woocommerce-settings | 1,734 | 2.07 | 26.46 | 52.26 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 14 options in the database
- vswc_settings_updated_timestamp
- theysaidso_admin_options
- vswc_uuid
- vswc_api_system_key
- widget_recent-comments
- vswc_floating_mic_position
- widget_theysaidso_widget
- vswc_floating_mic
- db_upgraded
- vswc_selected_language
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
voice-search-for-woocommerce/voice-search-for-woocommerce.php 92% from 13 tests
The main PHP script in "Voice Search For WooCommerce" version 2.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("2.6" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,850 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 358 | 449 | 4,099 |
JavaScript | 7 | 459 | 441 | 1,880 |
CSS | 2 | 152 | 36 | 724 |
SVG | 7 | 1 | 2 | 92 |
PO File | 1 | 7 | 9 | 39 |
JSON | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 18.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 19 | 30.65% |
▷ Public methods | 50 | 80.65% |
▷ Protected methods | 6 | 9.68% |
▷ Private methods | 6 | 9.68% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 23 | |
▷ Global constants | 4 | 17.39% |
▷ Class constants | 19 | 82.61% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/speak2web_logo.png | 3.16KB | 3.26KB | 0.00% |