10% lottoland-earnings-figures-widget

Code Review | Lottoland Earnings Figures Widget

WordPress plugin Lottoland Earnings Figures Widget scored10%from 54 tests.

About plugin

  • Plugin page: lottoland-earning...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0+
  • WordPress version: 6.3.1
  • First release: Apr 7, 2014
  • Latest release: Jun 23, 2014
  • Number of updates: 7
  • Update frequency: every 11.0 days
  • Top authors: Bueltge (85.71%)lottoland (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /728 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.18 ▼34.72
Dashboard /wp-admin2.05 ▼1.305.12 ▼59.86
Posts /wp-admin/edit.php2.05 ▼1.315.31 ▼41.09
Add New Post /wp-admin/post-new.php2.05 ▼3.845.31 ▼86.21
Media Library /wp-admin/upload.php2.05 ▼1.184.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.38 ▼0.241.47 ▼0.3135.05 ▼10.96
Dashboard /wp-admin2,195 ▲155.57 ▼0.0793.91 ▼6.0241.75 ▼0.80
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0141.27 ▲4.6734.19 ▼0.38
Add New Post /wp-admin/post-new.php1,527 ▼123.25 ▲0.21672.30 ▼6.6754.88 ▼3.06
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0191.91 ▼18.9942.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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP288153374
PO File1338088
CSS15716

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 code0.28
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity5.55
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/ll_logo_mm_45x45.png1.85KB1.81KB▼ 2.22%
images/ll_logo_pb_45x45.png1.85KB1.82KB▼ 1.53%
images/LL_68x25px.png19.01KB2.22KB▼ 88.30%
images/ll_logo_ej_45x45.png1.94KB1.91KB▼ 1.71%
images/ll_logo_649_45x45.png2.13KB2.11KB▼ 1.10%