Benchmarks
Plugin footprint 65% 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.00MB] [CPU: ▼4.67ms] Passed 4 tests
An overview of server-side resources used by Sort By Recent Views For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.06 ▼0.60 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.11 ▼6.47 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.19 ▼2.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.51 ▼7.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.20 ▼1.95 |
Sort By Recent Views /wp-admin/admin.php?page=sort-by-recent-views-for-woocommerce | 3.00 | 23.49 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_wsrv_views |
New WordPress options |
---|
wsrv_enable_automatic_maintenance |
can_compress_scripts |
wsrv_enable_sorting |
wsrv_timeframe |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
wsrv_custom_sorting_option_name |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sort By Recent Views For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.38 | 1.74 ▲0.08 | 43.48 ▼2.66 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▲0.97 | 96.65 ▼9.87 | 43.87 ▲2.21 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.05 | 36.00 ▼1.53 | 39.27 ▲5.26 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.49 ▲0.48 | 686.81 ▲29.61 | 53.88 ▼4.24 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▲0.04 | 99.21 ▼7.26 | 42.26 ▼5.44 |
Sort By Recent Views /wp-admin/admin.php?page=sort-by-recent-views-for-woocommerce | 28 | 0.44 | 0.09 | 5.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_wsrv_views
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-comments
- wsrv_enable_automatic_maintenance
- wsrv_enable_sorting
- wsrv_timeframe
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- wsrv_custom_sorting_option_name
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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 50% from 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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sort-by-recent-views-for-woocommerce/includes/wsrv-logic.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sort-by-recent-views-for-woocommerce/includes/wsrv-activation.php:41
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=sort-by-recent-views-for-woocommerce
- > Network (severe)
wp-admin/admin.php?page=sort-by-recent-views-for-woocommerce - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
sort-by-recent-views-for-woocommerce/sort-by-recent-views-for-woocommerce.php Passed 13 tests
"Sort By Recent Views For WooCommerce" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Adds the "sort by recent views" sorting option to your shop.
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
Good job! No executable or dangerous file extensions detected297 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 102 | 76 | 279 |
JavaScript | 1 | 1 | 5 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin