Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼145.60ms] Passed 4 tests
Analyzing server-side resources used by Token Vendor for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 41.81 ▲8.28 |
Dashboard /wp-admin | 3.10 ▲0.04 | 33.52 ▼18.21 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 45.42 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 87.96 ▼562.38 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 33.61 ▲0.99 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 185 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Token Vendor for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.00 ▲0.40 | 10.25 ▼1.51 | 44.94 ▼1.92 |
Dashboard /wp-admin | 2,967 ▲30 | 5.93 ▼0.02 | 139.49 ▼8.36 | 111.96 ▼7.46 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 65.97 ▼3.65 | 86.36 ▼7.69 |
Add New Post /wp-admin/post-new.php | 3,577 ▲1,894 | 14.76 ▼4.03 | 473.51 ▲68.64 | 110.28 ▲1.58 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.02 ▼0.02 | 185.62 ▲34.29 | 111.37 ▼1.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/token-vendor-for-woocommerce/includes/admin/views/template-updates.php
- > /wp-content/plugins/token-vendor-for-woocommerce/includes/admin/views/template-popup-customer-downloads.php
- > /wp-content/plugins/token-vendor-for-woocommerce/templates/admin-page/notice/template-updates.php
- > /wp-content/plugins/token-vendor-for-woocommerce/templates/admin-page/header/template-admin-menu-page-tabs.php
- > /wp-content/plugins/token-vendor-for-woocommerce/includes/endpoint/views/template-popup-customer-downloads.php
- 63× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\BaseSigner' not found in wp-content/plugins/token-vendor-for-woocommerce/includes/3rd/jwt/lcobucci/jwt/src/Signer/Rsa.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Lcobucci\\JWT\\Signer' not found in wp-content/plugins/token-vendor-for-woocommerce/includes/3rd/jwt/lcobucci/jwt/src/Signer/BaseSigner.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/token-vendor-for-woocommerce/includes/3rd/jwt/lcobucci/jwt/test/unit/Signer/Rsa/Sha384Test.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/token-vendor-for-woocommerce/includes/3rd/jwt/lcobucci/jwt/test/functional/UnsignedTokenTest.php:19
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/token-vendor-for-woocommerce/templates/admin-page/header/template-admin-menu-page-tabs.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/token-vendor-for-woocommerce/includes/3rd/jwt/lcobucci/jwt/test/unit/ValidationDataTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/token-vendor-for-woocommerce/includes/3rd/jwt/lcobucci/jwt/test/unit/Signer/Ecdsa/Sha256Test.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/token-vendor-for-woocommerce/includes/3rd/jwt/lcobucci/jwt/test/unit/Signer/BaseSignerTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'NTVWC_REST_API' not found in wp-content/plugins/token-vendor-for-woocommerce/includes/rest-api/class-ntvwc-rest-api-jwt.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/token-vendor-for-woocommerce/includes/3rd/jwt/lcobucci/jwt/test/unit/Signer/Hmac/Sha512Test.php:14
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in token-vendor-for-woocommerce/assets to your readme.txt
token-vendor-for-woocommerce/token-vendor-by-woocommerce.php 85% from 13 tests
"Token Vendor for WooCommerce" version 0.1.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("token-vendor-for-woocommerce.php" instead of "token-vendor-by-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected12,907 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 144 | 4,282 | 9,737 | 11,675 |
PO File | 1 | 252 | 432 | 477 |
JavaScript | 6 | 174 | 183 | 352 |
JSON | 2 | 0 | 0 | 114 |
Markdown | 1 | 47 | 0 | 102 |
CSS | 3 | 8 | 3 | 88 |
YAML | 2 | 3 | 0 | 68 |
XML | 1 | 2 | 0 | 31 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 12.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 201.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 6 | |
Traits | 1 | |
Classes | 105 | |
▷ Abstract classes | 10 | 9.52% |
▷ Concrete classes | 95 | 90.48% |
▷ Final classes | 3 | 3.16% |
Methods | 912 | |
▷ Static methods | 44 | 4.82% |
▷ Public methods | 739 | 81.03% |
▷ Protected methods | 144 | 15.79% |
▷ Private methods | 29 | 3.18% |
Functions | 61 | |
▷ Named functions | 58 | 95.08% |
▷ Anonymous functions | 3 | 4.92% |
Constants | 27 | |
▷ Global constants | 4 | 14.81% |
▷ Class constants | 23 | 85.19% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected