Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.62MB] [CPU: ▼13.94ms] Passed 4 tests
A check of server-side resources used by Better Business Hours
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.75 ▲1.42 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.24 ▼2.14 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.87 ▼4.71 |
Add New Post /wp-admin/post-new.php | 3.31 ▼2.58 | 37.01 ▼47.80 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.34 ▼1.11 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_better-business-hours-widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Better Business Hours: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲178 | 14.96 ▲0.29 | 16.43 ▲14.48 | 40.72 ▼5.10 |
Dashboard /wp-admin | 2,219 ▲34 | 5.76 ▲0.92 | 92.18 ▼10.35 | 40.25 ▼4.93 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.04 ▼0.00 | 39.78 ▲2.64 | 35.75 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,527 ▼9 | 17.78 ▼5.50 | 647.96 ▲49.74 | 67.80 ▲18.30 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.19 ▼0.14 | 95.29 ▼6.18 | 39.91 ▼3.70 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_better-business-hours-widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/better-business-hours/includes/class-widget.php:14
- > PHP Fatal error
Uncaught Error: Class 'BBH_Settings' not found in wp-content/plugins/better-business-hours/includes/template-display-hours.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/better-business-hours/includes/class-api-availability.php:14
- > PHP Fatal error
Uncaught Error: Class 'Better_Business_Hours' not found in wp-content/plugins/better-business-hours/includes/admin-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-business-hours/better-business-hours.php:386
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/better-business-hours/includes/class-api-settings.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
2 plugin tags: business hours widget, business hours
better-business-hours/better-business-hours.php Passed 13 tests
This is the main PHP file of "Better Business Hours" version 1.0.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Easily set and display your business hours
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
There were no executable files found in this plugin14,595 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,243 | 865 | 13,378 |
PHP | 10 | 191 | 656 | 891 |
Sass | 2 | 11 | 0 | 159 |
CSS | 2 | 4 | 37 | 154 |
Ruby | 1 | 7 | 5 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 86 | |
▷ Static methods | 7 | 8.14% |
▷ Public methods | 81 | 94.19% |
▷ Protected methods | 3 | 3.49% |
▷ Private methods | 2 | 2.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pencil.png | 1.07KB | 0.25KB | ▼ 76.74% |
assets/images/eraser.png | 1.07KB | 0.25KB | ▼ 77.00% |