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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼12.13ms] Passed 4 tests
Server-side resources used by MailWizz Newsletter Box
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.31 ▼3.02 |
Dashboard /wp-admin | 3.45 ▲0.11 | 44.68 ▼20.06 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 51.93 ▲6.25 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 82.73 ▼30.12 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.68 ▲4.69 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 74 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_mwznb |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for MailWizz Newsletter Box
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲113 | 13.45 ▼0.93 | 8.67 ▲6.93 | 45.09 ▲1.12 |
Dashboard /wp-admin | 2,200 ▲26 | 5.65 ▲0.10 | 90.84 ▼0.11 | 42.25 ▼0.56 |
Posts /wp-admin/edit.php | 2,102 ▼1 | 2.06 ▲0.09 | 32.87 ▼7.00 | 30.90 ▼6.72 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.25 ▲0.27 | 641.05 ▲24.88 | 61.28 ▲13.04 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.23 ▲0.02 | 92.21 ▼9.09 | 43.43 ▼1.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_mwznb
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 15× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/examples/list_segments.php
- > /wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/examples/list_subscribers.php
- > /wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/examples/lists_create.php
- > /wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/examples/ajax_subscribe.php
- > /wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/examples/transactional_emails.php
- > /wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/examples/campaigns.php
- > /wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/examples/templates.php
- > /wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/examples/lists.php
- > /wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/examples/campaigns_tracking.php
- > /wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/examples/list_fields.php
- 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MailWizzApi_Base' not found in wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/MailWizzApi/Params.php:65
- > PHP Fatal error
Uncaught Error: Class 'MailWizzApi_Cache_Abstract' not found in wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/MailWizzApi/Cache/Xcache.php:22
- > PHP Fatal error
Uncaught Error: Class 'MailWizzApi_Cache_Abstract' not found in wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/MailWizzApi/Cache/File.php:19
- > PHP Fatal error
Uncaught Error: Class 'MailWizzApi_Cache_Abstract' not found in wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/MailWizzApi/Cache/Apc.php:22
- > PHP Fatal error
Uncaught Error: Class 'MailWizzApi_Base' not found in wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/MailWizzApi/Endpoint/Customers.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailwizz-newsletter-box/mailwizz-newsletter-box.php:22
- > PHP Fatal error
Uncaught Error: Class 'MailWizzApi_Base' not found in wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/MailWizzApi/Endpoint/CampaignBounces.php:19
- > PHP Fatal error
Uncaught Error: Class 'MailWizzApi_Base' not found in wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/MailWizzApi/Config.php:20
- > PHP Fatal error
Uncaught Error: Class 'MailWizzApi_Base' not found in wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/MailWizzApi/Endpoint/Campaigns.php:19
- > PHP Fatal error
Uncaught Error: Class 'MailWizzApi_Base' not found in wp-content/plugins/mailwizz-newsletter-box/vendor/twisted1919/mailwizz-php-sdk/MailWizzApi/Endpoint/ListSegments.php:19
- > 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)
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: email marketing, email, newsletter, newsletter box
mailwizz-newsletter-box/mailwizz-newsletter-box.php 92% from 13 tests
The main file in "MailWizz Newsletter Box" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 434 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,574 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 829 | 2,550 | 3,275 |
JavaScript | 2 | 20 | 0 | 74 |
HTML | 2 | 2 | 0 | 73 |
CSS | 1 | 10 | 0 | 69 |
JSON | 3 | 0 | 0 | 69 |
Markdown | 2 | 6 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 16 | 8.56% |
▷ Public methods | 174 | 93.05% |
▷ Protected methods | 12 | 6.42% |
▷ Private methods | 1 | 0.53% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 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.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ss-2.PNG | 11.72KB | 6.73KB | ▼ 42.57% |
ss-1.PNG | 23.66KB | 13.32KB | ▼ 43.69% |
ss-3.PNG | 31.68KB | 11.90KB | ▼ 62.44% |