Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.43ms] Passed 4 tests
This is a short check of server-side resources used by Shieldfy Security Firewall and Anti Virus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.08 | 41.02 ▼8.28 |
Dashboard /wp-admin | 3.42 ▲0.03 | 71.38 ▲3.97 |
Posts /wp-admin/edit.php | 3.53 ▲0.13 | 49.70 ▼3.43 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.07 | 85.44 ▼5.63 |
Media Library /wp-admin/upload.php | 3.34 ▲0.07 | 40.99 ▲3.62 |
Server storage [IO: ▲2.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 162 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Shieldfy Security Firewall and Anti Virus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.25 ▼0.40 | 1.77 ▲0.02 | 41.91 ▼5.61 |
Dashboard /wp-admin | 2,212 ▲35 | 5.52 ▼0.15 | 99.63 ▲1.38 | 81.66 ▲32.86 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 1.97 ▼0.02 | 38.84 ▼2.51 | 35.19 ▼5.26 |
Add New Post /wp-admin/post-new.php | 1,709 ▲181 | 22.33 ▼0.39 | 721.95 ▲114.74 | 52.48 ▼7.40 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.14 ▲0.02 | 96.70 ▼8.11 | 68.14 ▲24.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% 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 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/shieldfy/vendor/shieldfy/shieldfy-php-client/src/Extensions/Laravel/views/block.blade.php
- 66× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Shieldfy\ormalizer\ormalizeInterface' not found in wp-content/plugins/shieldfy/vendor/shieldfy/normalizer/src/Normalizers/NormalizeJson.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Shieldfy\\Collectors\\Collectable' not found in wp-content/plugins/shieldfy/vendor/shieldfy/shieldfy-php-client/src/Collectors/ExceptionsCollector.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Shieldfy\ormalizer\ormalizeInterface' not found in wp-content/plugins/shieldfy/vendor/shieldfy/normalizer/src/Normalizers/NormalizeSerialize.php:22
- > PHP Notice
Undefined variable: API_SERVER_ENDPOINT in wp-content/plugins/shieldfy/shieldfy.client.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/shieldfy/vendor/shieldfy/shieldfy-php-client/tests/UserCollectorTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Shieldfy\\Collectors\\Collectable' not found in wp-content/plugins/shieldfy/vendor/shieldfy/shieldfy-php-client/src/Collectors/RequestCollector.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Shieldfy\ormalizer\ormalizeInterface' not found in wp-content/plugins/shieldfy/vendor/shieldfy/normalizer/src/Normalizers/NormalizeSQLKeywords.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Shieldfy\\Sniffer\\TypeInterface' not found in wp-content/plugins/shieldfy/vendor/shieldfy/sniffer/src/Types/JsonType.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Shieldfy\ormalizer\ormalizeInterface' not found in wp-content/plugins/shieldfy/vendor/shieldfy/normalizer/src/Normalizers/NormalizeUTF7.php:21
- > PHP Warning
file_get_contents(wp-content/plugins/shieldfy/shieldfy/data/general.json): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/shieldfy/shieldfy.client.php on line 914
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Screenshots: Add an image for screenshot #6 (Setting pages allows you to control nearly everything (firewall , ban , scanner and notifications settings))
- Tags: There are too many tags (30 tag instead of maximum 10)
shieldfy/shieldfy.php 92% from 13 tests
The main PHP script in "Shieldfy Security Firewall and Anti Virus" version 3.6.0 is automatically included on every request by WordPress
You should first fix the following items:
- Git Repository: An alternative Git repository was detected
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected14,009 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Blade | 1 | 1,174 | 0 | 6,711 |
PHP | 102 | 1,136 | 1,930 | 5,560 |
SVG | 1 | 0 | 0 | 640 |
YAML | 10 | 36 | 13 | 377 |
JSON | 4 | 0 | 0 | 310 |
Markdown | 11 | 177 | 0 | 304 |
XML | 3 | 0 | 0 | 66 |
CSS | 1 | 2 | 11 | 26 |
HTML | 1 | 0 | 0 | 10 |
JavaScript | 1 | 1 | 7 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 4 | |
Traits | 4 | |
Classes | 91 | |
▷ Abstract classes | 2 | 2.20% |
▷ Concrete classes | 89 | 97.80% |
▷ Final classes | 0 | 0.00% |
Methods | 379 | |
▷ Static methods | 41 | 10.82% |
▷ Public methods | 299 | 78.89% |
▷ Protected methods | 9 | 2.37% |
▷ Private methods | 71 | 18.73% |
Functions | 37 | |
▷ Named functions | 12 | 32.43% |
▷ Anonymous functions | 25 | 67.57% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
favicon-32x32.png | 1.59KB | 1.67KB | 0.00% |
shieldfy.png | 0.96KB | 1.25KB | 0.00% |