Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▲1.06ms] Passed 4 tests
A check of server-side resources used by Deny All Firewall
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 46.71 ▲6.35 |
Dashboard /wp-admin | 3.74 ▲0.43 | 47.25 ▼6.08 |
Posts /wp-admin/edit.php | 3.86 ▲0.49 | 47.57 ▲2.05 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 92.38 ▲1.92 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 40.02 ▲8.81 |
Deny All Firewall /wp-admin/options-general.php?page=daf_settings | 3.69 | 38.92 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Deny All Firewall
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.72 ▲0.35 | 1.92 ▲0.32 | 37.44 ▼5.89 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.01 | 87.33 ▼12.68 | 39.82 ▼3.83 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.03 | 33.63 ▼9.68 | 34.30 ▲0.35 |
Add New Post /wp-admin/post-new.php | 6,229 ▲4,703 | 26.18 ▲4.19 | 827.85 ▲125.86 | 57.11 ▲2.63 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.22 ▼0.01 | 100.54 ▼7.07 | 41.52 ▼0.39 |
Deny All Firewall /wp-admin/options-general.php?page=daf_settings | 1,630 | 6.88 | 144.18 | 76.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/deny-all-firewall/deny-all-firewall.php+1036
Invalid argument supplied for foreach()
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/deny-all-firewall/deny-all-firewall.php
- > /wp-content/plugins/deny-all-firewall/remote-addr.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
5 plugin tags: carbon footprint, firewall, deny from all, green, htaccess
deny-all-firewall/deny-all-firewall.php Passed 13 tests
"Deny All Firewall" version 1.7.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Blocks access to everything except genuine site content using .htaccess
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin2,191 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 1,308 | 42 | 2,179 |
JavaScript | 1 | 5 | 3 | 12 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 200)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.78 |
Average class complexity | 157.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 380.00 |
Average method complexity | 8.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 200.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 24 | 38.10% |
▷ Public methods | 63 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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