Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.08ms] Passed 4 tests
Server-side resources used by Extra Product Sorting Options for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.48 ▼3.04 |
Dashboard /wp-admin | 3.38 ▲0.08 | 51.42 ▼2.42 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 51.36 ▼0.31 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 88.81 ▼18.56 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 39.36 ▲4.25 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Extra Product Sorting Options for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.18 ▼1.06 | 1.79 ▲0.00 | 43.59 ▼2.79 |
Dashboard /wp-admin | 2,221 ▲36 | 5.84 ▲0.97 | 99.10 ▼6.41 | 37.75 ▼9.03 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.00 ▼0.01 | 38.35 ▲1.13 | 34.70 ▼4.81 |
Add New Post /wp-admin/post-new.php | 1,553 ▲34 | 23.04 ▼0.42 | 655.63 ▼14.98 | 53.33 ▼2.99 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.24 ▼0.06 | 100.46 ▼4.11 | 43.82 ▲0.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: sorting, product sorting, woocommerce, orderby
woocommerce-extra-product-sorting-options/woocommerce-extra-product-sorting-options.php 92% from 13 tests
The principal PHP file in "Extra Product Sorting Options for WooCommerce" v. 2.10.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.6" instead of "3.9.4")
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
There were no executable files found in this plugin549 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 187 | 368 | 405 |
PO File | 1 | 35 | 84 | 134 |
JavaScript | 2 | 4 | 1 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 5 | 17.24% |
▷ Public methods | 23 | 79.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.69% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin