Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.21ms] Passed 4 tests
An overview of server-side resources used by Top Identity Verifications for WooCommerce | Trust Swiftly
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.84 ▼7.31 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.53 ▼21.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.29 ▲0.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.51 ▼6.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.29 ▼1.16 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Top Identity Verifications for WooCommerce | Trust Swiftly
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.24 ▼0.12 | 1.58 ▼0.14 | 36.22 ▼8.92 |
Dashboard /wp-admin | 2,192 ▲14 | 5.62 ▼0.04 | 94.81 ▼20.03 | 47.34 ▲0.87 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.00 | 39.55 ▼2.20 | 36.79 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.44 ▲2.46 | 679.87 ▲10.58 | 53.59 ▲4.53 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▲0.02 | 95.33 ▼3.11 | 42.20 ▼1.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
- 59× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/trust-swiftly-verification/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/trust-swiftly-verification/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/trust-swiftly-verification/views/post-order-verification.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/trust-swiftly-verification/vendor/psr/http-client/src/RequestExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'TrustSwiftly\\Api\\Client' not found in wp-content/plugins/trust-swiftly-verification/lib/TrustSwiftly/Api/Validation/CredentialValidationClient.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/trust-swiftly-verification/vendor/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/trust-swiftly-verification/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/trust-swiftly-verification/vendor/guzzlehttp/psr7/src/Response.php:13
- > PHP Notice
Undefined variable: isVerified in wp-content/plugins/trust-swiftly-verification/views/post-order-verification.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/trust-swiftly-verification/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: age verify, fraud prevention, woocommerce, verify id, identity verification
trust-swiftly-verification/trustswiftly-verification.php 77% from 13 tests
The main PHP script in "Top Identity Verifications for WooCommerce | Trust Swiftly" version 1.1.8 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 205 characters long)
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("trust-swiftly-verification.php" instead of "trustswiftly-verification.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected15,776 lines of code in 203 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 159 | 2,527 | 6,285 | 10,864 |
Markdown | 16 | 1,216 | 0 | 3,574 |
JSON | 13 | 0 | 0 | 956 |
JavaScript | 4 | 27 | 6 | 238 |
CSS | 3 | 20 | 3 | 122 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
SVG | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 11.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 30 | |
Traits | 3 | |
Classes | 108 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 108 | 100.00% |
▷ Final classes | 34 | 31.48% |
Methods | 868 | |
▷ Static methods | 140 | 16.13% |
▷ Public methods | 747 | 86.06% |
▷ Protected methods | 12 | 1.38% |
▷ Private methods | 109 | 12.56% |
Functions | 141 | |
▷ Named functions | 48 | 34.04% |
▷ Anonymous functions | 93 | 65.96% |
Constants | 85 | |
▷ Global constants | 1 | 1.18% |
▷ Class constants | 84 | 98.82% |
▷ Public constants | 73 | 86.90% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 78.61KB | 84.60KB | 0.00% |
assets/icon-128x128.png | 17.65KB | 6.88KB | ▼ 61.02% |