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 gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▲9.49ms] Passed 4 tests
A check of server-side resources used by HubSpot - CRM, Email Marketing, Live Chat, Forms & Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.94 ▼1.60 |
Dashboard /wp-admin | 3.44 ▲0.13 | 64.01 ▲10.79 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 68.62 ▲20.22 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 103.05 ▲8.54 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 57.12 ▲24.81 |
Server storage [IO: ▲4.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 272 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
leadin_activation_time |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for HubSpot - CRM, Email Marketing, Live Chat, Forms & Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲126 | 14.72 ▲0.45 | 1.54 ▼0.02 | 27.49 ▼11.85 |
Dashboard /wp-admin | 2,293 ▲112 | 6.05 ▲0.39 | 101.44 ▼8.12 | 82.84 ▲43.16 |
Posts /wp-admin/edit.php | 2,202 ▲102 | 2.59 ▲0.62 | 47.40 ▲5.95 | 39.85 ▲1.57 |
Add New Post /wp-admin/post-new.php | 6,374 ▲4,848 | 24.08 ▲0.95 | 1,103.56 ▲455.98 | 60.65 ▲11.17 |
Media Library /wp-admin/upload.php | 1,489 ▲89 | 4.54 ▲0.31 | 117.95 ▲16.28 | 101.82 ▲57.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Leadin\\api\\Base_Api_Controller' not found in wp-content/plugins/leadin/public/admin/modules/api/class-internal-tracking-api-controller.php:11
- > PHP Fatal error
Uncaught Error: Class 'Leadin\\client\\HubSpot_Base_Api_Client' not found in wp-content/plugins/leadin/public/admin/modules/client/class-contacts-api-client.php:10
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/leadin/public/admin/widgets/class-elementormeeting.php:10
- > PHP Warning
require_once(LEADIN_PLUGIN_DIR/public/includes/api-loader.php): failed to open stream: No such file or directory in wp-content/plugins/leadin/public/class-leadin.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'LEADIN_PLUGIN_DIR/public/includes/api-loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/leadin/public/class-leadin.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Leadin\\api\\Base_Api_Controller' not found in wp-content/plugins/leadin/public/admin/modules/api/class-user-meta-api-controller.php:11
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/leadin/public/admin/widgets/class-elementorformselect.php:9
- > PHP Fatal error
Uncaught Error: Class 'Leadin\\api\\Base_Api_Controller' not found in wp-content/plugins/leadin/public/admin/modules/api/class-hublet-api-controller.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Leadin\\add_action() in wp-content/plugins/leadin/public/includes/api-loader.php:14
- > PHP Fatal error
Uncaught Error: Class 'Leadin\\api\\Base_Api_Controller' not found in wp-content/plugins/leadin/public/admin/modules/api/class-portal-api-controller.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
leadin/leadin.php 92% from 13 tests
The primary PHP file in "HubSpot - CRM, Email Marketing, Live Chat, Forms & Analytics" version 10.2.16 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 143 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 plugin45,329 lines of code in 192 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 8,160 | 9,255 | 36,419 |
TypeScript | 94 | 434 | 49 | 4,188 |
PHP | 64 | 716 | 1,638 | 3,193 |
PO File | 8 | 352 | 408 | 816 |
CSS | 8 | 86 | 97 | 528 |
SVG | 6 | 5 | 2 | 90 |
JSON | 2 | 0 | 0 | 75 |
XML | 1 | 0 | 0 | 15 |
Markdown | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis 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.27 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 48 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 305 | |
▷ Static methods | 182 | 59.67% |
▷ Public methods | 263 | 86.23% |
▷ Protected methods | 6 | 1.97% |
▷ Private methods | 36 | 11.80% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 72 | |
▷ Global constants | 9 | 12.50% |
▷ Class constants | 63 | 87.50% |
▷ Public constants | 63 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/hubspot-form.png | 27.27KB | 7.19KB | ▼ 73.62% |
public/assets/images/hubspot-meetings.png | 31.44KB | 11.58KB | ▼ 63.16% |
public/assets/images/hubspot-team-profile.png | 39.10KB | 16.99KB | ▼ 56.56% |