Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/live-widget-luftdaten/live-widget-luftdaten.php+459
Methods with the same name as their class will not be constructors in a future version of PHP; Sensor has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼53.24ms] Passed 4 tests
This is a short check of server-side resources used by Luftdaten Live Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 4.75 ▼35.29 |
Dashboard /wp-admin | 2.24 ▼1.06 | 6.01 ▼44.31 |
Posts /wp-admin/edit.php | 2.24 ▼1.11 | 6.00 ▼44.36 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.64 | 6.38 ▼89.01 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 5.43 ▼31.52 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_luftdatenampel |
widget_recent-posts |
theysaidso_admin_options |
widget_luftdatenwidget |
Browser metrics Passed 4 tests
Checking browser requirements for Luftdaten Live Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.17 ▼1.13 | 1.71 ▼0.23 | 39.77 ▼8.48 |
Dashboard /wp-admin | 2,206 ▲17 | 4.88 ▼0.10 | 107.72 ▼2.03 | 41.08 ▼1.65 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.05 | 40.00 ▼2.14 | 37.63 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 23.09 ▲5.42 | 622.85 ▲5.73 | 60.19 ▲11.62 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▼0.02 | 98.80 ▼0.82 | 41.31 ▼2.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/live-widget-luftdaten/live-widget-luftdaten.php+459
Methods with the same name as their class will not be constructors in a future version of PHP; Sensor has a deprecated constructor
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_luftdatenwidget
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_luftdatenampel
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/live-widget-luftdaten/live-widget-luftdaten.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
4 plugin tags: widget, environmental data, live, sensor
live-widget-luftdaten/live-widget-luftdaten.php 85% from 13 tests
The main PHP file in "Luftdaten Live Widget" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin439 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 186 | 50 | 439 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 23.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin