Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.96ms] Passed 4 tests
A check of server-side resources used by Business Open Hours Master
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.69 ▼3.07 |
Dashboard /wp-admin | 3.38 ▲0.07 | 50.37 ▲0.50 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 46.80 ▲3.84 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 86.55 ▼21.19 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.15 ▼0.06 |
Business Hours /wp-admin/admin.php?page=bohm_admin_menu | 3.29 | 32.22 |
Settings /wp-admin/admin.php?page=bohm_settings_menu | 3.26 | 31.12 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
bohm_regular_hours |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Business Open Hours Master
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲184 | 13.62 ▼0.76 | 5.33 ▲3.51 | 42.29 ▼11.02 |
Dashboard /wp-admin | 2,227 ▲39 | 5.93 ▲1.02 | 104.56 ▼14.17 | 86.08 ▲38.05 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 2.27 ▲0.25 | 32.57 ▼8.01 | 30.75 ▼7.07 |
Add New Post /wp-admin/post-new.php | 6,699 ▲5,166 | 23.88 ▲0.55 | 967.03 ▲328.77 | 37.98 ▼11.66 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.23 ▼0.03 | 102.17 ▼17.52 | 67.58 ▲16.59 |
Business Hours /wp-admin/admin.php?page=bohm_admin_menu | 864 | 1.95 | 29.78 | 25.72 |
Settings /wp-admin/admin.php?page=bohm_settings_menu | 832 | 1.94 | 25.52 | 27.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-includes/option.php+2520
Undefined index: ch_admin_menu
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=bohm_admin_menu
- > Notice in wp-content/plugins/business-open-hours-master/admin/partials/menu-page-bohm-regular-hours.php+15
Undefined index: action
- > GET request to /wp-admin/admin.php?page=bohm_settings_menu
- > Notice in wp-content/plugins/business-open-hours-master/admin/class-business-open-hours-master-admin.php+179
Undefined variable: options
- > GET request to /wp-admin/admin.php?page=bohm_settings_menu
- > Notice in wp-content/plugins/business-open-hours-master/admin/class-business-open-hours-master-admin.php+179
Trying to access array offset on value of type null
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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/business-open-hours-master/admin/partials/menu-page-bohm-settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/business-open-hours-master/public/partials/display-bohm-public.php:17
- > PHP Notice
Undefined index: action in wp-content/plugins/business-open-hours-master/admin/partials/menu-page-bohm-regular-hours.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/business-open-hours-master/admin/partials/menu-page-bohm-regular-hours.php:32
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (open-hours.jpg shows how the plugin displays in the WordPress admin area.), #2 (open-hours-2.jpg shows how the plugin displays on the front end of a website with default css.)
business-open-hours-master/business-open-hours-master.php Passed 13 tests
The principal PHP file in "Business Open Hours Master" v. 1.0.0 is loaded by WordPress automatically on each request
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,873 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 196 | 222 | 1,205 |
PHP | 13 | 127 | 566 | 486 |
CSS | 3 | 21 | 24 | 182 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 1.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 27 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.18% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/admin-icon-big.png | 4.18KB | 1.71KB | ▼ 59.12% |
admin/assets/admin-icon.png | 3.47KB | 1.25KB | ▼ 63.93% |
admin/assets/grabber.png | 1.28KB | 0.48KB | ▼ 62.62% |