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.89MB] [CPU: ▼31.82ms] Passed 4 tests
An overview of server-side resources used by MixPanel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.05 | 25.97 ▼15.11 |
Dashboard /wp-admin | 3.05 ▼0.25 | 25.94 ▼24.83 |
Posts /wp-admin/edit.php | 3.05 ▼0.30 | 24.82 ▼21.85 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.83 | 23.76 ▼65.50 |
Media Library /wp-admin/upload.php | 3.05 ▼0.18 | 21.83 ▼14.12 |
Mixpanel Options /wp-admin/options-general.php?page=mixpanel-admin | 3.05 | 24.71 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
MixPanel: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.23 ▼1.15 | 1.60 ▼0.15 | 38.23 ▼14.29 |
Dashboard /wp-admin | 2,207 ▲16 | 5.80 ▲0.90 | 103.90 ▼15.73 | 41.62 ▼5.38 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.01 | 40.10 ▲1.58 | 34.69 ▲1.00 |
Add New Post /wp-admin/post-new.php | 6,305 ▲4,771 | 19.37 ▼4.12 | 903.36 ▲213.16 | 60.72 ▲2.98 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.13 ▼0.04 | 98.65 ▼14.65 | 42.84 ▼2.30 |
Mixpanel Options /wp-admin/options-general.php?page=mixpanel-admin | 797 | 2.03 | 23.81 | 27.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/mixpanel-integration/mixpanel.php+86
Undefined index: token_id
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=mixpanel-admin
- > Notice in wp-content/plugins/mixpanel-integration/mixpanel.php+86
Undefined index: token_id
- > GET request to /wp-admin/options-general.php?page=mixpanel-admin
- > Notice in wp-content/plugins/mixpanel-integration/mixpanel.php+97
Undefined index: debug_mode
- > GET request to /wp-admin/options-general.php?page=mixpanel-admin
- > Notice in wp-content/plugins/mixpanel-integration/mixpanel.php+108
Undefined index: subdomain_cookie
- > GET request to /wp-admin/options-general.php?page=mixpanel-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=mixpanel-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mixpanel-integration/mixpaneljs.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mixpanel-integration/mixpaneljs.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mixpanel-integration/mixpaneljs.php on line 4
- > PHP Notice
Undefined variable: settings in wp-content/plugins/mixpanel-integration/mixpaneljs.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mixpanel-integration/mixpaneljs.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mixpanel-integration/page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function jittarao\\is_admin() in wp-content/plugins/mixpanel-integration/mixpanel.php:21
- > PHP Notice
Undefined variable: settings in wp-content/plugins/mixpanel-integration/mixpaneljs.php on line 10
- > PHP Notice
Undefined variable: settings in wp-content/plugins/mixpanel-integration/mixpaneljs.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mixpanel-integration/meta-box.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: funnels, kissmetrics, analytics, mixpanel, metrics
mixpanel-integration/mixpanel.php 92% from 13 tests
The main PHP script in "MixPanel" version 1.5.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("mixpanel-integration.php" instead of "mixpanel.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected192 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 26 | 29 | 181 |
Markdown | 1 | 6 | 0 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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