Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.39MB] [CPU: ▲11.14ms] Passed 4 tests
A check of server-side resources used by WP Shieldon - WordPress Firewall
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.05 ▼3.52 |
Dashboard /wp-admin | 5.13 ▲1.83 | 72.16 ▲27.45 |
Posts /wp-admin/edit.php | 5.24 ▲1.89 | 64.14 ▲15.06 |
Add New Post /wp-admin/post-new.php | 7.70 ▲1.82 | 105.84 ▲14.62 |
Media Library /wp-admin/upload.php | 5.03 ▲1.80 | 51.01 ▲18.40 |
Import / Export /wp-admin/admin.php?page=shieldon-import-export | 5.04 | 49.73 |
XSS Protection /wp-admin/admin.php?page=shieldon-xss-protection | 5.05 | 52.77 |
Rule Table /wp-admin/admin.php?page=shieldon-rule-table | 5.05 | 55.94 |
Operation Status /wp-admin/admin.php?page=shieldon-operation-status | 5.00 | 47.15 |
Overview /wp-admin/admin.php?page=shieldon-overview | 5.00 | 47.76 |
Session Table /wp-admin/admin.php?page=shieldon-session-table | 5.05 | 52.16 |
IP Manager /wp-admin/admin.php?page=shieldon-ip-manager | 5.03 | 48.22 |
Settings /wp-admin/admin.php?page=shieldon-settings | 5.03 | 52.44 |
Filter Log Table /wp-admin/admin.php?page=shieldon-filter-log-table | 5.06 | 50.99 |
About /wp-admin/admin.php?page=shieldon-about | 5.03 | 47.73 |
Server storage [IO: ▲6.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 484 new files
Database: 3 new tables, 22 new options
New tables |
---|
1_shieldon_sessions |
1_shieldon_rule_list |
1_shieldon_filter_logs |
New WordPress options |
---|
recovery_mode_email_last_sent |
widget_recent-posts |
shieldon_filter |
shieldon_ip_signup |
shieldon_ip_login |
widget_theysaidso_widget |
wpso_lang_code |
shieldon_component |
wpso_last_reset_time |
wpso_version |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Shieldon - WordPress Firewall
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,023 ▲277 | 14.79 ▲0.41 | 1.84 ▲0.03 | 45.60 ▼0.51 |
Dashboard /wp-admin | 2,426 ▲238 | 6.66 ▲1.76 | 117.65 ▲14.86 | 37.14 ▼2.75 |
Posts /wp-admin/edit.php | 2,335 ▲243 | 3.52 ▲1.54 | 52.60 ▲15.05 | 32.55 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,581 ▲67 | 23.38 ▲5.83 | 595.62 ▼55.04 | 34.19 ▼16.78 |
Media Library /wp-admin/upload.php | 1,474 ▲86 | 4.44 ▲0.22 | 85.64 ▼11.24 | 42.75 ▲1.26 |
Import / Export /wp-admin/admin.php?page=shieldon-import-export | 1,152 | 6.72 | 76.64 | 102.02 |
XSS Protection /wp-admin/admin.php?page=shieldon-xss-protection | 1,427 | 7.01 | 102.33 | 84.00 |
Rule Table /wp-admin/admin.php?page=shieldon-rule-table | 1,321 | 7.03 | 88.61 | 96.10 |
Operation Status /wp-admin/admin.php?page=shieldon-operation-status | 764 | 2.07 | 18.06 | 22.20 |
Overview /wp-admin/admin.php?page=shieldon-overview | 764 | 2.07 | 18.58 | 22.04 |
Session Table /wp-admin/admin.php?page=shieldon-session-table | 1,384 | 6.30 | 89.87 | 105.15 |
IP Manager /wp-admin/admin.php?page=shieldon-ip-manager | 1,516 | 5.91 | 73.45 | 97.06 |
Settings /wp-admin/admin.php?page=shieldon-settings | 2,312 | 6.83 | 87.83 | 95.23 |
Filter Log Table /wp-admin/admin.php?page=shieldon-filter-log-table | 1,360 | 6.06 | 96.65 | 80.10 |
About /wp-admin/admin.php?page=shieldon-about | 1,160 | 6.66 | 59.52 | 125.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 3 tables in the database
- 1_shieldon_filter_logs
- 1_shieldon_rule_list
- 1_shieldon_sessions
- This plugin does not fully uninstall, leaving 10 options in the database
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-comments
- shieldon_exclusion
- db_upgraded
- wpso_last_reset_time
- widget_theysaidso_widget
- widget_recent-posts
- wpso_version
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=shieldon-operation-status
- > Error in wp-content/plugins/wp-shieldon/includes/class-wpso-admin-menu.php+896
Uncaught ReflectionException: Cannot access non-public member Shieldon\Firewall\Kernel::$filterStatus in wp-content/plugins/wp-shieldon/includes/class-wpso-admin-menu.php:896
Stack trace:
#0 wp-content/plugins/wp-shieldon/includes/class-wpso-admin-menu.php(896): ReflectionProperty->getValue()
#1 wp-includes/class-wp-hook.php(310): WPSO_Admin_Menu->operation_status()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=shieldon-overview
- > Error in wp-content/plugins/wp-shieldon/includes/class-wpso-admin-menu.php+815
Uncaught ReflectionException: Cannot access non-public member Shieldon\Firewall\Kernel::$filterStatus in wp-content/plugins/wp-shieldon/includes/class-wpso-admin-menu.php:815
Stack trace:
#0 wp-content/plugins/wp-shieldon/includes/class-wpso-admin-menu.php(815): ReflectionProperty->getValue()
#1 wp-includes/class-wp-hook.php(310): WPSO_Admin_Menu->overview()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 36× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/panel/table_rules.php
- > /wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/panel/setting/filters.php
- > /wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/panel/messenger/tab.php
- > /wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/panel/template.php
- > /wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/panel/setting/admin_login.php
- > /wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/panel/authentication.php
- > /wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/panel/js/chart.php
- > /wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/panel/action_log_yesterday.php
- > /wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/frontend/captcha.php
- > /wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/panel/overview.php
- 160× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Shieldon\\FirewallTest\\ShieldonTestCase' not found in wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/tests/Firewall/Firewall/Driver/ItemMysqlDriverTest.php:25
- > PHP Fatal error
Trait 'Shieldon\\Firewall\\Panel\\DemoModeTrait' not found in wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/src/Firewall/Panel.php on line 48
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriFactoryInterface' not found in wp-content/plugins/wp-shieldon/vendor/shieldon/psr-http/src/Psr17/UriFactory.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-shieldon/vendor/shieldon/psr-http/tests/Psr17/UploadFileFactoryTest.php:21
- > PHP Fatal error
Trait 'WPSO_Singleton' not found in wp-content/plugins/wp-shieldon/includes/class-wpso-admin-menu.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/tests/Firewall/ShieldonTestCase.php:35
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-shieldon/vendor/shieldon/psr-http/tests/Psr7/MessageTest.php:22
- > PHP Fatal error
Trait 'Shieldon\\Firewall\\Kernel\\CaptchaTrait' not found in wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/src/Firewall/Kernel.php on line 59
- > PHP Notice
Undefined index: bg_color in wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/templates/frontend/css/default.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'Shieldon\\Firewall\\Component\\ComponentProvider' not found in wp-content/plugins/wp-shieldon/vendor/shieldon/shieldon/src/Firewall/Component/Rdns.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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: firewall, brute-force, security, anti-scriping, xss-protection
wp-shieldon/wp-shieldon.php Passed 13 tests
The entry point to "WP Shieldon - WordPress Firewall" version 2.0.2 is a PHP file that has certain tags in its header comment area
38 characters long description:
An anti-scraping plugin for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected46,815 lines of code in 417 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 334 | 7,518 | 16,008 | 35,663 |
Sass | 21 | 715 | 149 | 3,807 |
JSON | 16 | 3 | 0 | 1,966 |
PO File | 3 | 861 | 880 | 1,788 |
CSS | 3 | 36 | 35 | 1,204 |
Markdown | 12 | 437 | 0 | 1,181 |
XML | 7 | 8 | 0 | 376 |
JavaScript | 8 | 27 | 63 | 337 |
YAML | 8 | 48 | 1 | 215 |
Bourne Shell | 2 | 65 | 66 | 212 |
Dockerfile | 1 | 11 | 0 | 47 |
Ruby | 2 | 14 | 29 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 8.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 45 | |
Interfaces | 19 | |
Traits | 23 | |
Classes | 201 | |
▷ Abstract classes | 5 | 2.49% |
▷ Concrete classes | 196 | 97.51% |
▷ Final classes | 4 | 2.04% |
Methods | 1,429 | |
▷ Static methods | 76 | 5.32% |
▷ Public methods | 1,132 | 79.22% |
▷ Protected methods | 206 | 14.42% |
▷ Private methods | 91 | 6.37% |
Functions | 85 | |
▷ Named functions | 60 | 70.59% |
▷ Anonymous functions | 25 | 29.41% |
Constants | 112 | |
▷ Global constants | 27 | 24.11% |
▷ Class constants | 85 | 75.89% |
▷ Public constants | 85 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/shieldon/psr-http/tests/sample/shieldon_logo_bak.png | 14.81KB | 7.00KB | ▼ 52.72% |
vendor/shieldon/shieldon/assets/src/images/logo.png | 7.32KB | 3.30KB | ▼ 54.87% |
vendor/shieldon/psr-http/tests/sample/shieldon_logo.png | 14.81KB | 7.00KB | ▼ 52.72% |
includes/assets/images/icon-clock_96x96.png | 8.09KB | 2.99KB | ▼ 63.06% |
vendor/shieldon/shieldon/assets/src/images/icon-warning_96x96.png | 7.71KB | 2.95KB | ▼ 61.80% |