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 gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▼4.97ms] Passed 4 tests
Analyzing server-side resources used by Premium Packages - Sell Digital Products Securely
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 39.28 ▲0.19 |
Dashboard /wp-admin | 3.65 ▲0.30 | 44.62 ▼15.52 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 46.47 ▼2.01 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 92.86 ▼2.52 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 33.56 ▲1.13 |
Server storage [IO: ▲2.18MB] [DB: ▲0.31MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 344 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Premium Packages - Sell Digital Products Securely
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲28 | 14.04 ▼0.67 | 1.68 ▼0.37 | 35.54 ▼7.78 |
Dashboard /wp-admin | 2,205 ▲25 | 5.61 ▼0.02 | 90.99 ▲1.72 | 43.77 ▲2.61 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 1.96 ▼0.05 | 40.13 ▲0.97 | 38.07 ▲2.60 |
Add New Post /wp-admin/post-new.php | 1,536 ▼12 | 23.15 ▼0.05 | 664.58 ▲35.81 | 51.96 ▼4.89 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.01 | 96.50 ▼1.96 | 42.00 ▲1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpdm-premium-packages/includes/menus/templates/orders/acr-attempts.php
- > /wp-content/plugins/wpdm-premium-packages/includes/menus/templates/orders/list-orders.php
- > /wp-content/plugins/wpdm-premium-packages/templates/dashboard-widgets/recent-sales.php
- > /wp-content/plugins/wpdm-premium-packages/templates/dashboard-widgets/sales-overview.php
- > /wp-content/plugins/wpdm-premium-packages/includes/menus/templates/customer-profile.php
- > /wp-content/plugins/wpdm-premium-packages/templates/dashboard-widgets/latest-orders.php
- > /wp-content/plugins/wpdm-premium-packages/templates/checkout-cart/checkout.php
- > /wp-content/plugins/wpdm-premium-packages/templates/dashboard/withdraws.php
- > /wp-content/plugins/wpdm-premium-packages/includes/menus/templates/customer-purchases.php
- > /wp-content/plugins/wpdm-premium-packages/templates/dashboard-widgets/top-sales.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDMPP\\Libs\\add_action() in wp-content/plugins/wpdm-premium-packages/includes/libs/CronJobs.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDMPP\\Libs\\add_filter() in wp-content/plugins/wpdm-premium-packages/includes/libs/SellerDashboard.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDMPP\\add_action() in wp-content/plugins/wpdm-premium-packages/includes/libs/OrderNoteTemplates.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDMPP\\Libs\\add_action() in wp-content/plugins/wpdm-premium-packages/includes/libs/AbandonedOrderRecovery.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: ""
wpdm-premium-packages/wpdm-premium-packages.php Passed 13 tests
Analyzing the main PHP file in "Premium Packages - Sell Digital Products Securely" version 5.8.1
66 characters long description:
Complete solution for selling digital products securely and easily
Code Analysis Passed 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
There were no executable files found in this plugin43,928 lines of code in 322 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 99 | 3,084 | 1,467 | 17,805 |
JSON | 200 | 0 | 0 | 17,638 |
JavaScript | 5 | 795 | 512 | 4,238 |
PO File | 2 | 1,322 | 2,203 | 2,736 |
CSS | 11 | 69 | 14 | 1,164 |
SVG | 5 | 0 | 1 | 347 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 37.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 347 | |
▷ Static methods | 41 | 11.82% |
▷ Public methods | 344 | 99.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 0.86% |
Functions | 107 | |
▷ Named functions | 105 | 98.13% |
▷ Anonymous functions | 2 | 1.87% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/statistic-box-green.png | 1.21KB | 1.21KB | 0.00% |
assets/images/download-manager-logo-v4.png | 17.49KB | 8.66KB | ▼ 50.49% |
assets/images/statistic-box-grid.png | 0.11KB | 0.11KB | ▼ 0.92% |
templates/invoices/default/assets/corners.png | 12.10KB | 4.75KB | ▼ 60.75% |
assets/images/paypal.png | 2.51KB | 2.07KB | ▼ 17.75% |