Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼8.40ms] Passed 4 tests
An overview of server-side resources used by WC Serial Numbers - Ultimate License Manager for Selling, Licensing & Securely Delivering Digital Content with WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 44.30 ▲1.89 |
Dashboard /wp-admin | 3.69 ▲0.34 | 47.21 ▼15.85 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 50.75 ▲2.80 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.31 | 81.45 ▼22.42 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 36.75 ▲6.13 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: 2 new tables, 16 new options
New tables |
---|
wp_serial_numbers_activations |
wp_serial_numbers |
New WordPress options |
---|
db_upgraded |
wc_serial_numbers_install_date |
widget_theysaidso_widget |
theysaidso_admin_options |
wc_serial_numbers_enable_stock_notification |
wc_serial_numbers_revoke_keys |
wc_serial_numbers_reuse_serial_number |
wc_serial_numbers_version |
wc_serial_numbers_disable_software_support |
wc_serial_numbers_stock_threshold |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WC Serial Numbers - Ultimate License Manager for Selling, Licensing & Securely Delivering Digital Content with WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲36 | 14.25 ▼0.10 | 1.59 ▼0.23 | 39.51 ▼4.53 |
Dashboard /wp-admin | 2,203 ▲25 | 5.60 ▼0.06 | 91.26 ▼21.52 | 42.25 ▼0.12 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.95 ▼0.07 | 38.96 ▲2.26 | 35.33 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,534 ▼3 | 23.24 ▲0.10 | 601.44 ▼56.12 | 52.70 ▼0.56 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.17 ▲0.03 | 99.83 ▼3.00 | 43.49 ▼0.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_serial_numbers_activations
- wp_serial_numbers
- The uninstall procedure has failed, leaving 16 options in the database
- widget_theysaidso_widget
- wc_serial_numbers_notification_recipient
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- wc_serial_numbers_revoke_keys
- widget_recent-posts
- wc_serial_numbers_reuse_serial_number
- wc_serial_numbers_stock_threshold
- wc_serial_numbers_hide_serial_number
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wc-serial-numbers/templates/email-stock-notification.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #9 (Thank You Page with Keys) image required
wc-serial-numbers/wc-serial-numbers.php Passed 13 tests
"WC Serial Numbers - Ultimate License Manager for Selling, Licensing & Securely Delivering Digital Content with WooCommerce" version 1.6.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
Sell and manage license keys/ serial numbers/ secret keys easily within your WooCommerce store.
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
Success! There were no dangerous files found in this plugin7,428 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 1,385 | 5,287 | 7,422 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
XML | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 23.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 267.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 3 | 9.09% |
▷ Concrete classes | 30 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 445 | |
▷ Static methods | 74 | 16.63% |
▷ Public methods | 366 | 82.25% |
▷ Protected methods | 75 | 16.85% |
▷ Private methods | 4 | 0.90% |
Functions | 92 | |
▷ Named functions | 75 | 81.52% |
▷ Anonymous functions | 17 | 18.48% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.55MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/images/csv-import.png | 56.23KB | 32.37KB | ▼ 42.43% |
assets/images/csv-export.png | 68.47KB | 40.52KB | ▼ 40.82% |
assets/dist/images/add-generator.png | 80.73KB | 46.21KB | ▼ 42.76% |
assets/dist/images/csv-export.png | 68.47KB | 40.52KB | ▼ 40.82% |
assets/images/csv-import.png | 56.23KB | 32.37KB | ▼ 42.43% |