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: ▼1.22ms] Passed 4 tests
Analyzing server-side resources used by CustomerLabs CDP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.41 ▼0.97 |
Dashboard /wp-admin | 3.33 ▲0.03 | 57.85 ▲10.96 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.39 ▲2.67 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.82 ▼9.26 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.28 ▲2.69 |
Customerlabs CDP /wp-admin/options-general.php?page=cltracker | 3.24 | 31.65 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
cltracker_wordpress_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
CustomerLabs CDP: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.23 ▼0.15 | 1.70 ▼0.03 | 39.77 ▼0.22 |
Dashboard /wp-admin | 2,207 ▲19 | 5.84 ▼0.03 | 112.51 ▲8.75 | 42.25 ▼3.78 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.01 | 35.74 ▼4.80 | 32.89 ▼5.73 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.02 ▲5.57 | 660.15 ▼30.38 | 56.39 ▼14.98 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▼0.04 | 105.06 ▲5.39 | 43.18 ▼0.99 |
Customerlabs CDP /wp-admin/options-general.php?page=cltracker | 932 | 2.05 | 22.00 | 28.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/customerlabs-actionrecorder/templates/identify.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/customerlabs-actionrecorder/ActionRecorder.php:699
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customerlabs-actionrecorder/class.cltracker-cookie.php:97
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/customerlabs-actionrecorder/templates/tracking_code.php:3
- > PHP Fatal error
Uncaught Error: Class 'CLTracker_ECommerce' not found in wp-content/plugins/customerlabs-actionrecorder/integrations/ecommerce/woocommerce.php:3
- > PHP Fatal error
Uncaught Error: Class 'CLTracker_WordPress' not found in wp-content/plugins/customerlabs-actionrecorder/templates/track.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/customerlabs-actionrecorder/templates/settings.php:2
- > 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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: event tracking, no code alternative
customerlabs-actionrecorder/ActionRecorder.php 92% from 13 tests
"CustomerLabs CDP" version 1.8.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("customerlabs-actionrecorder.php" instead of "ActionRecorder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,095 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 298 | 389 | 1,007 |
Markdown | 1 | 42 | 0 | 88 |
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.28 |
Average class complexity | 13.83 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 24 | 40.68% |
▷ Public methods | 56 | 94.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.08% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin