Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/store-hours/storehours.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.91MB] [CPU: ▼57.39ms] Passed 4 tests
A check of server-side resources used by Storehours
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 6.36 ▼34.15 |
Dashboard /wp-admin | 2.11 ▼1.24 | 4.86 ▼54.60 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.75 ▼44.68 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.38 ▼96.13 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.50 ▼30.25 |
WP Offnungszeiten Script /wp-admin/options-general.php?page=wp_offnungszeiten_script | 2.11 | 5.39 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_oeffnungszeiten_script |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Storehours
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.33 ▼1.06 | 1.94 ▲0.29 | 41.02 ▼10.77 |
Dashboard /wp-admin | 2,219 ▲28 | 5.90 ▲1.02 | 113.35 ▲7.75 | 43.31 ▼1.83 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.05 ▲0.01 | 40.68 ▲0.03 | 35.08 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 18.34 ▲0.60 | 591.22 ▼102.13 | 53.56 ▼1.55 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.15 ▼0.03 | 101.13 ▼1.62 | 43.42 ▼0.78 |
WP Offnungszeiten Script /wp-admin/options-general.php?page=wp_offnungszeiten_script | 699 | 1.53 | 7.53 | 24.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/store-hours/storehours.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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_oeffnungszeiten_script
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wp_offnungszeiten_script
- > Deprecated in wp-content/plugins/store-hours/storehours.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+5546
The called constructor method for WP_Widget class 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+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/store-hours/templates/settings.php on line 8 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/store-hours/templates/settings.php(8): do_settings_fields()
#1 wp-content/plugins/store-hours/storehours.php(52): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): WP_Offnungszeiten_Script->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/store-hours/storehours.php:77
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/store-hours/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 fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=wp_offnungszeiten_script
- > Network (severe)
wp-content/plugins/oeffnungszeiten/templates/css/colorpicker.css?ver=6.3.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/style.css?ver=6.3.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/js/widgetColorpicker.js?ver=6.3.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
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:
- Donate link: Invalid URI found ("thanx - not necessary")
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
store-hours/storehours.php 92% from 13 tests
The entry point to "Storehours" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("store-hours.php" instead of "storehours.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,370 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 4 | 21 | 813 |
CSS | 2 | 16 | 0 | 296 |
PHP | 2 | 45 | 12 | 261 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in 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
PNG files should be compressed to save space and minimize bandwidth usage
21 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_background.png | 1.85KB | 2.14KB | 0.00% |
templates/images/select.png | 0.49KB | 0.33KB | ▼ 33.40% |
templates/images/custom_hsb_h.png | 0.95KB | 0.73KB | ▼ 23.40% |
templates/images/colorpicker_rgb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
templates/images/custom_hex.png | 0.55KB | 0.39KB | ▼ 28.11% |