Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.49MB] [CPU: ▲14.07ms] Passed 4 tests
A check of server-side resources used by Newspack Newsletters
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.94 ▲2.48 | 59.43 ▲18.31 |
Dashboard /wp-admin | 5.80 ▲2.46 | 65.03 ▲3.88 |
Posts /wp-admin/edit.php | 5.88 ▲2.52 | 71.07 ▲21.00 |
Add New Post /wp-admin/post-new.php | 8.73 ▲2.84 | 102.40 ▲13.57 |
Media Library /wp-admin/upload.php | 5.72 ▲2.49 | 56.43 ▲20.53 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=newspack_nl_cpt | 5.74 | 61.79 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=newspack_nl_cpt | 5.72 | 50.69 |
Advertisers /wp-admin/edit-tags.php?taxonomy=newspack_nl_advertiser&post_type=newspack_nl_cpt | 5.72 | 52.28 |
Settings /wp-admin/edit.php?post_type=newspack_nl_cpt&page=newspack-newsletters-settings-admin | 5.70 | 47.23 |
Ads /wp-admin/edit.php?post_type=newspack_nl_ads_cpt | 5.80 | 57.54 |
Tracking /wp-admin/edit.php?post_type=newspack_nl_cpt&page=newspack-newsletters-tracking | 5.70 | 46.48 |
All Newsletters /wp-admin/edit.php?post_type=newspack_nl_cpt | 5.80 | 53.00 |
Add New /wp-admin/post-new.php?post_type=newspack_nl_cpt | 8.50 | 99.91 |
Server storage [IO: ▲6.95MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 486 new files
Database: no new tables, 12 new options
New WordPress options |
---|
newspack_newsletters_has_flushed_rewrite_rules |
widget_recent-comments |
widget_recent-posts |
newspack_newsletters_tracking_click_has_rewrite_rule |
newspack_newsletters_tracking_pixel_has_rewrite_rule |
can_compress_scripts |
theysaidso_admin_options |
newspack_newsletters_color_palette |
db_upgraded |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Newspack Newsletters
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲145 | 14.31 ▼0.41 | 1.47 ▼0.46 | 39.03 ▼6.73 |
Dashboard /wp-admin | 2,284 ▲104 | 5.65 ▼0.04 | 97.67 ▼0.51 | 44.47 ▼3.01 |
Posts /wp-admin/edit.php | 2,191 ▲91 | 2.02 ▲0.08 | 42.66 ▲2.72 | 36.90 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,714 ▲182 | 16.19 ▼7.00 | 630.37 ▼45.95 | 61.68 ▲10.39 |
Media Library /wp-admin/upload.php | 1,489 ▲95 | 4.25 ▲0.05 | 98.75 ▼1.28 | 41.88 ▲0.15 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=newspack_nl_cpt | 1,541 | 2.32 | 33.03 | 35.39 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=newspack_nl_cpt | 1,405 | 2.31 | 29.61 | 31.97 |
Advertisers /wp-admin/edit-tags.php?taxonomy=newspack_nl_advertiser&post_type=newspack_nl_cpt | 1,363 | 2.31 | 26.87 | 31.20 |
Settings /wp-admin/edit.php?post_type=newspack_nl_cpt&page=newspack-newsletters-settings-admin | 1,005 | 1.90 | 28.40 | 25.16 |
Ads /wp-admin/edit.php?post_type=newspack_nl_ads_cpt | 1,327 | 2.14 | 37.92 | 34.26 |
Tracking /wp-admin/edit.php?post_type=newspack_nl_cpt&page=newspack-newsletters-tracking | 913 | 1.77 | 27.68 | 24.86 |
All Newsletters /wp-admin/edit.php?post_type=newspack_nl_cpt | 1,292 | 2.18 | 35.96 | 32.76 |
Add New /wp-admin/post-new.php?post_type=newspack_nl_cpt | 6,772 | 22.92 | 1,104.87 | 44.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 13 options in the database
- category_children
- db_upgraded
- theysaidso_admin_options
- newspack_newsletters_tracking_click_has_rewrite_rule
- newspack_newsletters_tracking_pixel_log_file
- widget_recent-comments
- _newspack_newsletters_lists_migrated
- widget_recent-posts
- newspack_newsletters_has_flushed_rewrite_rules
- newspack_newsletters_tracking_pixel_has_rewrite_rule
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 96× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/subscriber/get_history.php
- > /wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/authentication/auth_with_oauth.php
- > /wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/campaign/get_opens.php
- > /wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/campaign/send_preview.php
- > /wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/client/get_templates.php
- > /wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/client/suppress.php
- > /wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/transactional/smart_details.php
- > /wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/segment/add_rule.php
- > /wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/campaign/get_unsubscribes.php
- > /wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/client/set_payg_billing.php
- 58× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/csrest_events_test.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function Newspack_Newsletters\\Tracking\\add_action() in wp-content/plugins/newspack-newsletters/includes/tracking/class-data-events.php:18
- > PHP Notice
Undefined variable: title in wp-content/plugins/newspack-newsletters/includes/email-template.mjml.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/csrest_lists_test.php on line 3
- > PHP Warning
require_once(wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/csrest_campaigns_test.php on line 3
- > PHP Warning
require_once(wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/csrest_people_test.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newspack-newsletters/includes/tracking/class-click.php:20
- > PHP Notice
Trying to get property 'DuplicateEmailsInSubmission' of non-object in wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/samples/subscriber/import.php on line 70
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/csrest_template_test.php on line 3
- > PHP Warning
require_once(wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/newspack-newsletters/vendor/campaignmonitor/createsend-php/tests/csrest_journey_emails_test.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=newspack_nl_cpt
- > Javascript (severe) in unknown
/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.17 11:21594 Uncaught TypeError: Cannot set properties of undefined (setting 'mejs')
- > GET request to /wp-admin/post-new.php?post_type=newspack_nl_cpt
- > Javascript (severe) in unknown
/wp-includes/js/mediaelement/mediaelement-migrate.min.js?ver=6.3.1 0:13 Uncaught ReferenceError: mejs is not defined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=newspack_nl_cpt
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"newspack-newsletters/ad\" is registered with an invalid category \"newspack\".
- > GET request to /wp-admin/post-new.php?post_type=newspack_nl_cpt
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: n(...).not(...).filter(...).mediaelementplayer is not a function" "TypeError: n(...).not(...).filter(...).mediaelementplayer is not a function\n at HTMLDocument.initialize (/wp-includes/js/mediaelement/wp-mediaelement.min.js?ver=6.3.1:1:1035)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=newspack_nl_cpt
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: n(...).not(...).filter(...).mediaelementplayer is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: mailchimp, constant contact, wordpresscom, newsletters, newspack...
newspack-newsletters/newspack-newsletters.php 92% from 13 tests
The entry point to "Newspack Newsletters" version 2.6.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin22,585 lines of code in 423 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 203 | 3,430 | 8,939 | 19,269 |
Markdown | 4 | 1,171 | 0 | 1,536 |
JSON | 64 | 0 | 0 | 1,482 |
JavaScript | 131 | 12 | 156 | 157 |
CSS | 18 | 16 | 10 | 123 |
Bourne Shell | 1 | 4 | 0 | 11 |
Bourne Again Shell | 1 | 2 | 0 | 6 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 217.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 113 | |
▷ Abstract classes | 14 | 12.39% |
▷ Concrete classes | 99 | 87.61% |
▷ Final classes | 19 | 19.19% |
Methods | 1,021 | |
▷ Static methods | 309 | 30.26% |
▷ Public methods | 949 | 92.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 72 | 7.05% |
Functions | 58 | |
▷ Named functions | 15 | 25.86% |
▷ Anonymous functions | 43 | 74.14% |
Constants | 67 | |
▷ Global constants | 38 | 56.72% |
▷ Class constants | 29 | 43.28% |
▷ Public constants | 29 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 compressed PNG files occupy 1.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/black-tumblr.png | 0.42KB | 0.46KB | 0.00% |
assets/white-tiktok.png | 0.77KB | 0.85KB | 0.00% |
assets/black-linkedin.png | 0.49KB | 0.52KB | 0.00% |
assets/white-facebook.png | 0.80KB | 0.88KB | 0.00% |
wporg-assets/banner-772x250.png | 102.09KB | 87.45KB | ▼ 14.34% |