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.00MB] [CPU: ▼4.48ms] Passed 4 tests
Server-side resources used by Gravity Forms Business Hours by GravityView
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.91 ▼7.14 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.01 ▼1.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.05 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.62 ▼8.07 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.44 ▲2.60 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Gravity Forms Business Hours by GravityView
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▼0.25 | 1.87 ▲0.06 | 43.84 ▲0.37 |
Dashboard /wp-admin | 2,195 ▲25 | 5.64 ▼0.04 | 92.83 ▼7.40 | 42.78 ▲4.97 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▼0.03 | 34.30 ▼4.91 | 39.04 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 17.58 ▲0.04 | 677.11 ▲59.59 | 52.44 ▲3.95 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▲0.02 | 110.65 ▲0.98 | 48.17 ▲0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'GFAddOn' not found in wp-content/plugins/gravity-forms-business-hours/class-gf-business-hours.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-business-hours/gravity-forms-business-hours.php:30
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Business Hours in the Gravity Forms View Entry screen), #2 (The Business Hours field), #3 (The Business Hours button in the Form Editor)
gravity-forms-business-hours/gravity-forms-business-hours.php 92% from 13 tests
The main PHP script in "Gravity Forms Business Hours by GravityView" version 2.1.3 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 176 characters long)
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 plugin720 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 174 | 269 | 377 |
JavaScript | 3 | 71 | 78 | 160 |
Markdown | 1 | 33 | 0 | 65 |
LESS | 2 | 15 | 3 | 62 |
PO File | 1 | 8 | 9 | 37 |
JSON | 1 | 0 | 0 | 17 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 20.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 61.35KB | 17.72KB | ▼ 71.12% |
screenshot-2.png | 68.81KB | 20.10KB | ▼ 70.79% |
screenshot-3.png | 55.32KB | 16.13KB | ▼ 70.85% |