Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.38MB] [CPU: ▲0.15ms] Passed 4 tests
Analyzing server-side resources used by WP Gravity Forms HubSpot
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 42.31 ▲1.78 |
Dashboard /wp-admin | 3.73 ▲0.43 | 55.88 ▲6.18 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 54.59 ▲2.78 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 87.84 ▼7.76 |
Media Library /wp-admin/upload.php | 3.58 ▲0.36 | 40.52 ▲3.80 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_vxg_hubspot |
wp_vxg_hubspot_log |
wp_vxg_hubspot_accounts |
New WordPress options |
---|
widget_recent-posts |
vxg_hubspot_pro_version |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Gravity Forms HubSpot
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.27 ▲0.13 | 1.83 ▼0.49 | 39.26 ▼5.93 |
Dashboard /wp-admin | 2,217 ▲37 | 5.55 ▼0.09 | 86.31 ▼8.35 | 39.41 ▼3.17 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 1.98 ▼0.03 | 41.45 ▲2.84 | 37.39 ▲3.36 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.04 ▼0.08 | 692.68 ▲8.53 | 56.49 ▲4.72 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.23 ▲0.00 | 101.26 ▼6.21 | 44.60 ▼1.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 3 tables
- wp_vxg_hubspot
- wp_vxg_hubspot_log
- wp_vxg_hubspot_accounts
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- vxg_hubspot_pro_version
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gravity forms hubspot, hubspot gravity forms integration, gravity forms, hubspot, gravity forms hubspot addon
gf-hubspot/gf-hubspot.php 92% from 13 tests
"WP Gravity Forms HubSpot" version 1.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin7,743 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 781 | 970 | 7,737 |
JavaScript | 2 | 1 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 149)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 141.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 355.00 |
Average method complexity | 7.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 149.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 184 | |
▷ Static methods | 3 | 1.63% |
▷ Public methods | 174 | 94.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 5.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
23 PNG files occupy 0.20MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/premium/email-lookup.png | 9.60KB | 9.48KB | ▼ 1.30% |
images/premium/browsing-history.png | 22.90KB | 8.62KB | ▼ 62.34% |
images/premium/analytics.png | 9.57KB | 9.77KB | 0.00% |
images/active0.png | 0.22KB | 0.18KB | ▼ 16.67% |
images/updated.png | 1.53KB | 0.50KB | ▼ 67.37% |