Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/vigilantor/vigilantor.php+34
Undefined variable: wp_version
Server metrics [RAM: ▲0.26MB] [CPU: ▲2.26ms] Passed 4 tests
Server-side resources used by VigilanTor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 41.98 ▲3.87 |
Dashboard /wp-admin | 3.57 ▲0.26 | 47.54 ▼1.04 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 53.37 ▲6.49 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 95.29 ▼0.05 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 39.78 ▲6.24 |
VigilanTor Settings /wp-admin/options-general.php?page=vigilantor | 3.80 | 41.85 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
vitor_exit_list |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
vitor_exit_list_last_updated |
db_upgraded |
Browser metrics Passed 4 tests
VigilanTor: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.12 | 1.53 ▼0.07 | 35.92 ▼5.02 |
Dashboard /wp-admin | 2,202 ▲27 | 5.62 ▲0.01 | 90.47 ▼4.37 | 41.76 ▼0.87 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▼0.06 | 39.69 ▲3.17 | 36.86 ▲3.84 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.85 ▲0.94 | 646.73 ▼26.71 | 53.36 ▼7.29 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.10 ▼0.07 | 101.38 ▲0.91 | 45.11 ▼2.01 |
VigilanTor Settings /wp-admin/options-general.php?page=vigilantor | 1,332 | 1.69 | 26.23 | 50.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- vitor_exit_list_last_updated
- vitor_exit_list
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vigilantor/vigilantor.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: registration, block, comments, security, spam...
vigilantor/vigilantor.php Passed 13 tests
The main PHP file in "VigilanTor" ver. 1.3.12 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Provides protections from Tor users visiting your site
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
There were no executable files found in this plugin1,579 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 317 | 262 | 1,579 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 101.50 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 6 | 9.38% |
▷ Public methods | 39 | 60.94% |
▷ Protected methods | 2 | 3.12% |
▷ Private methods | 23 | 35.94% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG files were detected