Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/stargutschein-gutschein-widget/stargutschein.widget.php+49
Methods with the same name as their class will not be constructors in a future version of PHP; StargutscheinWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.21ms] Passed 4 tests
This is a short check of server-side resources used by StarGutschein Gutschein Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.52 ▼36.71 |
Dashboard /wp-admin | 2.10 ▼1.20 | 7.24 ▼40.13 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.96 ▼43.94 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.41 ▼92.06 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.90 ▼26.84 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_stargutschein-gutscheine |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for StarGutschein Gutschein Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.57 ▼1.02 | 1.69 ▼0.21 | 42.59 ▼4.69 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲0.03 | 100.49 ▼4.04 | 35.76 ▼6.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 35.96 ▼4.12 | 34.68 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,520 ▼17 | 23.29 ▼0.01 | 667.24 ▲0.78 | 70.67 ▼1.07 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.16 ▼0.01 | 101.21 ▼10.98 | 45.79 ▼2.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/stargutschein-gutschein-widget/stargutschein.widget.php+49
Methods with the same name as their class will not be constructors in a future version of PHP; StargutscheinWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_stargutschein-gutscheine
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stargutschein-gutschein-widget/stargutschein.widget.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Screenshot #1 (Die Optionen des Widgets) image not found
stargutschein-gutschein-widget/stargutschein.widget.php 92% from 13 tests
"StarGutschein Gutschein Widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("stargutschein-gutschein-widget.php" instead of "stargutschein.widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin91 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 58 | 91 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot_2.png | 23.74KB | 7.27KB | ▼ 69.35% |
screenshot_1.png | 22.00KB | 7.97KB | ▼ 63.77% |