Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼12.69ms] Passed 4 tests
A check of server-side resources used by CRM HubSpot LearnDash Integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.21 ▼12.42 |
Dashboard /wp-admin | 3.21 ▼0.09 | 34.06 ▼17.34 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 39.35 ▼9.57 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.44 | 82.12 ▼11.43 |
Media Library /wp-admin/upload.php | 3.21 ▼0.01 | 34.10 ▼1.74 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 754 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
CRM HubSpot LearnDash Integration: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.62 ▼0.78 | 1.70 ▼0.60 | 46.00 ▼1.39 |
Dashboard /wp-admin | 2,206 ▲18 | 5.81 ▲0.93 | 100.45 ▼8.66 | 39.84 ▼2.20 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▲0.00 | 39.50 ▲0.28 | 36.36 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.32 ▲0.14 | 589.09 ▼32.39 | 55.12 ▲2.89 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.03 | 96.27 ▼6.03 | 39.98 ▼2.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- 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 shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 344× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/crm-hubspot-learndash-integration/vendor/twig/twig/src/Extension/DebugExtension.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/crm-hubspot-learndash-integration/vendor/twig/twig/src/Test/NodeTestCase.php:20
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Error\\Error' not found in wp-content/plugins/crm-hubspot-learndash-integration/vendor/twig/twig/src/Error/LoaderError.php:27
- > PHP Fatal error
Uncaught Error: Class 'Timber\\Core' not found in wp-content/plugins/crm-hubspot-learndash-integration/vendor/timber/timber/lib/MenuItem.php:10
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/crm-hubspot-learndash-integration/vendor/twig/twig/src/TokenParser/ForTokenParser.php:34
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/crm-hubspot-learndash-integration/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'SevenShores\\Hubspot\\Resources\\Resource' not found in wp-content/plugins/crm-hubspot-learndash-integration/vendor/ryanwinchester/hubspot-php/src/Resources/BlogPosts.php:5
- > PHP Fatal error
Uncaught Error: Class 'SevenShores\\Hubspot\\Resources\\Resource' not found in wp-content/plugins/crm-hubspot-learndash-integration/vendor/ryanwinchester/hubspot-php/src/Resources/HubDB.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/crm-hubspot-learndash-integration/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'SevenShores\\Hubspot\\Resources\\Resource' not found in wp-content/plugins/crm-hubspot-learndash-integration/vendor/ryanwinchester/hubspot-php/src/Resources/Files.php:5
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
crm-hubspot-learndash-integration/crm-hubspot-learndash-integration.php Passed 13 tests
The principal PHP file in "CRM HubSpot LearnDash Integration" v. 1.1.0 is loaded by WordPress automatically on each request
51 characters long description:
Integrates your course enrollments with HubSpot CRM
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected39,425 lines of code in 726 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 660 | 7,616 | 17,010 | 33,128 |
Markdown | 26 | 1,333 | 0 | 4,110 |
JSON | 15 | 0 | 0 | 1,492 |
Bourne Shell | 4 | 55 | 14 | 255 |
XML | 11 | 23 | 52 | 233 |
YAML | 9 | 35 | 2 | 198 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 172.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 48 | |
Interfaces | 33 | |
Traits | 2 | |
Classes | 603 | |
▷ Abstract classes | 15 | 2.49% |
▷ Concrete classes | 588 | 97.51% |
▷ Final classes | 56 | 9.52% |
Methods | 2,441 | |
▷ Static methods | 306 | 12.54% |
▷ Public methods | 2,056 | 84.23% |
▷ Protected methods | 189 | 7.74% |
▷ Private methods | 196 | 8.03% |
Functions | 281 | |
▷ Named functions | 153 | 54.45% |
▷ Anonymous functions | 128 | 45.55% |
Constants | 123 | |
▷ Global constants | 12 | 9.76% |
▷ Class constants | 111 | 90.24% |
▷ Public constants | 111 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin