72% xqueue-maileon

Code Review | Maileon for WordPress

WordPress plugin Maileon for WordPress scored72%from 54 tests.

About plugin

  • Plugin page: xqueue-maileon
  • Plugin version: 2.16.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 1, 2016
  • Latest release: Sep 27, 2023
  • Number of updates: 91
  • Update frequency: every 28.4 days
  • Top authors: mstaender (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,266 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5038.70 ▲1.66
Dashboard /wp-admin3.95 ▲0.6547.60 ▼2.18
Posts /wp-admin/edit.php4.00 ▲0.6450.14 ▲0.77
Add New Post /wp-admin/post-new.php6.47 ▲0.5899.76 ▲3.10
Media Library /wp-admin/upload.php3.83 ▲0.6042.68 ▲10.16
Maileon /wp-admin/options-general.php?page=maileon-options3.8034.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16213.53 ▼0.828.60 ▲7.0337.71 ▼3.72
Dashboard /wp-admin2,208 ▲315.70 ▲0.1194.41 ▲7.8640.38 ▼3.94
Posts /wp-admin/edit.php2,116 ▲162.05 ▲0.0741.12 ▲7.3435.47 ▲1.57
Add New Post /wp-admin/post-new.php1,538 ▲923.14 ▼0.34672.97 ▲42.9447.63 ▼4.26
Media Library /wp-admin/upload.php1,413 ▲194.20 ▼0.1295.10 ▼4.8745.44 ▼3.59
Maileon /wp-admin/options-general.php?page=maileon-options1,3842.1636.3049.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

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: The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP1172,0827,53510,473
CSS257481,282
Markdown2900285
PO File1106155210
JSON400201
JavaScript42825123
XML10019

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 code0.39
Average class complexity13.74
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity114.00
Code structure
Namespaces22
Interfaces0
Traits0
Classes101
▷ Abstract classes76.93%
▷ Concrete classes9493.07%
▷ Final classes00.00%
Methods635
▷ Static methods8413.23%
▷ Public methods58992.76%
▷ Protected methods40.63%
▷ Private methods426.61%
Functions10
▷ Named functions660.00%
▷ Anonymous functions440.00%
Constants21
▷ Global constants14.76%
▷ Class constants2095.24%
▷ Public constants20100.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
FileSize - originalSize - compressedSavings
img/icon_warn.png1.27KB0.91KB▼ 28.09%
img/icon_invalid.png1.57KB1.27KB▼ 19.37%
img/icon_valid.png2.06KB1.40KB▼ 32.04%