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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.03ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Dynamic Sorting
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 83.26 ▲0.89 |
Dashboard /wp-admin | 3.31 ▼0.03 | 87.67 ▼25.41 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 85.36 ▲5.63 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 140.76 ▼7.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 60.18 ▼0.59 |
Server storage [IO: ▲1.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 178 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Dynamic Sorting
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.52 ▲0.23 | 3.60 ▼0.51 | 75.73 ▼2.14 |
Dashboard /wp-admin | 2,210 ▲25 | 4.82 ▼0.07 | 184.02 ▼7.42 | 78.50 ▼29.26 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.01 ▲0.01 | 78.94 ▲9.39 | 77.79 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,366 ▼31 | 17.34 ▼0.43 | 898.78 ▼86.07 | 85.38 ▲14.15 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.25 ▲0.04 | 172.78 ▼17.96 | 89.24 ▼12.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 20× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/contacts/simple.php
- > /wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/batch.php
- > /wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/plus/simple.php
- > /wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/siteVerification/simple.php
- > /wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/userinfo/index.php
- > /wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/tasks/index.php
- > /wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/plus/index.php
- > /wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/moments/simple.php
- > /wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/prediction/index.php
- > /wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/urlshortener/index.php
- 164× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required '../../src/contrib/Google_AdexchangebuyerService.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/adexchangebuyer/BaseExample.php on line 22
- > PHP Warning
require_once(../../src/contrib/Google_AdsenseService.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/adsense/BaseExample.php on line 21
- > PHP Fatal error
require_once(): Failed opening required 'auth/Google_Signer.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/test/general/AuthTest.php on line 21
- > PHP Warning
require_once(BaseTest.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/test/general/ApiBatchRequestTest.php on line 21
- > PHP Fatal error
require_once(): Failed opening required '../../src/contrib/Google_AdexchangebuyerService.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/adexchangebuyer/BaseExample.php on line 22
- > PHP Fatal error
require_once(): Failed opening required '../../src/contrib/apiAdsensehostService.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/adsensehost/BaseExample.php on line 22
- > PHP Notice
Undefined index: access_token in wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/analytics/demo/storage.php on line 44
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/src/contrib/Google_PagespeedonlineService.php:25
- > PHP Fatal error
require_once(): Failed opening required '../../src/apiClient.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/examples/adsensehost/AdSenseAuth.php on line 26
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/woocommerce-dynamic-sorting/includes/vendor/google-api-php-client/src/contrib/Google_LatitudeService.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: orderby, products, shop, sorting, woocommerce
woocommerce-dynamic-sorting/plugin.php 92% from 13 tests
The main file in "WooCommerce Dynamic Sorting" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-dynamic-sorting.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin35,087 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 154 | 2,565 | 10,793 | 34,438 |
CSS | 9 | 105 | 121 | 582 |
HTML | 1 | 5 | 14 | 56 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 2.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 1.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 833 | |
▷ Abstract classes | 8 | 0.96% |
▷ Concrete classes | 825 | 99.04% |
▷ Final classes | 0 | 0.00% |
Methods | 6,598 | |
▷ Static methods | 30 | 0.45% |
▷ Public methods | 6,510 | 98.67% |
▷ Protected methods | 19 | 0.29% |
▷ Private methods | 69 | 1.05% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 37 | |
▷ Global constants | 10 | 27.03% |
▷ Class constants | 27 | 72.97% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin