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
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/lottoland-earnings-figures-widget/php/widget.php+12
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼55.47ms] Passed 4 tests
This is a short check of server-side resources used by Lottoland Earnings Figures Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.18 ▼34.72 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.12 ▼59.86 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.31 ▼41.09 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.31 ▼86.21 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.64 ▼31.59 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_gewinnzahlen_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Lottoland Earnings Figures Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.38 ▼0.24 | 1.47 ▼0.31 | 35.05 ▼10.96 |
Dashboard /wp-admin | 2,195 ▲15 | 5.57 ▼0.07 | 93.91 ▼6.02 | 41.75 ▼0.80 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▲0.01 | 41.27 ▲4.67 | 34.19 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,527 ▼1 | 23.25 ▲0.21 | 672.30 ▼6.67 | 54.88 ▼3.06 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.01 | 91.91 ▼18.99 | 42.30 ▼4.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/lottoland-earnings-figures-widget/php/widget.php+12
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_gewinnzahlen_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tested up to: Version not formatted correctly
lottoland-earnings-figures-widget/gewinnzahlen.php 85% from 13 tests
This is the main PHP file of "Lottoland Earnings Figures Widget" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("lottoland-earnings-figures-widget.php" instead of "gewinnzahlen.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin478 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 88 | 153 | 374 |
PO File | 1 | 33 | 80 | 88 |
CSS | 1 | 5 | 7 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 5.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ll_logo_mm_45x45.png | 1.85KB | 1.81KB | ▼ 2.22% |
images/ll_logo_pb_45x45.png | 1.85KB | 1.82KB | ▼ 1.53% |
images/LL_68x25px.png | 19.01KB | 2.22KB | ▼ 88.30% |
images/ll_logo_ej_45x45.png | 1.94KB | 1.91KB | ▼ 1.71% |
images/ll_logo_649_45x45.png | 2.13KB | 2.11KB | ▼ 1.10% |