Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.41ms] Passed 4 tests
Server-side resources used by Tor Blocker by Inazo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.61 ▼6.78 |
Dashboard /wp-admin | 3.42 ▲0.11 | 51.97 ▼4.03 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 56.96 ▲6.73 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 101.97 ▲4.63 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 41.09 ▲4.55 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 89 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_inazo_tor_logs |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
inazo.real.tor.blocker_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Tor Blocker by Inazo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.18 ▼1.20 | 4.43 ▲2.32 | 37.95 ▼5.75 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▼0.02 | 109.43 ▼9.96 | 42.15 ▼6.84 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.02 | 40.29 ▲3.10 | 34.81 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.59 ▼5.83 | 657.12 ▲11.79 | 62.20 ▲8.63 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▼0.02 | 101.16 ▼2.24 | 44.03 ▼1.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== tor-blocker-by-inazo ===
)
tor-blocker-by-inazo/inazo.real.tor.blocker.php 92% from 13 tests
This is the main PHP file of "Tor Blocker by Inazo" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("tor-blocker-by-inazo.php" instead of "inazo.real.tor.blocker.php")
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
Everything looks great! No dangerous files found in this plugin7,085 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 2,551 | 11,614 | 6,534 |
XML | 1 | 1 | 0 | 499 |
JSON | 1 | 0 | 0 | 27 |
Markdown | 1 | 15 | 0 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 81 | |
▷ Abstract classes | 2 | 2.47% |
▷ Concrete classes | 79 | 97.53% |
▷ Final classes | 0 | 0.00% |
Methods | 323 | |
▷ Static methods | 13 | 4.02% |
▷ Public methods | 86 | 26.63% |
▷ Protected methods | 227 | 70.28% |
▷ Private methods | 10 | 3.10% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 2 | 1.37% |
▷ Class constants | 144 | 98.63% |
▷ Public constants | 144 | 100.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
No PNG files were detected