Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.05ms] Passed 4 tests
This is a short check of server-side resources used by Smart Sorting for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.60 ▼3.20 |
Dashboard /wp-admin | 3.40 ▲0.06 | 52.35 ▼10.72 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 56.42 ▲4.13 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 86.52 ▼20.16 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 39.65 ▲1.87 |
Smart-sorting settings /wp-admin/options-general.php?page=smart-sorting_settings | 3.29 | 33.39 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_smart_sorting_views_table |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
ss_views_delay |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Smart Sorting for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲148 | 13.96 ▼0.67 | 5.77 ▲4.00 | 43.29 ▲0.33 |
Dashboard /wp-admin | 2,211 ▲23 | 5.79 ▲0.90 | 102.95 ▼5.09 | 39.65 ▼3.04 |
Posts /wp-admin/edit.php | 2,079 ▼10 | 2.03 ▲0.02 | 35.83 ▼0.70 | 34.92 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,521 ▼7 | 23.27 ▲5.02 | 698.95 ▲39.15 | 56.75 ▼11.55 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.16 ▼0.05 | 114.21 ▲11.74 | 47.29 ▲0.91 |
Smart-sorting settings /wp-admin/options-general.php?page=smart-sorting_settings | 784 | 2.06 | 24.46 | 25.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
7 plugin tags: smart sort, woocommerce, woocommerce sorting, woocommerce sort, sorting...
smartsorting/smart-sorting.php 77% from 13 tests
The main PHP script in "Smart Sorting for WooCommerce" version 0.1.2 is automatically included on every request by WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 448 characters long)
- 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
- Main file name: Name the main plugin file the same as the plugin slug ("smartsorting.php" instead of "smart-sorting.php")
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 detected772 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 150 | 523 | 684 |
JavaScript | 2 | 8 | 0 | 88 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 6 | 17.14% |
▷ Public methods | 28 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 20.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin