Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/rsfirewall/installer/installer.php+70
Undefined variable: test
Server metrics [RAM: ▲1.99MB] [CPU: ▲25.11ms] 75% from 4 tests
Analyzing server-side resources used by RSFirewall!
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 548.50ms on /wp-admin/admin.php?page=rsfirewall)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.59 ▲1.13 | 49.29 ▲11.34 |
Dashboard /wp-admin | 5.61 ▲2.30 | 89.50 ▲36.13 |
Posts /wp-admin/edit.php | 5.65 ▲2.29 | 86.72 ▲41.14 |
Add New Post /wp-admin/post-new.php | 8.13 ▲2.24 | 117.58 ▲11.83 |
Media Library /wp-admin/upload.php | 5.54 ▲2.31 | 81.06 ▲47.33 |
RSS Feeds /wp-admin/edit.php?post_type=rsf_feeds | 5.59 | 76.19 |
Configuration /wp-admin/admin.php?page=rsfirewall_configuration | 5.45 | 69.62 |
RSFirewall! /wp-admin/admin.php?page=rsfirewall | 5.69 | 548.50 |
Exceptions /wp-admin/edit.php?post_type=rsf_exceptions | 5.59 | 74.96 |
File Contents /wp-admin/admin.php?page=rsfirewall_file | 5.45 | 68.49 |
Ignored Files /wp-admin/admin.php?page=rsfirewall_ignored | 5.45 | 73.65 |
Blocklist / Safelist /wp-admin/edit.php?post_type=rsf_lists | 5.59 | 73.57 |
Threats /wp-admin/edit.php?post_type=rsf_threats | 5.59 | 71.25 |
System Check /wp-admin/admin.php?page=rsfirewall_check | 5.48 | 73.86 |
File Differences /wp-admin/admin.php?page=rsfirewall_diff | 5.52 | 329.52 |
Server storage [IO: ▲2.64MB] [DB: ▲0.11MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 474 new files
Database: 4 new tables, 19 new options
New tables |
---|
wp_rsfirewall_ignored |
wp_rsfirewall_hashes |
wp_rsfirewall_offenders |
wp_rsfirewall_signatures |
New WordPress options |
---|
rsfirewall_two_factor_auth |
rsfirewall_import |
rsfirewall_updates |
rsfirewall_country_blocking |
db_upgraded |
can_compress_scripts |
rsfirewall_active_scanner |
widget_recent-comments |
widget_theysaidso_widget |
rsfirewall_hardening |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RSFirewall!
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲207 | 14.40 ▼0.13 | 2.13 ▲0.36 | 37.66 ▼5.59 |
Dashboard /wp-admin | 2,374 ▲200 | 4.90 ▼0.71 | 96.06 ▲11.29 | 72.14 ▲30.91 |
Posts /wp-admin/edit.php | 2,193 ▲96 | 2.36 ▲0.37 | 33.96 ▼1.22 | 35.00 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,601 ▲75 | 23.28 ▼0.49 | 610.89 ▼72.09 | 32.41 ▼17.84 |
Media Library /wp-admin/upload.php | 1,489 ▲89 | 4.35 ▲0.03 | 98.11 ▼6.00 | 79.16 ▲35.70 |
RSS Feeds /wp-admin/edit.php?post_type=rsf_feeds | 1,197 | 2.32 | 34.10 | 31.41 |
Configuration /wp-admin/admin.php?page=rsfirewall_configuration | 1,756 | 2.38 | 48.12 | 45.17 |
RSFirewall! /wp-admin/admin.php?page=rsfirewall | 1,216 | 2.74 | 81.25 | 34.53 |
Exceptions /wp-admin/edit.php?post_type=rsf_exceptions | 1,257 | 2.31 | 32.87 | 34.17 |
File Contents /wp-admin/admin.php?page=rsfirewall_file | 848 | 1.80 | 28.35 | 23.79 |
Ignored Files /wp-admin/admin.php?page=rsfirewall_ignored | 890 | 1.76 | 27.32 | 23.59 |
Blocklist / Safelist /wp-admin/edit.php?post_type=rsf_lists | 1,230 | 2.22 | 34.63 | 31.73 |
Threats /wp-admin/edit.php?post_type=rsf_threats | 1,397 | 2.30 | 32.70 | 28.93 |
System Check /wp-admin/admin.php?page=rsfirewall_check | 1,359 | 1.98 | 34.94 | 24.78 |
File Differences /wp-admin/admin.php?page=rsfirewall_diff | 866 | 1.89 | 25.48 | 24.77 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- rsfirewall_hardening
- theysaidso_admin_options
- widget_recent-posts
- rsfirewall_two_factor_auth
- can_compress_scripts
- rsfirewall_lite_version
- rsfirewall_country_blocking
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/rsfirewall/templates/rsmodal.php
- 81× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/rsfirewall/libraries/Net/DNS2/RR/SOA.php:46
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/rsfirewall/views/ignored.php:2
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/rsfirewall/libraries/Net/DNS2/RR/HINFO.php:30
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/rsfirewall/libraries/Net/DNS2/RR/APL.php:33
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/rsfirewall/libraries/Net/DNS2/RR/ATMA.php:32
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/rsfirewall/libraries/Net/DNS2/RR/SRV.php:34
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/rsfirewall/libraries/Net/DNS2/RR/SSHFP.php:33
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/rsfirewall/libraries/Net/DNS2/RR/TKEY.php:46
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/rsfirewall/libraries/Net/DNS2/RR/PTR.php:28
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_Cache' not found in wp-content/plugins/rsfirewall/libraries/Net/DNS2/Cache/File.php:24
- > 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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: system check, firewall, web application firewall, security, malware scanner
rsfirewall/rsfirewall.php Passed 13 tests
The entry point to "RSFirewall!" version 1.1.30 is a PHP file that has certain tags in its header comment area
134 characters long description:
Based on the success of the most popular firewall for Joomla!, RSFirewall! is now available to protect your WordPress website as well.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected25,675 lines of code in 210 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 152 | 5,004 | 11,935 | 16,943 |
CSS | 8 | 438 | 221 | 3,319 |
JavaScript | 16 | 377 | 601 | 2,052 |
PO File | 1 | 706 | 727 | 1,868 |
LESS | 15 | 135 | 137 | 890 |
SQL | 2 | 3 | 0 | 317 |
XML | 15 | 6 | 1 | 285 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 200.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 138 | |
▷ Abstract classes | 2 | 1.45% |
▷ Concrete classes | 136 | 98.55% |
▷ Final classes | 0 | 0.00% |
Methods | 885 | |
▷ Static methods | 111 | 12.54% |
▷ Public methods | 542 | 61.24% |
▷ Protected methods | 325 | 36.72% |
▷ Private methods | 18 | 2.03% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 179 | |
▷ Global constants | 10 | 5.59% |
▷ Class constants | 169 | 94.41% |
▷ Public constants | 169 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
252 compressed PNG files occupy 0.42MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flags/np.png | 0.62KB | 0.52KB | ▼ 15.93% |
assets/images/flags/in.png | 0.42KB | 0.35KB | ▼ 16.71% |
assets/images/flags/sy.png | 0.41KB | 0.35KB | ▼ 14.93% |
assets/images/flags/im.png | 0.53KB | 0.54KB | 0.00% |
assets/images/flags/ph.png | 0.50KB | 0.52KB | 0.00% |