Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.04MB] [CPU: ▼6.91ms] Passed 4 tests
Analyzing server-side resources used by Subscription for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 47.34 ▲3.22 |
Dashboard /wp-admin | 3.42 ▲0.11 | 53.10 ▲3.43 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.82 ▼7.24 |
Add New Post /wp-admin/post-new.php | 5.38 ▼0.51 | 66.52 ▼24.86 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.98 ▲1.25 |
Settings /wp-admin/edit.php?post_type=subscrpt_order&page=subscrpt_settings | 3.35 | 33.47 |
Subscriptions /wp-admin/edit.php?post_type=subscrpt_order | 3.39 | 35.38 |
Server storage [IO: ▲0.40MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 63 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_subscrpt_order_relation |
New WordPress options |
---|
widget_theysaidso_widget |
subscrpt_manual_renew_cart_notice |
db_upgraded |
subscrpt_version |
widget_recent-comments |
theysaidso_admin_options |
recovery_mode_email_last_sent |
subscrpt_installed |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Subscription for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲123 | 13.22 ▼1.37 | 2.02 ▲0.15 | 43.21 ▼1.22 |
Dashboard /wp-admin | 2,276 ▲88 | 5.94 ▲0.87 | 96.47 ▼17.22 | 75.85 ▲31.38 |
Posts /wp-admin/edit.php | 2,156 ▲67 | 2.23 ▲0.24 | 37.95 ▼0.82 | 34.03 ▲1.18 |
Add New Post /wp-admin/post-new.php | 45 ▼1,469 | 0.44 ▼22.93 | 0.06 ▼693.65 | 9.89 ▼45.37 |
Media Library /wp-admin/upload.php | 1,458 ▲70 | 4.35 ▲0.16 | 101.90 ▼10.98 | 85.13 ▲38.10 |
Settings /wp-admin/edit.php?post_type=subscrpt_order&page=subscrpt_settings | 1,030 | 2.24 | 29.30 | 29.86 |
Subscriptions /wp-admin/edit.php?post_type=subscrpt_order | 1,114 | 2.05 | 33.92 | 31.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_subscrpt_order_relation
- Zombie WordPress options detected upon uninstall: 10 options
- subscrpt_version
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- subscrpt_manual_renew_cart_notice
- subscrpt_installed
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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
Good news, no errors were detected
SRP 50% 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 fix the following
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/subscription/includes/Admin/views/order-history.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/subscription/includes/Admin/views/subscription-customer.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/subscription/templates/myaccount/subscriptions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/subscription/includes/Admin/views/product-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/subscription/includes/Admin/views/subscription-save-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/subscription/includes/Admin/views/related-subscriptions.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/subscription/includes/Admin/views/settings.php:2
- > PHP Notice
Undefined variable: order_item in wp-content/plugins/subscription/includes/Admin/views/subscription-order-info.php on line 8
- > PHP Warning
Use of undefined constant SUBSCRPT_ASSETS - assumed 'SUBSCRPT_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/subscription/includes/Admin/views/required-notice.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/subscription/includes/Admin/views/required-notice.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI ("")
subscription/subscription.php 85% from 13 tests
The main file in "Subscription for WooCommerce" v. 1.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:
- Text Domain: The text domain should only use lowercase characters and dashes
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,517 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 548 | 1,113 | 3,328 |
JavaScript | 2 | 9 | 0 | 108 |
CSS | 2 | 13 | 0 | 76 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 1 | 3.03% |
Methods | 184 | |
▷ Static methods | 38 | 20.65% |
▷ Public methods | 172 | 93.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 6.52% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.24MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/subscrpt-ads.png | 239.59KB | 250.28KB | 0.00% |
assets/images/woocommerce.png | 7.05KB | 3.41KB | ▼ 51.68% |