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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼7.76ms] Passed 4 tests
Analyzing server-side resources used by ET Mailing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.32 ▼2.28 |
Dashboard /wp-admin | 3.50 ▲0.20 | 45.29 ▼2.69 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 48.65 ▲1.53 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 81.80 ▼27.60 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.97 ▲1.66 |
General settings /wp-admin/admin.php?page=aem-settings | 3.37 | 31.85 |
Mandrill /wp-admin/admin.php?page=mandrill-settings | 3.37 | 33.71 |
Mailgun /wp-admin/admin.php?page=mailgun-settings | 3.37 | 33.04 |
SendGrid /wp-admin/admin.php?page=sendgrid-settings | 3.37 | 34.58 |
Server storage [IO: ▲9.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 885 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for ET Mailing
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲110 | 13.99 ▼0.59 | 1.77 ▼0.26 | 41.65 ▼3.66 |
Dashboard /wp-admin | 2,287 ▲102 | 5.62 ▲0.60 | 118.48 ▲13.11 | 39.60 ▼5.68 |
Posts /wp-admin/edit.php | 2,172 ▲83 | 2.58 ▲0.55 | 48.19 ▲11.72 | 36.26 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,584 ▲70 | 23.60 ▲6.08 | 648.67 ▼41.57 | 36.50 ▼15.31 |
Media Library /wp-admin/upload.php | 1,468 ▲80 | 4.37 ▲0.06 | 90.49 ▼16.29 | 42.95 ▼3.18 |
General settings /wp-admin/admin.php?page=aem-settings | 1,524 | 6.38 | 132.74 | 95.76 |
Mandrill /wp-admin/admin.php?page=mandrill-settings | 1,419 | 6.28 | 112.78 | 70.16 |
Mailgun /wp-admin/admin.php?page=mailgun-settings | 1,382 | 6.27 | 102.82 | 66.48 |
SendGrid /wp-admin/admin.php?page=sendgrid-settings | 1,350 | 6.34 | 100.20 | 71.22 |
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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/et-mailing/inc/module/sendgrid/lib/vendor/sendgrid/smtpapi/scripts/generate_upload_policy.php
- > /wp-content/plugins/et-mailing/inc/module/sendgrid/lib/vendor/sendgrid/sendgrid/scripts/generate_upload_policy.php
- 419× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require_once(AEM_PLUGIN_PATH/inc/module/mandrill/lib/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/et-mailing/inc/module/mandrill/class-aem-module-mandrill-client.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/et-mailing/inc/module/mailgun/lib/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/OperationCommandTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\AbstractResponseVisitorTest' not found in wp-content/plugins/et-mailing/inc/module/mailgun/lib/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/XmlVisitorTest.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Cache\\CacheAdapterInterface' not found in wp-content/plugins/et-mailing/inc/module/mailgun/lib/vendor/guzzle/guzzle/src/Guzzle/Cache/AbstractCacheAdapter.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Common\\Exception\\GuzzleException' not found in wp-content/plugins/et-mailing/inc/module/mailgun/lib/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/HttpException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Http\\Message\\AbstractMessage' not found in wp-content/plugins/et-mailing/inc/module/mailgun/lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/Response.php:17
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Cache\\AbstractCacheAdapter' not found in wp-content/plugins/et-mailing/inc/module/mailgun/lib/vendor/guzzle/guzzle/src/Guzzle/Cache/NullCacheAdapter.php:8
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/et-mailing/inc/module/mailgun/lib/vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/MessageParserProvider.php:5
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Common\\AbstractHasDispatcher' not found in wp-content/plugins/et-mailing/inc/module/mailgun/lib/vendor/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIterator.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\EventDispatcher\\EventSubscriberInterface' not found in wp-content/plugins/et-mailing/inc/module/mailgun/lib/vendor/guzzle/guzzle/src/Guzzle/Plugin/Md5/CommandContentMd5Plugin.php:13
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (General settings), #2 (Send test email.), #3 (API Settings)
et-mailing/et_mailing.php 92% from 13 tests
The main file in "ET Mailing" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("et-mailing.php" instead of "et_mailing.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/et-mailing/inc/module/mandrill/lib/vendor/mandrill/mandrill/src/ca-bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 537 | 7,796 | 14,054 | 39,888 |
HTML | 102 | 6,154 | 0 | 25,495 |
CSS | 13 | 588 | 143 | 3,585 |
JavaScript | 14 | 310 | 411 | 2,722 |
Markdown | 15 | 617 | 0 | 2,331 |
reStructuredText | 30 | 1,236 | 1,794 | 1,824 |
JSON | 47 | 15 | 0 | 1,578 |
SVG | 3 | 0 | 0 | 971 |
XML | 13 | 31 | 11 | 550 |
make | 1 | 24 | 5 | 124 |
YAML | 4 | 7 | 0 | 87 |
Bourne Shell | 2 | 12 | 4 | 58 |
Python | 1 | 22 | 23 | 49 |
Ant | 1 | 10 | 1 | 34 |
PO File | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 111 | |
Interfaces | 53 | |
Traits | 0 | |
Classes | 506 | |
▷ Abstract classes | 20 | 3.95% |
▷ Concrete classes | 486 | 96.05% |
▷ Final classes | 1 | 0.21% |
Methods | 3,607 | |
▷ Static methods | 126 | 3.49% |
▷ Public methods | 3,353 | 92.96% |
▷ Protected methods | 211 | 5.85% |
▷ Private methods | 43 | 1.19% |
Functions | 157 | |
▷ Named functions | 31 | 19.75% |
▷ Anonymous functions | 126 | 80.25% |
Constants | 116 | |
▷ Global constants | 6 | 5.17% |
▷ Class constants | 110 | 94.83% |
▷ Public constants | 110 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
44 PNG files occupy 0.72MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 81.08KB | 29.70KB | ▼ 63.37% |
inc/module/mailgun/lib/vendor/mailgun/mailgun-php/tests/Mailgun/Tests/TestAssets/mailgun_icon1.png | 84.81KB | 39.12KB | ▼ 53.87% |
inc/module/mandrill/lib/vendor/mandrill/mandrill/docs/resources/resize.png | 0.21KB | 0.10KB | ▼ 51.39% |
screenshot-3.png | 127.69KB | 42.35KB | ▼ 66.84% |
inc/module/mailgun/lib/vendor/mailgun/mailgun-php/tests/Mailgun/Tests/TestAssets/mailgun_icon2.png | 84.81KB | 39.12KB | ▼ 53.87% |