99% edd-mixpanel-lite

Code Review | EDD Mixpanel

WordPress plugin EDD Mixpanel scored 99% from 54 tests.

About plugin

  • Plugin page: edd-mixpanel-lite
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.3.1
  • WordPress version: 5.8.1
  • First release: Aug 26, 2015
  • Latest release: Oct 2, 2015
  • Number of updates: 17
  • Update frequency: every 2.2 days
  • Top authors: irkanu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,021 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1741.14 ▲17.95
Dashboard /wp-admin3.12 ▲0.0657.19 ▲9.61
Posts /wp-admin/edit.php3.17 ▲0.0640.78 ▼8.46
Add New Post /wp-admin/post-new.php5.47 ▲0.0495.72 ▼569.06
Media Library /wp-admin/upload.php3.06 ▲0.0538.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,712 ▲11615.75 ▲0.1713.14 ▲4.5643.68 ▼7.44
Dashboard /wp-admin2,982 ▲515.90 ▼0.08139.72 ▼15.85126.30 ▲10.22
Posts /wp-admin/edit.php2,748 ▲92.70 ▼0.0065.78 ▼6.6994.06 ▲2.83
Add New Post /wp-admin/post-new.php1,689 ▲18518.72 ▼0.12400.76 ▲8.87117.63 ▼1.00
Media Library /wp-admin/upload.php1,816 ▲95.02 ▼0.01175.83 ▲25.09131.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:
LanguageFilesBlank linesComment linesLines of code
PHP11334847864
Markdown3390117
PO File1181870
JSON20047

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 code0.30
Average class complexity11.18
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes218.18%
▷ Concrete classes981.82%
▷ Final classes00.00%
Methods87
▷ Static methods22.30%
▷ Public methods6979.31%
▷ Protected methods89.20%
▷ Private methods1011.49%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/edd-mixpanel-lite-bg-top.png39.66KB18.19KB▼ 54.14%
assets/images/edd-mixpanel-lite-bg-bottom.png41.42KB17.68KB▼ 57.32%