Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.94ms] Passed 4 tests
This is a short check of server-side resources used by Stylish Business Hours
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.02 ▲2.56 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.89 ▼8.28 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.41 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 98.39 ▲4.37 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.30 ▲0.64 |
All Lists /wp-admin/admin.php?page=business_hour_listing | 3.29 | 33.55 |
Add New List /wp-admin/admin.php?page=business_hour_page_new | 3.90 | 72.06 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Stylish Business Hours
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲63 | 13.73 ▼0.81 | 1.68 ▼0.70 | 41.50 ▼3.40 |
Dashboard /wp-admin | 2,233 ▲45 | 4.92 ▼0.98 | 104.45 ▼11.25 | 69.84 ▲24.59 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.00 ▼0.04 | 38.41 ▲1.00 | 36.69 ▲3.68 |
Add New Post /wp-admin/post-new.php | 1,693 ▲160 | 22.41 ▼1.06 | 705.15 ▲36.83 | 51.29 ▼12.14 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.11 ▼0.13 | 99.47 ▼5.98 | 63.21 ▲18.82 |
All Lists /wp-admin/admin.php?page=business_hour_listing | 931 | 1.89 | 29.63 | 81.77 |
Add New List /wp-admin/admin.php?page=business_hour_page_new | 3,890 | 2.14 | 38.78 | 65.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: datas in wp-content/plugins/stylish-business-hours/admin/view/businessHourView.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylish-business-hours/shortcode/businesshourFront.php:7
- > PHP Notice
Undefined variable: datas in wp-content/plugins/stylish-business-hours/admin/view/businessHourView.php on line 24
- > PHP Notice
Undefined variable: datas in wp-content/plugins/stylish-business-hours/admin/view/businessHourView.php on line 24
- > PHP Notice
Trying to get property 'days' of non-object in wp-content/plugins/stylish-business-hours/admin/view/businessHourView.php on line 12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/stylish-business-hours/admin/view/businessHourView.php:37
- > PHP Notice
Undefined variable: datas in wp-content/plugins/stylish-business-hours/admin/view/businessHourView.php on line 17
- > PHP Notice
Undefined variable: datas in wp-content/plugins/stylish-business-hours/admin/view/businessHourView.php on line 24
- > PHP Notice
Trying to get property 'style' of non-object in wp-content/plugins/stylish-business-hours/admin/view/businessHourView.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylish-business-hours/admin/businesshour_ajax.php:7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in stylish-business-hours/assets to your readme.txt
stylish-business-hours/businessHours.php 92% from 13 tests
The entry point to "Stylish Business Hours" version 1.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stylish-business-hours.php" instead of "businessHours.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,152 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 147 | 80 | 1,620 |
CSS | 5 | 222 | 34 | 1,138 |
JavaScript | 4 | 39 | 37 | 307 |
HTML | 1 | 2 | 0 | 58 |
Markdown | 1 | 16 | 0 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 14.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.85% |
Functions | 8 | |
▷ Named functions | 1 | 12.50% |
▷ Anonymous functions | 7 | 87.50% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 0.68MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sbh_icon2.png | 3.49KB | 1.10KB | ▼ 68.46% |
assets/images/Stylish-Business-Hours-Logo1.png | 3.22KB | 2.62KB | ▼ 18.72% |
assets/images/admin_icon.png | 5.54KB | 1.80KB | ▼ 67.59% |
assets/images/img_data.png | 14.37KB | 7.01KB | ▼ 51.22% |
assets/images/Stylish-Business-Hours-Logo.png | 3.22KB | 2.62KB | ▼ 18.72% |