Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/opening-times-uk/oeffnungszeiten.php+77
Methods with the same name as their class will not be constructors in a future version of PHP; OeffnungszeitenScriptWidget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼187.25ms] Passed 4 tests
Analyzing server-side resources used by Opening Times UK
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼0.92 | 4.91 ▼20.38 |
Dashboard /wp-admin | 1.82 ▼1.24 | 6.31 ▼48.50 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 11.37 ▼35.20 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.62 | 6.12 ▼640.71 |
Media Library /wp-admin/upload.php | 1.82 ▼1.19 | 6.29 ▼24.57 |
WP Offnungszeiten Script /wp-admin/options-general.php?page=wp_offnungszeiten_script | 1.82 | 6.34 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_oeffnungszeiten_script |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Opening Times UK
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,714 ▲118 | 15.93 ▲0.36 | 8.84 ▼2.71 | 52.85 ▲3.78 |
Dashboard /wp-admin | 2,977 ▲46 | 5.90 ▼0.08 | 140.38 ▼2.27 | 114.12 ▲3.74 |
Posts /wp-admin/edit.php | 2,750 ▲11 | 2.69 ▼0.00 | 67.67 ▼5.80 | 88.20 ▼8.18 |
Add New Post /wp-admin/post-new.php | 1,548 ▼124 | 18.45 ▼0.31 | 343.93 ▼21.61 | 101.51 ▼7.98 |
Media Library /wp-admin/upload.php | 1,821 ▲11 | 5.04 ▲0.04 | 145.43 ▼30.17 | 122.79 ▲3.31 |
WP Offnungszeiten Script /wp-admin/options-general.php?page=wp_offnungszeiten_script | 902 | 1.85 | 35.71 | 55.47 |
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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/opening-times-uk/oeffnungszeiten.php+77
Methods with the same name as their class will not be constructors in a future version of PHP; OeffnungszeitenScriptWidget has a deprecated constructor
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_oeffnungszeiten_script
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp_offnungszeiten_script
- > Deprecated in wp-content/plugins/opening-times-uk/oeffnungszeiten.php+77
Methods with the same name as their class will not be constructors in a future version of PHP; OeffnungszeitenScriptWidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wp_offnungszeiten_script
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in OeffnungszeitenScriptWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=wp_offnungszeiten_script
- > Error in wp-admin/includes/template.php+1720
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/opening-times-uk/templates/settings.php on line 8 and exactly 2 expected in wp-admin/includes/template.php:1720
Stack trace:
#0 wp-content/plugins/opening-times-uk/templates/settings.php(8): do_settings_fields()
#1 wp-content/plugins/opening-times-uk/oeffnungszeiten.php(52): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(303): WP_Offnungszeiten_Script->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(470): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
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
Almost there! Just fix the following items
- 2× 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/opening-times-uk/oeffnungszeiten.php:77
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/opening-times-uk/templates/settings.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=wp_offnungszeiten_script
- > Network (severe)
wp-content/plugins/oeffnungszeiten/templates/css/style.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp_offnungszeiten_script
- > Network (severe)
wp-content/plugins/oeffnungszeiten/templates/css/colorpicker.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_offnungszeiten_script
- > Network (severe)
wp-content/plugins/oeffnungszeiten/templates/js/widgetColorpicker.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Tags: You are using too many tags: 20 tag instead of maximum 10
- Donate link: Invalid url: ""
opening-times-uk/oeffnungszeiten.php 92% from 13 tests
The main file in "Opening Times UK" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("opening-times-uk.php" instead of "oeffnungszeiten.php")
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
Everything looks great! No dangerous files found in this plugin1,587 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 4 | 21 | 813 |
CSS | 3 | 17 | 0 | 513 |
PHP | 2 | 45 | 12 | 261 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 10 | |
▷ Static methods | 3 | 30.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
22 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 |
templates/images/colorpicker_rgb_g.png | 1.04KB | 0.83KB | ▼ 20.21% |
templates/images/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |
templates/images/custom_rgb_g.png | 1.04KB | 0.80KB | ▼ 23.67% |
templates/images/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
templates/images/custom_rgb_r.png | 0.99KB | 0.74KB | ▼ 25.34% |