Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.45ms] Passed 4 tests
A check of server-side resources used by EDD Mailerlite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 45.12 ▲15.79 |
Dashboard /wp-admin | 3.07 ▲0.02 | 49.06 ▲1.68 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 44.39 ▼2.35 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 98.29 ▼566.24 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.88 ▼2.89 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 208 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
EDD Mailerlite: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.79 ▲0.21 | 9.83 ▲1.55 | 49.39 ▼0.02 |
Dashboard /wp-admin | 2,989 ▲58 | 6.00 ▼0.14 | 143.38 ▼31.24 | 122.98 ▼11.24 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.01 | 66.98 ▼8.50 | 99.36 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.74 ▼0.03 | 395.14 ▼1.98 | 114.71 ▼2.50 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.01 | 149.71 ▼15.71 | 119.16 ▼11.06 |
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
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 101× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MailerLiteApi\\Common\\ApiAbstract' not found in wp-content/plugins/edd-mailerlite/vendor/mailerlite/mailerlite-api-v2-php-sdk/src/Api/Fields.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/edd-mailerlite/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Formatter' not found in wp-content/plugins/edd-mailerlite/vendor/php-http/message/src/Formatter/SimpleFormatter.php:15
- > PHP Fatal error
Uncaught Error: Class 'MailerLiteApi\\Tests\\MlTestCase' not found in wp-content/plugins/edd-mailerlite/vendor/mailerlite/mailerlite-api-v2-php-sdk/tests/StatsTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/edd-mailerlite/vendor/clue/stream-filter/tests/FunTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Http\\Message\\Encoding\\FilteredStream' not found in wp-content/plugins/edd-mailerlite/vendor/php-http/message/src/Encoding/DecompressStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Exception\\RequestException' not found in wp-content/plugins/edd-mailerlite/vendor/php-http/httplug/src/Exception/HttpException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Discovery\\Strategy\\DiscoveryStrategy' not found in wp-content/plugins/edd-mailerlite/vendor/php-http/discovery/src/Strategy/MockClientStrategy.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Authentication' not found in wp-content/plugins/edd-mailerlite/vendor/php-http/message/src/Authentication/QueryParam.php:16
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Exception\\RequestException' not found in wp-content/plugins/edd-mailerlite/vendor/php-http/httplug/src/Exception/NetworkException.php:12
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: ""
edd-mailerlite/edd-mailerlite.php Passed 13 tests
Analyzing the main PHP file in "EDD Mailerlite" version 1.0.0
49 characters long description:
Mailerlite integration for Easy Digital Downloads
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected10,571 lines of code in 192 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 154 | 2,145 | 5,205 | 7,858 |
JSON | 15 | 0 | 0 | 1,355 |
Markdown | 19 | 893 | 0 | 1,313 |
XML | 2 | 1 | 3 | 31 |
YAML | 2 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 21 | |
Traits | 6 | |
Classes | 112 | |
▷ Abstract classes | 3 | 2.68% |
▷ Concrete classes | 109 | 97.32% |
▷ Final classes | 39 | 35.78% |
Methods | 758 | |
▷ Static methods | 57 | 7.52% |
▷ Public methods | 654 | 86.28% |
▷ Protected methods | 46 | 6.07% |
▷ Private methods | 58 | 7.65% |
Functions | 89 | |
▷ Named functions | 46 | 51.69% |
▷ Anonymous functions | 43 | 48.31% |
Constants | 25 | |
▷ Global constants | 7 | 28.00% |
▷ Class constants | 18 | 72.00% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin