Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▲2.48ms] Passed 4 tests
Analyzing server-side resources used by Token of Trust: AI Identity Verification, Age Verification, and KYC
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 41.23 ▲0.61 |
Dashboard /wp-admin | 3.53 ▲0.18 | 60.08 ▼2.80 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 60.88 ▲12.96 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 94.58 ▼0.86 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 53.18 ▲23.33 |
License & API /wp-admin/admin.php?page=totsettings_license | 3.45 | 50.92 |
Server storage [IO: ▲1.13MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 186 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
tot_options |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
tot_logs |
Browser metrics Passed 4 tests
Token of Trust: AI Identity Verification, Age Verification, and KYC: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲217 | 13.83 ▼0.30 | 7.94 ▲6.13 | 39.24 ▼4.13 |
Dashboard /wp-admin | 2,299 ▲124 | 5.89 ▲0.17 | 93.58 ▼14.96 | 73.78 ▲31.77 |
Posts /wp-admin/edit.php | 2,202 ▲102 | 2.42 ▲0.33 | 38.85 ▼0.78 | 34.93 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 23.32 ▲0.28 | 664.90 ▼25.87 | 170.86 ▲119.13 |
Media Library /wp-admin/upload.php | 1,492 ▲92 | 4.57 ▲0.28 | 102.27 ▲4.48 | 74.45 ▲34.46 |
License & API /wp-admin/admin.php?page=totsettings_license | 1,102 | 1.95 | 29.53 | 36.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- tot_logs
- db_upgraded
- widget_theysaidso_widget
- tot_options
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/token-of-trust/admin/settings-page/view-quickstart-modal.php
- 54× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/token-of-trust/users/new-user-tot-connection.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/token-of-trust/upgrades/detection.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/token-of-trust/admin/settings-page/view-webhooks.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/token-of-trust/shared/shortcode-tot-reputation-status.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function TOT\\add_filter() in wp-content/plugins/token-of-trust/examples/filter--wc-process-order-set-quarantine.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/token-of-trust/admin/notices.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/token-of-trust/integrations/ultimate-member/um_account_page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/token-of-trust/shared/flash-notice-queue.php:53
- > PHP Fatal error
Uncaught Error: Class 'TOT\\API_Connection' not found in wp-content/plugins/token-of-trust/shared/class-api-request.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function TOT\\add_filter() in wp-content/plugins/token-of-trust/examples/filter--wc-is_verification_required_for_order.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=totsettings_license
- > Javascript (severe) in unknown
/wp-content/plugins/token-of-trust/admin/settings-page/common/tot-quickstart.js?ver=6.3.1 87:21 Uncaught TypeError: Cannot read properties of null (reading 'getElementsByClassName')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: kyc, verify age, woocommerce, identity verification, fraud prevention
token-of-trust/token-of-trust.php 85% from 13 tests
This is the main PHP file of "Token of Trust: AI Identity Verification, Age Verification, and KYC" version 1.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 350 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.0")
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
Everything looks great! No dangerous files found in this plugin21,785 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 67 | 2,583 | 770 | 10,051 |
PHP | 96 | 2,005 | 1,318 | 9,605 |
CSS | 8 | 192 | 37 | 1,350 |
PO File | 2 | 196 | 231 | 620 |
JSON | 1 | 0 | 0 | 74 |
SVG | 4 | 0 | 0 | 52 |
Markdown | 2 | 11 | 0 | 33 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 23.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 243.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 256 | |
▷ Static methods | 13 | 5.08% |
▷ Public methods | 244 | 95.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 4.69% |
Functions | 226 | |
▷ Named functions | 215 | 95.13% |
▷ Anonymous functions | 11 | 4.87% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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
There were not PNG files found in your plugin