Benchmarks
Plugin footprint 48% 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: ▲1.24MB] [CPU: ▲10.43ms] Passed 4 tests
This is a short check of server-side resources used by SendPress Newsletters
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.73 ▲1.27 | 52.30 ▲12.39 |
Dashboard /wp-admin | 4.55 ▲1.24 | 56.38 ▲6.59 |
Posts /wp-admin/edit.php | 4.62 ▲1.26 | 66.11 ▲10.72 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.22 | 110.09 ▲12.00 |
Media Library /wp-admin/upload.php | 4.45 ▲1.22 | 50.24 ▲14.31 |
Overview /wp-admin/admin.php?page=sp-overview | 5.47 | 56.22 |
Help /wp-admin/admin.php?page=sp-help | 5.22 | 417.51 |
Queue /wp-admin/admin.php?page=sp-queue | 5.28 | 57.40 |
Reports /wp-admin/admin.php?page=sp-reports | 4.76 | 47.44 |
Email Templates /wp-admin/customize.php?url=http%3A%2F%2Fwp.com%2F%3Fsendpress_display%3Dtrue%26spemail%3D0&return=http%3A%2F%2Fwp.com%2Fwp-admin%2F&sendpress_display=true&spemail=0 | 9.25 | 178.72 |
Settings /wp-admin/admin.php?page=sp-settings | 4.59 | 55.58 |
Pro /wp-admin/admin.php?page=sp-pro | 4.71 | 48.56 |
Subscribers /wp-admin/admin.php?page=sp-subscribers | 5.51 | 51.07 |
Emails /wp-admin/admin.php?page=sp-emails | 4.72 | 45.34 |
Server storage [IO: ▲13.34MB] [DB: ▲0.04MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 867 new files
Database: 12 new tables, 18 new options
New tables |
---|
wp_sendpress_subscribers_url |
wp_sendpress_subscribers |
wp_sendpress_queue |
wp_sendpress_schedules |
wp_sendpress_subscribers_tracker |
wp_sendpress_url |
wp_sendpress_customfields |
wp_sendpress_subscribers_meta |
wp_sendpress_subscribers_status |
wp_sendpress_list_subscribers |
... |
New WordPress options |
---|
sendpress_base_settings |
sendpress_sender_settings |
widget_recent-comments |
widget_theysaidso_widget |
wp_sendpress_url_db_version |
wp_sendpress_subscribers_url_db_version |
wp_sendpress_subscribers_tracker_db_version |
wp_sendpress_customfields_db_version |
can_compress_scripts |
widget_sendpress-forms-widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for SendPress Newsletters
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲194 | 13.43 ▼1.10 | 8.23 ▲6.61 | 39.63 ▼1.29 |
Dashboard /wp-admin | 2,250 ▲73 | 5.60 ▼0.07 | 91.75 ▲4.64 | 41.42 ▲1.22 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 1.95 ▼0.08 | 39.45 ▲4.96 | 37.30 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.32 ▼0.38 | 608.94 ▼67.07 | 52.97 ▼9.68 |
Media Library /wp-admin/upload.php | 1,458 ▲61 | 4.17 ▼0.05 | 93.51 ▼6.37 | 41.72 ▼3.15 |
Overview /wp-admin/admin.php?page=sp-overview | 1,074 | 2.50 | 47.63 | 46.28 |
Help /wp-admin/admin.php?page=sp-help | 1,424 | 5.45 | 71.33 | 82.72 |
Queue /wp-admin/admin.php?page=sp-queue | 1,438 | 2.47 | 40.77 | 45.33 |
Reports /wp-admin/admin.php?page=sp-reports | 1,210 | 2.46 | 37.65 | 38.09 |
Email Templates /wp-admin/customize.php?url=http%3A%2F%2Fwp.com%2F%3Fsendpress_display%3Dtrue%26spemail%3D0&return=http%3A%2F%2Fwp.com%2Fwp-admin%2F&sendpress_display=true&spemail=0 | 7,890 | 22.08 | 559.39 | 110.26 |
Settings /wp-admin/admin.php?page=sp-settings | 2,306 | 3.38 | 47.92 | 52.30 |
Pro /wp-admin/admin.php?page=sp-pro | 1,257 | 2.44 | 43.44 | 44.01 |
Subscribers /wp-admin/admin.php?page=sp-subscribers | 1,262 | 2.45 | 37.16 | 33.16 |
Emails /wp-admin/admin.php?page=sp-emails | 1,268 | 2.46 | 36.84 | 31.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/sendpress/uninstall.php+18
Constant SENDPRESS_VERSION already defined
- The uninstall procedure failed, leaving 12 tables in the database
- wp_sendpress_autoresponders
- wp_sendpress_subscribers
- wp_sendpress_schedules
- wp_sendpress_subscribers_tracker
- wp_sendpress_customfields
- wp_sendpress_subscribers_status
- wp_sendpress_subscribers_url
- wp_sendpress_subscribers_meta
- wp_sendpress_queue
- wp_sendpress_list_subscribers
- ...
- This plugin does not fully uninstall, leaving 18 options in the database
- wp_sendpress_url_db_version
- can_compress_scripts
- wp_sendpress_autoresponders_db_version
- sendpress_sender_settings
- sendpress_options
- sendpress_base_settings
- db_upgraded
- wp_sendpress_subscribers_tracker_db_version
- wp_sendpress_subscribers_url_db_version
- widget_sendpress-forms-widget
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sp-settings
- > Notice in wp-content/plugins/sendpress/classes/class-sendpress-sender-spnl.php+35
Trying to access array offset on value of type bool
SRP 50% 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
Please fix the following items
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/sendpress/classes/class-sendpress-font-customizer.php:3
- > PHP Fatal error
Uncaught Error: Class 'SendPress_DB' not found in wp-content/plugins/sendpress/classes/db/class-sendpress-db-remote-connection.php:3
- > PHP Fatal error
Uncaught Error: Class 'SendPress_DB' not found in wp-content/plugins/sendpress/classes/db/class-sendpress-db-url.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/sendpress/class-sendpress-font-customizer.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/sendpress/tests/test_wordpress_plugin_tests.php:8
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/sendpress/tests/bootstrap.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'SendPress_DB' not found in wp-content/plugins/sendpress/classes/db/class-sendpress-db-suppression.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/sendpress/tests/test_sendpress_data.php:6
- > PHP Fatal error
Uncaught Error: Class 'SendPress_DB' not found in wp-content/plugins/sendpress/classes/db/class-sendpress-db-schedules.php:3
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/sendpress/tests/bootstrap.php on line 9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sp-emails
- > Network (severe)
spnl-api/system-check - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/customize.php?url=http%3A%2F%2Fwp.com%2F%3Fsendpress_display%3Dtrue%26spemail%3D0&return=http%3A%2F%2Fwp.com%2Fwp-admin%2F&sendpress_display=true&spemail=0
- > Security (warning) in unknown
/?sendpress_display=true&spemail=0&customize_changeset_uuid=7690c7a3-fcf3-495d-a213-49c5b7e33ee5&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
sendpress/sendpress.php Passed 13 tests
The main PHP script in "SendPress Newsletters" version 1.22.3.31 is automatically included on every request by WordPress
41 characters long description:
Easy to manage Newsletters for WordPress.
Code Analysis 5% from 3 tests
File types 0% from 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
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .ls - LightWave LScript File in LightWave
- ☣ wp-content/plugins/sendpress/codemirror/mode/livescript/livescript.ls
- .ls - LightWave LScript File in LightWave
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 210 | 7,141 | 4,220 | 43,114 |
CSS | 66 | 1,766 | 6,976 | 30,768 |
PHP | 234 | 8,366 | 8,563 | 27,770 |
PO File | 15 | 10,005 | 16,829 | 22,395 |
HTML | 136 | 2,794 | 78 | 17,460 |
Markdown | 3 | 184 | 0 | 630 |
SVG | 2 | 1 | 1 | 374 |
Bourne Shell | 2 | 24 | 6 | 99 |
JSON | 3 | 0 | 0 | 61 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 235.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 225 | |
▷ Abstract classes | 4 | 1.78% |
▷ Concrete classes | 221 | 98.22% |
▷ Final classes | 0 | 0.00% |
Methods | 1,467 | |
▷ Static methods | 493 | 33.61% |
▷ Public methods | 1,422 | 96.93% |
▷ Protected methods | 1 | 0.07% |
▷ Private methods | 44 | 3.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 58 | |
▷ Global constants | 29 | 50.00% |
▷ Class constants | 29 | 50.00% |
▷ Public constants | 29 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
139 PNG files occupy 4.22MB with 2.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
img/32px/Delicious.png | 1.32KB | 0.57KB | ▼ 56.94% |
img/icons.png | 290.19KB | 78.49KB | ▼ 72.95% |
img/32px/Flickr.png | 1.91KB | 0.92KB | ▼ 51.59% |
img/16px/Google+.png | 1.47KB | 0.51KB | ▼ 65.05% |