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.38MB] [CPU: ▼3.23ms] Passed 4 tests
An overview of server-side resources used by Free Downloads WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 31.78 ▼8.31 |
Dashboard /wp-admin | 3.74 ▲0.44 | 49.74 ▲0.69 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 49.69 ▲3.14 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 86.83 ▼8.43 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 41.17 ▲4.38 |
Server storage [IO: ▲2.92MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Free Downloads WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,566 ▼195 | 13.82 ▼0.90 | 7.47 ▲5.82 | 15.77 ▼20.24 |
Dashboard /wp-admin | 2,218 ▲44 | 5.48 ▼0.18 | 98.19 ▲11.20 | 42.73 ▲2.33 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.14 ▲0.10 | 42.36 ▲7.40 | 37.17 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,544 ▲14 | 23.05 ▼0.13 | 669.68 ▲70.92 | 61.59 ▲18.37 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.10 ▼0.01 | 102.91 ▼18.05 | 50.69 ▼1.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'SOM\\FreeDownloads\\Abstracts\\AbstractPlugin' not found in wp-content/plugins/download-now-for-woocommerce/Includes/Abstracts/AbstractSingletonPlugin.php:9
- > PHP Fatal error
Uncaught Error: Class 'SOM\\FreeDownloads\otices\\WordPressNotice' not found in wp-content/plugins/download-now-for-woocommerce/Includes/Notices/ErrorNotice.php:9
- > PHP Fatal error
Uncaught Error: Interface 'SOM\\FreeDownloads\\Interfaces\\SystemNoticeInterface' not found in wp-content/plugins/download-now-for-woocommerce/Includes/Notices/WordPressNotice.php:9
- > PHP Fatal error
Uncaught Error: Interface 'SOM\\FreeDownloads\\Lib\\Requirements\\RequirementInterface' not found in wp-content/plugins/download-now-for-woocommerce/Lib/Requirements/AbstractRequirement.php:7
- > PHP Fatal error
Uncaught Error: Class 'SOM\\FreeDownloads\\Lib\\Requirements\\AbstractRequirement' not found in wp-content/plugins/download-now-for-woocommerce/Lib/Requirements/WordPressPluginRequirement.php:7
- > PHP Fatal error
Uncaught Error: Class 'SOM\\FreeDownloads\\Lib\\Requirements\\AbstractRequirement' not found in wp-content/plugins/download-now-for-woocommerce/Lib/Requirements/PhpMinVersionRequirement.php:7
- > PHP Fatal error
Uncaught Error: Class 'SOM\\FreeDownloads\\Abstracts\\AbstractSingletonPlugin' not found in wp-content/plugins/download-now-for-woocommerce/Includes/Plugin.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
download-now-for-woocommerce/som-woocommerce-download-now.php 85% from 13 tests
Analyzing the main PHP file in "Free Downloads WooCommerce" version 3.5.7.1
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("download-now-for-woocommerce.php" instead of "som-woocommerce-download-now.php")
- Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "7.4.0")
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
Good job! No executable or dangerous file extensions detected10,090 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 2,312 | 1,142 | 6,163 |
PO File | 4 | 928 | 1,044 | 2,576 |
CSS | 3 | 38 | 35 | 1,140 |
JavaScript | 2 | 50 | 43 | 154 |
JSON | 1 | 0 | 0 | 57 |
PHP code Passed 2 tests
A short review of 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.42 |
Average class complexity | 5.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 4 | 26.67% |
▷ Concrete classes | 11 | 73.33% |
▷ Final classes | 6 | 54.55% |
Methods | 91 | |
▷ Static methods | 2 | 2.20% |
▷ Public methods | 64 | 70.33% |
▷ Protected methods | 6 | 6.59% |
▷ Private methods | 21 | 23.08% |
Functions | 298 | |
▷ Named functions | 295 | 98.99% |
▷ Anonymous functions | 3 | 1.01% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 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
20 PNG files occupy 2.13MB with 1.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/owned-example.png | 168.73KB | 42.32KB | ▼ 74.92% |
assets/images/multi-3.png | 5.96KB | 3.79KB | ▼ 36.35% |
woo-files/images/quick-view-shop.png | 294.42KB | 60.00KB | ▼ 79.62% |
assets/images/multi-1.png | 4.17KB | 2.83KB | ▼ 32.26% |
assets/images/redirect-example.png | 12.90KB | 7.42KB | ▼ 42.47% |