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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.93ms] Passed 4 tests
This is a short check of server-side resources used by Ultimate Downloadable Products for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.44 ▼2.16 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.05 ▼3.49 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.84 ▼3.90 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.89 ▼14.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.43 ▲1.77 |
Server storage [IO: ▲5.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 509 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Ultimate Downloadable Products 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,800 ▲65 | 13.23 ▼1.19 | 1.79 ▲0.08 | 42.99 ▼7.59 |
Dashboard /wp-admin | 2,209 ▲21 | 4.83 ▼1.07 | 107.75 ▼0.75 | 41.36 ▼8.07 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.04 | 40.67 ▲3.28 | 35.97 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.51 ▲5.22 | 630.96 ▲30.29 | 54.57 ▼8.44 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.24 ▲0.04 | 101.22 ▼3.91 | 43.24 ▼4.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 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 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/symfony/process/Tests/KillableProcessWithOutput.php
- > /wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/symfony/process/Tests/ThreeSecondProcess.php
- 107× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/symfony/process/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/symfony/process/Tests/ErrorProcessInitiator.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Process\\Exception\\RuntimeException' not found in wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/symfony/process/Exception/ProcessFailedException.php:21
- > PHP Warning
Use of undefined constant ISO_LIB_PATH - assumed 'ISO_LIB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/phpclasses/php-iso-file/classes/iso_includes.php on line 7
- > PHP Warning
include_once(): Failed opening 'ISO_LIB_PATHdescriptor.class.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/phpclasses/php-iso-file/classes/iso_includes.php on line 6
- > PHP Warning
include_once(ISO_LIB_PATHdescriptor_boot.class.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/phpclasses/php-iso-file/classes/iso_includes.php on line 7
- > PHP Warning
Use of undefined constant ISO_LIB_PATH - assumed 'ISO_LIB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/phpclasses/php-iso-file/classes/iso_includes.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'wapmorgan\\UnifiedArchive\\Drivers\\BasicDriver' not found in wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/wapmorgan/unified-archive/src/Drivers/SevenZip.php:15
- > PHP Fatal error
require_once(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/pear/archive_tar/Archive/Tar.php on line 45
- > PHP Fatal error
Uncaught Error: Class 'wapmorgan\\UnifiedArchive\\Commands\\BaseArchiveCommand' not found in wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/wapmorgan/unified-archive/src/Commands/FoldersCommand.php:9
- > PHP Warning
Use of undefined constant ISO_LIB_PATH - assumed 'ISO_LIB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-downloadable-products-for-woocommerce/vendor/phpclasses/php-iso-file/classes/iso_includes.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: downloads, e-commerce, woocommerce
ultimate-downloadable-products-for-woocommerce/ultimate-downloadable-products-for-woocommerce.php 92% from 13 tests
The main file in "Ultimate Downloadable Products for WooCommerce" v. 1.3.1 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:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.5.0")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected59,515 lines of code in 368 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 257 | 11,124 | 24,564 | 49,697 |
PO File | 82 | 1,981 | 2,572 | 7,583 |
XML | 3 | 23 | 0 | 1,124 |
JSON | 1 | 0 | 0 | 765 |
JavaScript | 5 | 35 | 60 | 208 |
CSS | 14 | 6 | 0 | 55 |
SVG | 1 | 0 | 1 | 43 |
reStructuredText | 2 | 16 | 2 | 34 |
Bourne Shell | 1 | 2 | 0 | 4 |
YAML | 2 | 0 | 0 | 2 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 101)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 41.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 101.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 6 | |
Traits | 1 | |
Classes | 161 | |
▷ Abstract classes | 5 | 3.11% |
▷ Concrete classes | 156 | 96.89% |
▷ Final classes | 3 | 1.92% |
Methods | 2,330 | |
▷ Static methods | 420 | 18.03% |
▷ Public methods | 1,807 | 77.55% |
▷ Protected methods | 116 | 4.98% |
▷ Private methods | 407 | 17.47% |
Functions | 175 | |
▷ Named functions | 137 | 78.29% |
▷ Anonymous functions | 38 | 21.71% |
Constants | 366 | |
▷ Global constants | 198 | 54.10% |
▷ Class constants | 168 | 45.90% |
▷ Public constants | 168 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.87MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/screenshot-3.png | 317.25KB | 95.77KB | ▼ 69.81% |
assets/screenshot-4.png | 308.84KB | 93.17KB | ▼ 69.83% |
assets/screenshot-6.png | 40.26KB | 12.96KB | ▼ 67.80% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |