Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.05ms] Passed 4 tests
A check of server-side resources used by Trusty Whistleblowing Solution
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.59 ▼6.56 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.57 ▼5.45 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.35 ▼0.44 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.62 ▼19.75 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.22 ▲2.55 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Trusty Whistleblowing Solution
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.28 ▼1.09 | 4.30 ▲2.29 | 44.43 ▲1.12 |
Dashboard /wp-admin | 2,234 ▲52 | 4.92 ▼0.94 | 112.09 ▲6.78 | 86.56 ▲43.85 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.01 ▼0.04 | 34.62 ▲0.06 | 30.20 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 23.27 ▲5.07 | 697.61 ▲38.03 | 63.44 ▲2.19 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.26 ▼0.11 | 107.46 ▲0.13 | 66.52 ▲19.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/trusty-whistleblowing-solution/templates/form.tpl.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: hinweisgebersystem, whistleblowing, whistleblowing solution, hinweisgeberlsung, whistleblower
trusty-whistleblowing-solution/tr-free-whistleblowing-solution.php 69% from 13 tests
The entry point to "Trusty Whistleblowing Solution" version 1.4.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: Please don't use more than 140 characters for the plugin description (currently 331 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("trusty-whistleblowing-solution.php" instead of "tr-free-whistleblowing-solution.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,206 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 151 | 353 | 722 |
CSS | 1 | 10 | 6 | 270 |
JavaScript | 1 | 37 | 27 | 214 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 3 | 12.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/WBS.png | 40.36KB | 12.89KB | ▼ 68.06% |