Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.40ms] Passed 4 tests
An overview of server-side resources used by Store Hours for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 29.74 ▼10.42 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.58 ▼0.57 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.86 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.29 ▼3.74 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 34.73 ▼2.85 |
Server storage [IO: ▲10.72MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Store Hours for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,479 ▼267 | 13.62 ▼0.74 | 0.53 ▼1.20 | 18.84 ▼25.21 |
Dashboard /wp-admin | 2,220 ▲35 | 4.89 ▼0.17 | 111.46 ▲3.77 | 41.87 ▲3.12 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.05 ▲0.01 | 34.33 ▼2.14 | 35.42 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 17.72 ▼5.49 | 664.01 ▼10.94 | 64.86 ▲12.35 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.32 ▲0.14 | 96.46 ▼0.13 | 44.16 ▲1.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 51 tag instead of maximum 10
order-hours-scheduler-for-woocommerce/index.php 77% from 13 tests
"Store Hours for WooCommerce" version 4.3.17's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0" instead of "2.4.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("order-hours-scheduler-for-woocommerce.php" instead of "index.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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 plugin49,980 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 13 | 32,152 |
CSS | 4 | 4,170 | 53 | 13,755 |
PHP | 36 | 542 | 60 | 3,634 |
JavaScript | 4 | 54 | 49 | 439 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 3 | 9.09% |
▷ Concrete classes | 30 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 38 | 19.69% |
▷ Public methods | 169 | 87.56% |
▷ Protected methods | 16 | 8.29% |
▷ Private methods | 8 | 4.15% |
Functions | 84 | |
▷ Named functions | 22 | 26.19% |
▷ Anonymous functions | 62 | 73.81% |
Constants | 32 | |
▷ Global constants | 3 | 9.38% |
▷ Class constants | 29 | 90.62% |
▷ Public constants | 29 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.57MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 93.64KB | 244.55KB | 0.00% |
assets/chevron-sign-to-right.png | 9.78KB | 6.46KB | ▼ 33.95% |
assets/screenshot-1.png | 73.78KB | 21.08KB | ▼ 71.43% |
assets/bizswoop.png | 12.40KB | 6.43KB | ▼ 48.13% |
assets/banner-1544x500.png | 65.98KB | 18.43KB | ▼ 72.06% |