Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-business-hours/wp-business-hours.php+120
Methods with the same name as their class will not be constructors in a future version of PHP; BHS_Widget has a deprecated constructor
Server metrics [RAM: ▼1.96MB] [CPU: ▼60.75ms] Passed 4 tests
An overview of server-side resources used by Plugin Name: WP Business Hours
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.42 | 5.19 ▼38.05 |
Dashboard /wp-admin | 2.10 ▼1.29 | 5.67 ▼62.00 |
Posts /wp-admin/edit.php | 2.10 ▼1.30 | 6.35 ▼42.77 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.83 | 5.72 ▼100.19 |
Media Library /wp-admin/upload.php | 2.10 ▼1.17 | 5.55 ▼34.16 |
Business Hours /wp-admin/options-general.php?page=wp-business-hours | 2.10 | 5.96 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wp_business_hours_css |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_businessh-widget |
wp_business_hours |
Browser metrics Passed 4 tests
Plugin Name: WP Business Hours: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.16 ▼0.19 | 1.98 ▲0.30 | 44.66 ▲2.44 |
Dashboard /wp-admin | 2,202 ▲28 | 5.61 ▼0.07 | 90.57 ▼6.18 | 41.96 ▲1.80 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.05 | 38.75 ▲0.91 | 36.72 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,529 ▼9 | 23.09 ▲0.01 | 666.67 ▼13.16 | 53.30 ▼7.70 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▼0.02 | 101.12 ▲1.65 | 45.81 ▲3.81 |
Business Hours /wp-admin/options-general.php?page=wp-business-hours | 976 | 1.99 | 24.81 | 29.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-business-hours/wp-business-hours.php+120
Methods with the same name as their class will not be constructors in a future version of PHP; BHS_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 9 options in the database
- db_upgraded
- wp_business_hours_css
- widget_businessh-widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- wp_business_hours
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp-business-hours
- > Deprecated in wp-content/plugins/wp-business-hours/wp-business-hours.php+120
Methods with the same name as their class will not be constructors in a future version of PHP; BHS_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wp-business-hours
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in BHS_Widget is deprecated since version 4.3.0! Use __construct() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-business-hours/wp-business-hours.php:27
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Default Display)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Plugin Name: WP Business Hours ===
)
wp-business-hours/wp-business-hours.php Passed 13 tests
The entry point to "Plugin Name: WP Business Hours" version 1.4 is a PHP file that has certain tags in its header comment area
99 characters long description:
Plugin is to show Business hours, Admin can manage the business hours Weekly. widget and shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected131 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 10 | 131 |
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.13 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.98KB | 6.19KB | ▼ 69.01% |