Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/newsletter-composer/plugin.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; Newsletter has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼55.96ms] Passed 4 tests
A check of server-side resources used by Newsletter Composer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 9.17 ▼30.43 |
Dashboard /wp-admin | 2.16 ▼1.15 | 5.64 ▼43.35 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 7.49 ▼43.64 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 7.29 ▼106.40 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.02 ▼29.92 |
Newsletter /wp-admin/admin.php?page=newsletter-composer/emails.php | 2.16 | 6.39 |
New /wp-admin/admin.php?page=newsletter-composer/emails-edit.php | 2.16 | 7.35 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_newsletter_composer |
New WordPress options |
---|
newsletter_main |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Newsletter Composer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.05 ▼0.24 | 2.14 ▲0.43 | 48.13 ▲8.83 |
Dashboard /wp-admin | 2,222 ▲42 | 5.63 ▼0.04 | 95.23 ▲8.48 | 42.56 ▲6.29 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.12 ▲0.11 | 35.64 ▼3.11 | 32.32 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.67 ▲0.39 | 623.82 ▼49.33 | 52.94 ▲0.79 |
Media Library /wp-admin/upload.php | 1,427 ▲33 | 4.25 ▲0.04 | 99.15 ▼2.52 | 51.29 ▲6.28 |
Newsletter /wp-admin/admin.php?page=newsletter-composer/emails.php | 830 | 2.05 | 24.88 | 48.00 |
New /wp-admin/admin.php?page=newsletter-composer/emails-edit.php | 1,328 | 3.87 | 66.37 | 48.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/newsletter-composer/plugin.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; Newsletter has a deprecated constructor
- Zombie tables were found after uninstall: 1 table
- wp_newsletter_composer
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- newsletter_main
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Deprecated in wp-content/plugins/newsletter-composer/plugin.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; Newsletter has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/plugin.php+177
Undefined index: na
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/commons.php+10
Undefined index: act
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Deprecated in wp-content/plugins/newsletter-composer/commons.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; NewsletterControls has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/commons.php+47
Undefined index: options
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/emails-edit.php+27
Undefined variable: subject
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/emails-edit.php+155
Undefined variable: tinymce_language
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/emails-edit.php+448
Undefined index: id
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/emails-edit.php+188
Undefined variable: themes
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/emails-edit.php+189
Undefined variable: themes_panel
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/commons.php+72
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Warning in wp-content/plugins/newsletter-composer/commons.php+73
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Warning in wp-content/plugins/newsletter-composer/emails-edit.php+314
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/emails-edit.php+418
Undefined index: example_subject
- > GET request to /wp-admin/admin.php?page=newsletter-composer/emails-edit.php
- > Notice in wp-content/plugins/newsletter-composer/emails-edit.php+438
Undefined index: editor
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function set_limits() on null in wp-content/plugins/newsletter-composer/commons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/newsletter-composer/plugin-menu.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/newsletter-composer/plugin-head.inc.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function set_limits() on null in wp-content/plugins/newsletter-composer/commons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/newsletter-composer/plugin.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/newsletter-composer/emails.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/newsletter-composer/themes/classic-newsletter/theme.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/newsletter-composer/themes/table-newsletter/theme.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/newsletter-composer/themes/sidebar-newsletter/theme.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/newsletter-composer/plugin-activate.inc.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: newsletter maker, bulletin, newsletter, composer, html generator...
newsletter-composer/plugin.php 92% from 13 tests
The principal PHP file in "Newsletter Composer" v. 1.01 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("newsletter-composer.php" instead of "plugin.php")
Code Analysis Passed 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
There were no executable files found in this plugin2,428 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 325 | 124 | 1,644 |
SVG | 2 | 0 | 0 | 328 |
CSS | 8 | 56 | 42 | 271 |
JavaScript | 4 | 0 | 1 | 185 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/table-newsletter/_img/facebook.png | 5.17KB | 1.89KB | ▼ 63.56% |
themes/table-newsletter/_img/twitter.png | 5.30KB | 1.82KB | ▼ 65.57% |
themes/table-newsletter/_img/logo_example.png | 1.18KB | 0.60KB | ▼ 49.21% |
themes/classic-newsletter/_img/logo_example.png | 1.18KB | 0.60KB | ▼ 49.21% |
themes/sidebar-newsletter/_img/logo_example.png | 1.18KB | 0.60KB | ▼ 49.21% |