Benchmarks
Plugin footprint 82% 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.80MB] [CPU: ▼135.83ms] Passed 4 tests
Analyzing server-side resources used by License Keys for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.79 | 40.88 ▲17.63 |
Dashboard /wp-admin | 3.91 ▲0.85 | 52.40 ▲3.10 |
Posts /wp-admin/edit.php | 3.97 ▲0.85 | 52.71 ▲5.69 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.76 | 98.41 ▼563.38 |
Media Library /wp-admin/upload.php | 3.80 ▲0.79 | 42.25 ▲11.26 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- You have illegally modified 2 files (0.06KB) outside of "wp-content/plugins/woo-license-keys/" and "wp-content/uploads/"
- (new file) wp-content/wpmvc/log/.empty
- (new file) wp-content/wpmvc/cache/pcom/.htaccess
Filesystem: 536 new files
Database: no new tables, 2 new options
New WordPress options |
---|
model_wpmvc_reviewer |
woocommerce_store_code |
Browser metrics Passed 4 tests
A check of browser resources used by License Keys for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,719 ▲113 | 15.90 ▲0.40 | 9.32 ▼1.80 | 48.73 ▼12.47 |
Dashboard /wp-admin | 2,986 ▲55 | 6.06 ▲0.11 | 139.18 ▼17.25 | 106.60 ▼6.68 |
Posts /wp-admin/edit.php | 2,755 ▲19 | 2.71 ▼0.01 | 64.84 ▲1.56 | 95.98 ▲5.64 |
Add New Post /wp-admin/post-new.php | 2,067 ▲391 | 19.37 ▲0.52 | 380.10 ▼10.69 | 104.80 ▼0.99 |
Media Library /wp-admin/upload.php | 1,823 ▲16 | 5.04 ▲0.02 | 148.51 ▼0.08 | 116.58 ▼0.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- woocommerce_store_code
- model_wpmvc_reviewer
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-license-keys/assets/views/admin/inline-script-data.php
- 306× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\KeyRename' not found in wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/KeyRenamePreserve.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Connection\\StreamConnection' not found in wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Connection/CompositeStreamConnection.php:26
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Profile\\RedisProfile' not found in wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Profile/RedisVersion260.php:19
- > PHP Fatal error
Uncaught Error: Class 'WPMVC\\PHPFastCache\\BasePhpFastCache' not found in wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-phpfastcache/src/psr4/drivers/redis.php:16
- > PHP Fatal error
Uncaught Error: Interface 'WPMVC\\Contracts\\Loggable' not found in wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-core/src/psr4/Log.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Pipeline\\Pipeline' not found in wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Pipeline/ConnectionErrorProof.php:28
- > PHP Fatal error
Uncaught Error: Class 'Predis\\PredisException' not found in wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Response/ServerException.php:21
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\ListPopFirstBlocking' not found in wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/ListPopLastBlocking.php:18
- > PHP Fatal error
Uncaught Predis\\Connection\\ConnectionException: Connection refused [tcp://127.0.0.1:6379] in wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Connection/AbstractConnection.php:146
- > PHP Fatal error
Uncaught Error: Interface 'Predis\\Protocol\\ResponseReaderInterface' not found in wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Protocol/Text/ResponseReader.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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 your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== License Keys for WooCommerce ===
)
woo-license-keys/plugin.php 77% from 13 tests
"License Keys for WooCommerce" version 1.5.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-license-keys.php" instead of "plugin.php")
- Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "5.6")
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "3")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin23,293 lines of code in 474 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 426 | 3,672 | 14,746 | 19,241 |
Markdown | 15 | 606 | 0 | 1,502 |
JSON | 13 | 1 | 0 | 1,098 |
PO File | 4 | 272 | 2 | 612 |
SVG | 2 | 2 | 2 | 589 |
XML | 8 | 0 | 0 | 118 |
JavaScript | 5 | 4 | 63 | 109 |
INI | 1 | 6 | 6 | 24 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 6.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 56 | |
Interfaces | 46 | |
Traits | 22 | |
Classes | 322 | |
▷ Abstract classes | 28 | 8.70% |
▷ Concrete classes | 294 | 91.30% |
▷ Final classes | 1 | 0.34% |
Methods | 1,619 | |
▷ Static methods | 105 | 6.49% |
▷ Public methods | 1,315 | 81.22% |
▷ Protected methods | 224 | 13.84% |
▷ Private methods | 80 | 4.94% |
Functions | 72 | |
▷ Named functions | 27 | 37.50% |
▷ Anonymous functions | 45 | 62.50% |
Constants | 44 | |
▷ Global constants | 4 | 9.09% |
▷ Class constants | 40 | 90.91% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin