Benchmarks
Plugin footprint 83% 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.37MB] [CPU: ▼4.15ms] Passed 4 tests
A check of server-side resources used by WPLicense It
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 46.42 ▲0.58 |
Dashboard /wp-admin | 3.71 ▲0.40 | 49.74 ▼3.47 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 53.95 ▲8.05 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 89.56 ▼16.68 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 40.58 ▲2.98 |
Dashboard /wp-admin/edit.php?post_type=wplit_product&page=wplit-admin-dashboard | 3.52 | 37.34 |
Settings /wp-admin/edit.php?post_type=wplit_product&page=wplit-admin-settings | 3.53 | 31.34 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 286 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
wplicense-it-api-rewrite-rules-version |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WPLicense It
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.20 ▼1.21 | 2.03 ▲0.06 | 42.00 ▼1.84 |
Dashboard /wp-admin | 2,238 ▲50 | 5.76 ▼0.24 | 97.67 ▼16.62 | 40.01 ▼4.59 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.04 ▲0.07 | 38.92 ▼1.19 | 33.88 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,562 ▲39 | 23.40 ▲0.36 | 668.34 ▲11.78 | 63.32 ▲4.62 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.16 ▼0.13 | 97.02 ▼11.66 | 45.30 ▼0.07 |
Dashboard /wp-admin/edit.php?post_type=wplit_product&page=wplit-admin-dashboard | 1,019 | 2.03 | 24.48 | 78.55 |
Settings /wp-admin/edit.php?post_type=wplit_product&page=wplit-admin-settings | 1,029 | 2.02 | 22.23 | 33.33 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- wplicense-it-api-rewrite-rules-version
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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/wplicense-it/includes/payment/vendor/stripe/stripe-php/update_certs.php
- > /wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/build.php
- 208× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/lib/LoginLink.php:12
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\BaseStripeClient' not found in wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/lib/StripeClient.php:66
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/lib/Service/TokenService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/lib/OrderItem.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/lib/Service/FileLinkService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/lib/Service/CustomerService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/lib/Event.php:53
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/lib/Exception/ApiConnectionException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/lib/Capability.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Add New License Product)
wplicense-it/wplicense-it.php 92% from 13 tests
The main file in "WPLicense It" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wplicense-it/includes/payment/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 258 | 2,645 | 10,281 | 9,829 |
CSS | 4 | 1,743 | 38 | 9,559 |
Markdown | 3 | 698 | 0 | 1,147 |
JSON | 3 | 0 | 0 | 123 |
JavaScript | 2 | 19 | 21 | 104 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 9 | |
Traits | 7 | |
Classes | 228 | |
▷ Abstract classes | 10 | 4.39% |
▷ Concrete classes | 218 | 95.61% |
▷ Final classes | 0 | 0.00% |
Methods | 828 | |
▷ Static methods | 187 | 22.58% |
▷ Public methods | 744 | 89.86% |
▷ Protected methods | 32 | 3.86% |
▷ Private methods | 52 | 6.28% |
Functions | 19 | |
▷ Named functions | 6 | 31.58% |
▷ Anonymous functions | 13 | 68.42% |
Constants | 775 | |
▷ Global constants | 10 | 1.29% |
▷ Class constants | 765 | 98.71% |
▷ Public constants | 765 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.27MB with 0.20MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 280.25KB | 71.19KB | ▼ 74.60% |