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.21MB] [CPU: ▼5.08ms] Passed 4 tests
This is a short check of server-side resources used by Open Hours - Easy Opening Hours
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 45.95 ▼1.54 |
Dashboard /wp-admin | 3.51 ▲0.21 | 50.25 ▼2.21 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 52.43 ▲0.31 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 87.34 ▼11.79 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 40.66 ▼4.77 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_open_overview_widget |
widget_theysaidso_widget |
widget_open_current_status_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Open Hours - Easy Opening Hours
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.68 ▲0.33 | 1.67 ▼0.01 | 45.69 ▼0.08 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▼0.06 | 90.07 ▼7.64 | 38.17 ▼7.16 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.04 | 34.86 ▼3.06 | 37.44 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.60 ▲0.49 | 618.26 ▼74.64 | 46.64 ▼16.41 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.02 | 109.61 ▼1.35 | 46.01 ▼1.55 |
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
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_open_current_status_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_open_overview_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/open-hours/open-hours.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/open-hours/includes/Widget/abstract-widget.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/open-hours/includes/Widget/abstract-widget.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/open-hours/includes/Control/class-Pix_Open_Customize_Control.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/open-hours/includes/Control/class-Pix_Open_Customize_Control.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/open-hours/includes/Widget/abstract-widget.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/open-hours/includes/Control/class-Pix_Open_Customize_Control.php:8
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
open-hours/open-hours.php Passed 13 tests
The entry point to "Open Hours - Easy Opening Hours" version 1.0.9 is a PHP file that has certain tags in its header comment area
76 characters long description:
An easy to use opening hours WordPress plugin manager for any kind of venue.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,779 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 295 | 385 | 1,097 |
JavaScript | 5 | 71 | 91 | 392 |
Sass | 2 | 43 | 0 | 150 |
CSS | 2 | 17 | 9 | 140 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 18.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 2 | 3.33% |
▷ Public methods | 53 | 88.33% |
▷ Protected methods | 7 | 11.67% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/opening_hours_scheme.png | 40.97KB | 13.46KB | ▼ 67.16% |