Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. Unsupported value type (array). Please see Debugging in WordPress for more information. (This message was added in version 4.8.2.)
Server metrics [RAM: ▲0.28MB] [CPU: ▲0.92ms] Passed 4 tests
A check of server-side resources used by SeaSP Community Edition
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 45.53 ▲3.81 |
Dashboard /wp-admin | 3.59 ▲0.28 | 54.54 ▲2.06 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 50.82 ▲1.98 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 88.55 ▼4.17 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 41.56 ▲6.07 |
Help Center /wp-admin/admin.php?page=blue-triangle-free-csp-help-center | 3.48 | 36.65 |
Current Violations /wp-admin/admin.php?page=blue-triangle-free-csp-csp-violations | 3.49 | 46.42 |
General Settings /wp-admin/admin.php?page=blue-triangle-free-csp-general-settings | 3.49 | 35.70 |
Blue Triangle SeaSP /wp-admin/admin.php?page=blue-triangle-free-csp | 3.51 | 36.58 |
Directive Settings /wp-admin/admin.php?page=blue-triangle-free-csp-directive-settings | 4.12 | 45.06 |
Usage Data Settings /wp-admin/admin.php?page=blue-triangle-free-csp-usage-settings | 3.49 | 44.17 |
Server storage [IO: ▲3.69MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 55 new files
Database: 9 new tables, 7 new options
New tables |
---|
wp_seasp_violation_log |
wp_seasp_site_settings |
wp_seasp_directive_options |
wp_seasp_csp |
wp_seasp_directive_settings |
wp_seasp_directives |
wp_seasp_sand_box_urls |
wp_seasp_allowed_plugins |
wp_seasp_subdomain_log |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Blue_Triangle_Automated_CSP_Free_Directive_Options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for SeaSP Community Edition
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,029 ▲294 | 13.67 ▼0.70 | 6.43 ▲4.72 | 41.84 ▲1.54 |
Dashboard /wp-admin | 2,301 ▲116 | 5.81 ▲0.92 | 96.37 ▼14.07 | 39.80 ▼0.36 |
Posts /wp-admin/edit.php | 2,187 ▲101 | 2.05 ▲0.02 | 38.00 ▲3.05 | 32.44 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,604 ▲76 | 18.52 ▲0.35 | 590.27 ▼14.31 | 51.76 ▼0.51 |
Media Library /wp-admin/upload.php | 1,486 ▲98 | 4.23 ▲0.00 | 101.50 ▲2.94 | 46.45 ▲1.03 |
Help Center /wp-admin/admin.php?page=blue-triangle-free-csp-help-center | 1,609 | 9.58 | 275.95 | 97.20 |
Current Violations /wp-admin/admin.php?page=blue-triangle-free-csp-csp-violations | 1,183 | 2.30 | 27.45 | 65.53 |
General Settings /wp-admin/admin.php?page=blue-triangle-free-csp-general-settings | 1,220 | 2.13 | 34.24 | 44.37 |
Blue Triangle SeaSP /wp-admin/admin.php?page=blue-triangle-free-csp | 1,317 | 1.94 | 25.51 | 55.30 |
Directive Settings /wp-admin/admin.php?page=blue-triangle-free-csp-directive-settings | 7,865 | 2.71 | 473.28 | 96.76 |
Usage Data Settings /wp-admin/admin.php?page=blue-triangle-free-csp-usage-settings | 1,090 | 1.91 | 36.70 | 45.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sea-sp-community-edition/Bluetriangle-free-csp.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sea-sp-community-edition/src/views/directives-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/sea-sp-community-edition/src/views/help-view.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sea-sp-community-edition/src/views/violations-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/sea-sp-community-edition/src/views/dashboard-view.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sea-sp-community-edition/src/controllers/Ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sea-sp-community-edition/src/views/usage-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sea-sp-community-edition/src/views/general-view.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 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
4 plugin tags: content security policy, security, csp, http headers
sea-sp-community-edition/Bluetriangle-free-csp.php 92% from 13 tests
The main PHP file in "SeaSP Community Edition" ver. 1.8.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sea-sp-community-edition.php" instead of "Bluetriangle-free-csp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,871 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 193 | 98 | 2,364 |
Markdown | 3 | 66 | 0 | 193 |
JavaScript | 7 | 16 | 18 | 186 |
CSS | 3 | 31 | 13 | 126 |
SVG | 1 | 0 | 0 | 1 |
YAML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 2.23MB with 1.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/BT-Webinars.png | 43.95KB | 12.35KB | ▼ 71.89% |
img/blog-images/blog-03.png | 73.93KB | 22.05KB | ▼ 70.17% |
img/webinar/web-02.png | 56.07KB | 16.74KB | ▼ 70.14% |
assets/screenshot-2.png | 306.40KB | 71.97KB | ▼ 76.51% |
img/Parrot.png | 14.13KB | 4.01KB | ▼ 71.61% |