Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.58MB] [CPU: ▲0.84ms] Passed 4 tests
This is a short check of server-side resources used by Maileon for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 38.70 ▲1.66 |
Dashboard /wp-admin | 3.95 ▲0.65 | 47.60 ▼2.18 |
Posts /wp-admin/edit.php | 4.00 ▲0.64 | 50.14 ▲0.77 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 99.76 ▲3.10 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 42.68 ▲10.16 |
Maileon /wp-admin/options-general.php?page=maileon-options | 3.80 | 34.99 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 144 new files
Database: no new tables, 42 new options
New WordPress options |
---|
can_compress_scripts |
ORGANIZATION |
PRIVACY_PAGE |
label_email |
PAGE_UPDATE_ERROR |
PAGE_OK |
widget_recent-comments |
label_submit |
adc_email_field |
error_nonexistant_address |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Maileon for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 13.53 ▼0.82 | 8.60 ▲7.03 | 37.71 ▼3.72 |
Dashboard /wp-admin | 2,208 ▲31 | 5.70 ▲0.11 | 94.41 ▲7.86 | 40.38 ▼3.94 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.05 ▲0.07 | 41.12 ▲7.34 | 35.47 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,538 ▲9 | 23.14 ▼0.34 | 672.97 ▲42.94 | 47.63 ▼4.26 |
Media Library /wp-admin/upload.php | 1,413 ▲19 | 4.20 ▼0.12 | 95.10 ▼4.87 | 45.44 ▼3.59 |
Maileon /wp-admin/options-general.php?page=maileon-options | 1,384 | 2.16 | 36.30 | 49.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 42 options in the database
- widget_recent-comments
- theysaidso_admin_options
- error_invalid_syntax
- error_invalid_address
- adc_api_user
- success_update_message
- maileon_recaptcha_site_key
- error_maileon
- PAGE_UPDATE_ERROR
- widget_xq_maileon_nl
- ...
Smoke tests 25% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/xqueue-maileon/maileon-plugin.php
- 69× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'de\\xqueue\\maileon\\api\\client\\xml\\AbstractXMLWrapper' not found in wp-content/plugins/xqueue-maileon/vendor/xqueue/maileon-api-client/src/reports/Conversion.php:12
- > PHP Fatal error
Uncaught Error: Class 'de\\xqueue\\maileon\\api\\client\\json\\AbstractJSONWrapper' not found in wp-content/plugins/xqueue-maileon/vendor/xqueue/maileon-api-client/src/transactions/ReportContact.php:13
- > PHP Fatal error
Uncaught Error: Class 'de\\xqueue\\maileon\\api\\client\\AbstractMaileonService' not found in wp-content/plugins/xqueue-maileon/vendor/xqueue/maileon-api-client/src/contacts/ContactsService.php:17
- > PHP Fatal error
Uncaught Error: Class 'de\\xqueue\\maileon\\api\\client\\xml\\AbstractXMLWrapper' not found in wp-content/plugins/xqueue-maileon/vendor/xqueue/maileon-api-client/src/reports/Click.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/xqueue-maileon/views/maileon-contact-form-update-example.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xqueue-maileon/class-xq-maileon-subscription-widget.php:15
- > PHP Fatal error
Uncaught Error: Class 'de\\xqueue\\maileon\\api\\client\\AbstractMaileonService' not found in wp-content/plugins/xqueue-maileon/vendor/xqueue/maileon-api-client/src/blacklists/BlacklistsService.php:14
- > PHP Fatal error
Uncaught Error: Class 'de\\xqueue\\maileon\\api\\client\\xml\\AbstractXMLWrapper' not found in wp-content/plugins/xqueue-maileon/vendor/xqueue/maileon-api-client/src/reports/Block.php:14
- > PHP Fatal error
Uncaught Error: Class 'de\\xqueue\\maileon\\api\\client\\AbstractMaileonService' not found in wp-content/plugins/xqueue-maileon/vendor/xqueue/maileon-api-client/src/targetgroups/TargetGroupsService.php:13
- > PHP Fatal error
Uncaught Error: Class 'de\\xqueue\\maileon\\api\\client\\xml\\AbstractXMLWrapper' not found in wp-content/plugins/xqueue-maileon/vendor/xqueue/maileon-api-client/src/mailings/Attachment.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=maileon-options
- > Network (severe)
wp-content/plugins/xqueue-maileon/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=maileon-options
- > Network (severe)
wp-content/plugins/xqueue-maileon/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=maileon-options
- > Network (severe)
wp-content/plugins/xqueue-maileon/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #1 in xqueue-maileon/assets to your readme.txt
xqueue-maileon/maileon-plugin.php 92% from 13 tests
The principal PHP file in "Maileon for WordPress" v. 2.16.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("xqueue-maileon.php" instead of "maileon-plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected12,593 lines of code in 131 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 2,082 | 7,535 | 10,473 |
CSS | 2 | 57 | 48 | 1,282 |
Markdown | 2 | 90 | 0 | 285 |
PO File | 1 | 106 | 155 | 210 |
JSON | 4 | 0 | 0 | 201 |
JavaScript | 4 | 28 | 25 | 123 |
XML | 1 | 0 | 0 | 19 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 114)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 114.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 101 | |
▷ Abstract classes | 7 | 6.93% |
▷ Concrete classes | 94 | 93.07% |
▷ Final classes | 0 | 0.00% |
Methods | 635 | |
▷ Static methods | 84 | 13.23% |
▷ Public methods | 589 | 92.76% |
▷ Protected methods | 4 | 0.63% |
▷ Private methods | 42 | 6.61% |
Functions | 10 | |
▷ Named functions | 6 | 60.00% |
▷ Anonymous functions | 4 | 40.00% |
Constants | 21 | |
▷ Global constants | 1 | 4.76% |
▷ Class constants | 20 | 95.24% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon_warn.png | 1.27KB | 0.91KB | ▼ 28.09% |
img/icon_invalid.png | 1.57KB | 1.27KB | ▼ 19.37% |
img/icon_valid.png | 2.06KB | 1.40KB | ▼ 32.04% |