Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.85ms] Passed 4 tests
Analyzing server-side resources used by Store Opening Closing Hours Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.73 ▼0.64 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.48 ▼14.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.58 ▲1.56 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.16 ▼1.87 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.29 ▲1.56 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Store Opening Closing Hours Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲54 | 14.32 ▼0.03 | 1.73 ▼0.11 | 44.56 ▼0.05 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.08 | 82.04 ▼16.99 | 41.68 ▼1.18 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.01 | 36.79 ▲0.60 | 34.29 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 23.11 ▲0.04 | 648.99 ▼42.19 | 47.90 ▼14.61 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▼0.03 | 98.70 ▼2.82 | 44.21 ▲1.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/store-opening-closing-hours-manager/includes/shortcode.php
- > /wp-content/plugins/store-opening-closing-hours-manager/includes/admin_settings.php
- > /wp-content/plugins/store-opening-closing-hours-manager/includes/public.php
- > /wp-content/plugins/store-opening-closing-hours-manager/includes/util.php
- > /wp-content/plugins/store-opening-closing-hours-manager/includes/widget.php
- > /wp-content/plugins/store-opening-closing-hours-manager/includes/admin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
5 plugin tags: store-closing-opening, shop-manager, store-manager, shop-closing-opening, woocommerce
store-opening-closing-hours-manager/store-opening-closing-hours-manager.php Passed 13 tests
The main file in "Store Opening Closing Hours Manager" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
Setup your Woocomerce store opening and closing hours to manage your business at ease!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,722 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 430 | 280 | 1,820 |
JavaScript | 5 | 139 | 359 | 504 |
CSS | 4 | 62 | 19 | 398 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 29.71 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 15 | 27.27% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 6 | 54.55% |
▷ Anonymous functions | 5 | 45.45% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin