Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.97ms] Passed 4 tests
This is a short check of server-side resources used by Open Close WooCommerce Store - Best Business Schedules Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.17 ▼4.11 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.28 ▼3.60 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 49.44 ▲3.80 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 83.68 ▼2.19 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.56 ▲2.04 |
Server storage [IO: ▲3.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 157 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Open Close WooCommerce Store - Best Business Schedules Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.27 ▼0.09 | 1.83 ▲0.05 | 44.57 ▼3.92 |
Dashboard /wp-admin | 2,198 ▲20 | 5.61 ▼0.05 | 94.00 ▼5.02 | 42.24 ▲4.39 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.97 ▲0.03 | 39.72 ▼1.64 | 35.04 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.81 ▼0.23 | 668.19 ▲78.84 | 57.46 ▲4.90 |
Media Library /wp-admin/upload.php | 1,391 ▼12 | 4.16 ▼0.11 | 95.91 ▼3.17 | 45.04 ▲1.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WPDK\\Utils' not found in wp-content/plugins/woc-open-close/templates/admin/single-schedule.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPDK_Settings_Abstract' not found in wp-content/plugins/woc-open-close/includes/wpdk/settings/classes/admin-options.class.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woc-open-close/includes/classes/class-hooks.php:21
- > PHP Fatal error
Uncaught Error: Class 'WPDK_Settings_Abstract' not found in wp-content/plugins/woc-open-close/includes/wpdk/settings/classes/fields.class.php:11
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were detected
woc-open-close/woc-open-close.php Passed 13 tests
"Open Close WooCommerce Store - Best Business Schedules Manager" version 4.8.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
116 characters long description:
Open Close WooCommerce store automatically with predefined schedules. Stop getting orders when your store is closed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected28,120 lines of code in 131 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 1,960 | 731 | 10,242 |
PHP | 98 | 3,297 | 1,769 | 9,867 |
JavaScript | 11 | 1,596 | 577 | 7,800 |
PO File | 1 | 79 | 80 | 191 |
Markdown | 1 | 8 | 0 | 13 |
SVG | 7 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 25.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 6.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 2 | 2.82% |
▷ Concrete classes | 69 | 97.18% |
▷ Final classes | 0 | 0.00% |
Methods | 342 | |
▷ Static methods | 46 | 13.45% |
▷ Public methods | 341 | 99.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.29% |
Functions | 43 | |
▷ Named functions | 39 | 90.70% |
▷ Anonymous functions | 4 | 9.30% |
Constants | 8 | |
▷ Global constants | 8 | 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
17 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.13KB | 0.11KB | ▼ 11.72% |
assets/images/ui-bg_glass_65_ffffff_1x400.png | 0.14KB | 0.08KB | ▼ 40.41% |
assets/images/ui-icons_1222222_256x240.png | 3.19KB | 3.49KB | 0.00% |
assets/images/support-open.png | 4.97KB | 1.35KB | ▼ 72.89% |
assets/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.23KB | 0.11KB | ▼ 51.05% |