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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.29ms] Passed 4 tests
An overview of server-side resources used by Download Renewals for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.85 ▼1.59 |
Dashboard /wp-admin | 3.33 ▼0.02 | 53.27 ▼10.24 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.90 ▼3.55 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 97.00 ▼9.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 44.55 ▲5.38 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Download Renewals for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 13.34 ▼1.03 | 5.59 ▲3.22 | 42.34 ▼4.79 |
Dashboard /wp-admin | 2,221 ▲27 | 4.83 ▼1.03 | 104.11 ▲2.07 | 38.63 ▼1.03 |
Posts /wp-admin/edit.php | 2,078 ▼25 | 2.01 ▲0.04 | 39.01 ▲3.50 | 34.30 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,550 ▲2 | 23.28 ▲0.13 | 663.16 ▲14.61 | 61.46 ▼26.00 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.12 ▼0.13 | 114.31 ▲1.34 | 50.30 ▲3.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/download-renewals-for-woocommerce/public/partials/download-renewals-for-woocommerce-public-display.php
- > /wp-content/plugins/download-renewals-for-woocommerce/admin/partials/download-renewals-for-woocommerce-admin-display.php
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/download-renewals-for-woocommerce/includes/drwc-core-functions.php:250
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/download-renewals-for-woocommerce/admin/class-download-renewals-for-woocommerce-settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/download-renewals-for-woocommerce/download-renewals-for-woocommerce.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/download-renewals-for-woocommerce/includes/drwc-woocommerce-emails.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/download-renewals-for-woocommerce/includes/drwc-woocommerce-product-fields.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/download-renewals-for-woocommerce/includes/drwc-background-functions.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/download-renewals-for-woocommerce/admin/download-renewals-for-woocommerce-settings-page.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/download-renewals-for-woocommerce/includes/emails/templates/plain/wc-order-download-expired.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/download-renewals-for-woocommerce/includes/emails/templates/wc-order-download-expired.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/download-renewals-for-woocommerce/includes/drwc-woocommerce-renewal-price-change.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
5 plugin tags: subscription, woocommerce, renewals, recurring, downloads
download-renewals-for-woocommerce/download-renewals-for-woocommerce.php Passed 13 tests
The principal PHP file in "Download Renewals for WooCommerce" v. 1.0.2 is loaded by WordPress automatically on each request
75 characters long description:
Sell digital products and remind your customers when their downloads expire
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
No dangerous file extensions were detected1,320 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 389 | 1,230 | 1,183 |
PO File | 1 | 46 | 49 | 128 |
JavaScript | 2 | 4 | 54 | 6 |
Markdown | 1 | 1 | 0 | 3 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 2 | 3.28% |
▷ Public methods | 56 | 91.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.20% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin