Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.51MB] [CPU: ▼46.83ms] Passed 4 tests
Server-side resources used by Offen
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.48 ▼0.99 | 11.25 ▼31.32 |
Dashboard /wp-admin | 2.51 ▼0.80 | 15.23 ▼38.46 |
Posts /wp-admin/edit.php | 2.51 ▼0.85 | 13.76 ▼34.52 |
Add New Post /wp-admin/post-new.php | 2.51 ▼3.39 | 13.82 ▼83.03 |
Media Library /wp-admin/upload.php | 2.51 ▼0.73 | 15.16 ▼20.35 |
Server storage [IO: ▲4.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 91 new files
Database: no new tables, 28 new options
New WordPress options |
---|
widget_theysaidso_widget |
general_closed_all_day_text |
can_compress_scripts |
styling_colors_text_badge_closed |
general_business_hours |
styling_colors_background_primary |
general_open_hours_message |
styling_colors_background_badge_closed |
styling_colors_background_badge_open |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Offen
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲243 | 13.75 ▼0.90 | 1.71 ▼0.08 | 43.12 ▲0.09 |
Dashboard /wp-admin | 2,410 ▲236 | 5.56 ▼0.04 | 104.06 ▲3.61 | 42.70 ▼4.47 |
Posts /wp-admin/edit.php | 2,315 ▲212 | 2.46 ▲0.45 | 48.90 ▲13.14 | 37.45 ▲0.67 |
Add New Post /wp-admin/post-new.php | 1,581 ▲50 | 17.98 ▼5.38 | 684.71 ▲89.76 | 37.76 ▼20.34 |
Media Library /wp-admin/upload.php | 1,615 ▲221 | 5.00 ▲0.73 | 110.75 ▲9.73 | 43.25 ▼0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in business_hours_widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- bh_uninstalled
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_business_hours_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #7, #8, #9 in offen/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 35 tag instead of maximum 10
offen/offen.php Passed 13 tests
The main PHP file in "Offen" ver. 3.9 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Display the company details and the opening hours at your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin28,581 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 151 | 270 | 11,408 |
JavaScript | 8 | 2,180 | 2,204 | 8,958 |
SVG | 3 | 0 | 1 | 2,733 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 14 | 335 | 121 | 1,528 |
PO File | 2 | 174 | 189 | 428 |
PHP code Passed 2 tests
This is a very shot 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.40 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 6.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
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 |
templates/assets/vendor/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
templates/assets/vendor/jquery-ui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
templates/assets/vendor/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
templates/assets/vendor/jquery-ui/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
templates/assets/vendor/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |