Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.24ms] Passed 4 tests
An overview of server-side resources used by User Sync For Klaviyo
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.73 ▼1.73 |
Dashboard /wp-admin | 3.41 ▲0.11 | 50.45 ▼1.49 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.67 ▲4.04 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 82.67 ▼14.91 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.36 ▲1.16 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
User Sync For Klaviyo: 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,808 ▲47 | 14.35 ▼0.00 | 1.76 ▲0.11 | 44.69 ▼1.62 |
Dashboard /wp-admin | 2,217 ▲40 | 5.65 ▲0.02 | 98.28 ▼1.11 | 41.69 ▼0.65 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.02 ▲0.06 | 36.52 ▼4.95 | 33.45 ▼4.35 |
Add New Post /wp-admin/post-new.php | 1,543 ▲7 | 23.31 ▲0.20 | 672.16 ▲37.57 | 51.93 ▲2.42 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.23 ▲0.04 | 97.62 ▲0.20 | 42.94 ▼0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/user-sync-for-klaviyo/public/partials/user-sync-for-klaviyo-public-display.php
- > /wp-content/plugins/user-sync-for-klaviyo/trunk/public/partials/user-sync-for-klaviyo-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/user-sync-for-klaviyo/trunk/admin/partials/user-sync-for-klaviyo-admin-display.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/user-sync-for-klaviyo/admin/partials/user-sync-for-klaviyo-admin-display.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (The settings page of the plugin), #2 (The information synced by the plugin)
user-sync-for-klaviyo/user-sync-for-klaviyo.php Passed 13 tests
The entry point to "User Sync For Klaviyo" version 1.1.0 is a PHP file that has certain tags in its header comment area
77 characters long description:
This plugin allows you to sync your WordPress Users and their data to Klaviyo
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
There were no executable files found in this plugin878 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 145 | 561 | 576 |
CSS | 2 | 20 | 8 | 138 |
JavaScript | 2 | 16 | 36 | 105 |
Markdown | 1 | 30 | 0 | 59 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 4 | 4.55% |
▷ Public methods | 72 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 18.18% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 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