Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼141.61ms] Passed 4 tests
Server-side resources used by EDD Mixpanel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 41.14 ▲17.95 |
Dashboard /wp-admin | 3.12 ▲0.06 | 57.19 ▲9.61 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 40.78 ▼8.46 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 95.72 ▼569.06 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 38.45 ▲1.46 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for EDD Mixpanel
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲116 | 15.75 ▲0.17 | 13.14 ▲4.56 | 43.68 ▼7.44 |
Dashboard /wp-admin | 2,982 ▲51 | 5.90 ▼0.08 | 139.72 ▼15.85 | 126.30 ▲10.22 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.70 ▼0.00 | 65.78 ▼6.69 | 94.06 ▲2.83 |
Add New Post /wp-admin/post-new.php | 1,689 ▲185 | 18.72 ▼0.12 | 400.76 ▲8.87 | 117.63 ▼1.00 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.02 ▼0.01 | 175.83 ▲25.09 | 131.88 ▲2.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests Passed 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 Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: analytics, mixpanelphp, easy digital downloads, wordpress, free...
edd-mixpanel-lite/edd-mixpanel.php 85% from 13 tests
This is the main PHP file of "EDD Mixpanel" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("edd-mixpanel-lite.php" instead of "edd-mixpanel.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,098 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 334 | 847 | 864 |
Markdown | 3 | 39 | 0 | 117 |
PO File | 1 | 18 | 18 | 70 |
JSON | 2 | 0 | 0 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.18 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 2 | 2.30% |
▷ Public methods | 69 | 79.31% |
▷ Protected methods | 8 | 9.20% |
▷ Private methods | 10 | 11.49% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/edd-mixpanel-lite-bg-top.png | 39.66KB | 18.19KB | ▼ 54.14% |
assets/images/edd-mixpanel-lite-bg-bottom.png | 41.42KB | 17.68KB | ▼ 57.32% |