Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼326.47ms] Passed 4 tests
This is a short check of server-side resources used by Store Opening Hours For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.72 ▼2.47 |
Dashboard /wp-admin | 3.42 ▲0.00 | 35.25 ▲2.47 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 50.51 ▼75.03 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.09 | 94.24 ▼1,225.84 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.62 ▼2.53 |
Essential Kit /wp-admin/admin.php?page=soh_kit | 3.10 | 18.26 |
Store Opening Hours Settings /wp-admin/admin.php?page=store-opening-hours-settings | 3.10 | 19.06 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Store Opening Hours For WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,036 ▲282 | 17.71 ▲2.06 | 6.26 ▲0.60 | 2.32 ▼0.51 |
Dashboard /wp-admin | 2,895 ▲37 | 6.18 ▼0.02 | 119.80 ▼16.16 | 161.36 ▲3.02 |
Posts /wp-admin/edit.php | 2,657 ▼28 | 3.23 ▼0.01 | 97.74 ▲32.35 | 142.67 ▼6.11 |
Add New Post /wp-admin/post-new.php | 1,668 ▼1 | 18.92 ▼2.14 | 398.69 ▼53.99 | 190.44 ▲24.39 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▼0.01 | 116.91 ▼30.41 | 195.05 ▲9.51 |
Essential Kit /wp-admin/admin.php?page=soh_kit | 28 | 0.94 | 0.03 | 16.80 |
Store Opening Hours Settings /wp-admin/admin.php?page=store-opening-hours-settings | 28 | 0.94 | 0.04 | 17.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=soh_kit
- > Network (severe)
wp-admin/admin.php?page=soh_kit - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=store-opening-hours-settings
- > Network (severe)
wp-admin/admin.php?page=store-opening-hours-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #0, #0, #0, #0, #0, #0 in store-opening-hours-for-woocommerce/assets to your readme.txt
- Contributors: The plugin contributors field is missing
store-opening-hours-for-woocommerce/store_opening_hours_main.php 77% from 13 tests
The entry point to "Store Opening Hours For WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: It is recommended to name the main PHP file as the plugin slug ("store-opening-hours-for-woocommerce.php" instead of "store_opening_hours_main.php")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin4,029 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 146 | 17 | 1,774 |
CSS | 3 | 43 | 49 | 1,558 |
JavaScript | 3 | 150 | 169 | 696 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 54.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 189.00 |
Average method complexity | 9.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 4 | 12.12% |
▷ Public methods | 33 | 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 | 6 | |
▷ Global constants | 6 | 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
5 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Close.png | 0.48KB | 0.61KB | 0.00% |
images/open.png | 4.38KB | 1.95KB | ▼ 55.49% |
images/support.png | 6.44KB | 5.59KB | ▼ 13.09% |
images/review.png | 15.87KB | 11.90KB | ▼ 25.01% |
images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |