Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.79MB] [CPU: ▼27.29ms] Passed 4 tests
A check of server-side resources used by Welcome Mat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.73 ▲1.27 | 27.15 ▼11.67 |
Dashboard /wp-admin | 4.80 ▲1.50 | 33.91 ▼13.27 |
Posts /wp-admin/edit.php | 4.81 ▲1.45 | 31.18 ▼16.80 |
Add New Post /wp-admin/post-new.php | 4.80 ▼1.08 | 29.95 ▼67.41 |
Media Library /wp-admin/upload.php | 4.81 ▲1.58 | 37.46 ▲2.48 |
Add new /wp-admin/edit.php?post_type=mf_mat&page=maxinbound_new | 4.81 | 25.20 |
Welcome Mat /wp-admin/edit.php?post_type=mf_mat | 4.81 | 27.44 |
Statistics /wp-admin/edit.php?post_type=mf_mat&page=basic_statistics | 4.81 | 28.50 |
Emails /wp-admin/edit.php?post_type=mf_mat&page=basic_email | 4.81 | 26.80 |
Settings /wp-admin/edit.php?post_type=mf_mat&page=maxinbound-settings | 4.81 | 27.55 |
Server storage [IO: ▲7.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 517 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_mi_stats |
wp_mi_contacts |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
welcome-mat_uninstall |
theysaidso_admin_options |
can_compress_scripts |
mf_welcomemat_version |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Welcome Mat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.21 ▼1.19 | 2.18 ▲0.34 | 55.35 ▲10.50 |
Dashboard /wp-admin | 2,232 ▲44 | 4.85 ▼0.94 | 98.53 ▼9.47 | 72.20 ▲33.06 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.02 ▲0.03 | 36.95 ▲0.10 | 32.79 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,550 ▲31 | 20.97 ▼2.08 | 680.11 ▲26.33 | 67.37 ▲10.02 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.22 ▼0.03 | 110.26 ▲10.18 | 74.90 ▲29.25 |
Add new /wp-admin/edit.php?post_type=mf_mat&page=maxinbound_new | 1,268 | 3.36 | 53.30 | 104.32 |
Welcome Mat /wp-admin/edit.php?post_type=mf_mat | 1,332 | 3.66 | 50.23 | 79.54 |
Statistics /wp-admin/edit.php?post_type=mf_mat&page=basic_statistics | 2,212 | 5.82 | 100.94 | 100.19 |
Emails /wp-admin/edit.php?post_type=mf_mat&page=basic_email | 1,053 | 3.41 | 43.95 | 80.23 |
Settings /wp-admin/edit.php?post_type=mf_mat&page=maxinbound-settings | 1,650 | 3.74 | 48.02 | 70.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/welcome-mat/welcomemat-pro/modules/campaignmonitor/cm/class/services_json.php+156
Array and string offset access syntax with curly braces is deprecated
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_mi_stats
- wp_mi_contacts
- This plugin does not fully uninstall, leaving 9 options in the database
- db_upgraded
- mf_welcomemat_version
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- 450e54a196ce924f101490c91b120a54
- welcome-mat_uninstall
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 560 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mf_mat&page=maxinbound-settings
- > Deprecated in wp-content/plugins/welcome-mat/welcomemat-pro/modules/campaignmonitor/cm/class/services_json.php+725
Array and string offset access syntax with curly braces is deprecated
SRP 0% from 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
Almost there! Just fix the following items
- 78× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/welcome-mat/welcomemat-pro/modules/mailchimp/mailchimp.php
- > /wp-content/plugins/welcome-mat/modules/removal/removal.php
- > /wp-content/plugins/welcome-mat/modules/basic_stats/stats_screen.php
- > /wp-content/plugins/welcome-mat/classes/whistle.php
- > /wp-content/plugins/welcome-mat/welcomemat.php
- > /wp-content/plugins/welcome-mat/modules/general/_support_settings.php
- > /wp-content/plugins/welcome-mat/admin/system_metabox.php
- > /wp-content/plugins/welcome-mat/admin/template_picker.php
- > /wp-content/plugins/welcome-mat/welcomemat-pro/modules/stats_pro/stats_pro.php
- > /wp-content/plugins/welcome-mat/admin/editor.php
- 136× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/welcome-mat/welcomemat-pro/modules/aweber/aweber_api/_aweber_entry.php:3
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/welcome-mat/assets/libraries/monolog/Monolog/Processor/MemoryPeakUsageProcessor.php:20
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/welcome-mat/assets/libraries/monolog/Monolog/Handler/PHPConsoleHandler.php:40
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/welcome-mat/assets/libraries/Sabberworm/CSS/Rule/Rule.php:14
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/welcome-mat/assets/libraries/monolog/Monolog/Handler/ErrorLogHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/welcome-mat/assets/libraries/monolog/Monolog/Handler/SlackbotHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/welcome-mat/assets/libraries/psrlog/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/welcome-mat/assets/libraries/monolog/Monolog/Handler/GelfHandler.php:27
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/welcome-mat/assets/libraries/monolog/Monolog/Handler/CouchDBHandler.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/welcome-mat/assets/libraries/monolog/Monolog/Formatter/FlowdockFormatter.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: mailing list, subscription, newsletter, inbound marketing, welcome mat...
welcome-mat/welcomemat.php 92% from 13 tests
The main file in "Welcome Mat" v. 1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("welcome-mat.php" instead of "welcomemat.php")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin73,782 lines of code in 397 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 283 | 8,952 | 13,422 | 32,790 |
JSON | 3 | 3 | 0 | 15,572 |
JavaScript | 19 | 1,170 | 580 | 8,637 |
CSS | 30 | 176 | 279 | 7,027 |
Sass | 50 | 1,133 | 109 | 6,758 |
SVG | 1 | 0 | 0 | 2,671 |
XML | 8 | 34 | 0 | 247 |
Markdown | 3 | 36 | 0 | 80 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 19.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 581.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 13 | |
Traits | 2 | |
Classes | 273 | |
▷ Abstract classes | 16 | 5.86% |
▷ Concrete classes | 257 | 94.14% |
▷ Final classes | 0 | 0.00% |
Methods | 2,412 | |
▷ Static methods | 131 | 5.43% |
▷ Public methods | 1,767 | 73.26% |
▷ Protected methods | 525 | 21.77% |
▷ Private methods | 120 | 4.98% |
Functions | 52 | |
▷ Named functions | 16 | 30.77% |
▷ Anonymous functions | 36 | 69.23% |
Constants | 270 | |
▷ Global constants | 142 | 52.59% |
▷ Class constants | 128 | 47.41% |
▷ Public constants | 128 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.47MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/image_placeholder.png | 12.63KB | 7.46KB | ▼ 40.95% |
images/colpick_transparent_rounded.png | 0.29KB | 0.18KB | ▼ 39.06% |
images/gopro/template_thumbs.png | 329.51KB | 82.57KB | ▼ 74.94% |
images/gopro/integration_graphic.png | 45.58KB | 13.40KB | ▼ 70.59% |
images/colpick_transparent.png | 0.22KB | 0.10KB | ▼ 57.02% |