Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/wetterwarner/wetterwarner-functions.php+48
syntax error, unexpected 'throw' (T_THROW)
Server metrics [RAM: ▲0.00MB] [CPU: ▼12.16ms] Passed 4 tests
This is a short check of server-side resources used by Wetterwarner
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.18 ▼1.25 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.12 ▼6.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.04 ▼6.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.85 ▼32.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.54 ▼3.08 |
Server storage [IO: ▲2.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Wetterwarner
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.03 ▼0.59 | 1.72 ▼0.08 | 37.03 ▼1.76 |
Dashboard /wp-admin | 2,195 ▲14 | 5.61 ▼0.02 | 83.11 ▼13.80 | 37.90 ▼5.39 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.01 | 34.19 ▼1.61 | 35.07 ▲1.55 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.98 ▲0.07 | 632.45 ▼52.64 | 53.55 ▼0.19 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.01 | 96.63 ▼5.04 | 46.14 ▲1.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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
Even though no errors were found, this is by no means 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
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wetterwarner/wetterwarner.php
- > /wp-content/plugins/wetterwarner/resources/file-cache/file-cache.php
- > /wp-content/plugins/wetterwarner/wetterwarner-settings.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected 'throw' (T_THROW) in wp-content/plugins/wetterwarner/wetterwarner-functions.php on line 48
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Widget im Front-End Bereich), #2 (Widget Konfiguration im Back-End), #3 (Weitere Einstellungen)
wetterwarner/wetterwarner.php Passed 13 tests
The principal PHP file in "Wetterwarner" v. 2.6 is loaded by WordPress automatically on each request
49 characters long description:
Zeigt amtliche Wetterwarnungen in einem Widget an
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin14,745 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 3 | 89 | 9,256 |
Sass | 13 | 28 | 24 | 1,560 |
LESS | 13 | 28 | 34 | 1,550 |
SVG | 2 | 0 | 0 | 912 |
PHP | 4 | 82 | 64 | 725 |
JavaScript | 3 | 77 | 276 | 421 |
Markdown | 3 | 83 | 0 | 321 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 39.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 7.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 50.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There were not PNG files found in your plugin