Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼304.25ms] Passed 4 tests
This is a short check of server-side resources used by Tor Router
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.08 | 53.19 ▲1.65 |
Dashboard /wp-admin | 3.50 ▲0.09 | 34.11 ▼6.72 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 35.13 ▼0.87 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 93.28 ▼1,208.68 |
Media Library /wp-admin/upload.php | 3.38 ▲0.08 | 23.79 ▼0.72 |
Tor Router /wp-admin/options-general.php?page=torrouter | 3.35 | 23.13 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
torrouter_torkeepalive |
torrouter_port |
torrouter_version |
torrouter_firewall_exceptions_urls |
torrouter_firewall_exceptions_plugins |
torrouter_proxymode |
torrouter_firewall |
torrouter_host |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tor Router
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲26 | 15.91 ▲0.37 | 5.92 ▲0.21 | 2.37 ▲0.04 |
Dashboard /wp-admin | 2,894 ▲33 | 6.14 ▼0.02 | 125.61 ▼9.05 | 160.19 ▼2.99 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▲0.00 | 62.05 ▲1.63 | 139.69 ▼5.32 |
Add New Post /wp-admin/post-new.php | 1,664 ▼53 | 15.78 ▼6.03 | 395.00 ▼33.25 | 152.86 ▼11.30 |
Media Library /wp-admin/upload.php | 1,700 ▼1 | 5.48 ▼0.04 | 141.97 ▲1.08 | 185.70 ▼1.81 |
Tor Router /wp-admin/options-general.php?page=torrouter | 1,292 | 2.41 | 52.71 | 121.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- torrouter_version
- torrouter_host
- torrouter_firewall
- torrouter_port
- torrouter_firewall_exceptions_plugins
- torrouter_firewall_exceptions_urls
- torrouter_torkeepalive
- torrouter_proxymode
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tor-router/tor-router.php:52
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: firewall, proxy, connection, proxies, socks...
tor-router/tor-router.php Passed 13 tests
This is the main PHP file of "Tor Router" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Routes outgoing traffic through Tor or any HTTP / SOCKS Proxy.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected535 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 58 | 455 |
Bourne Shell | 1 | 4 | 4 | 80 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin