Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼2.86ms] Passed 4 tests
A check of server-side resources used by SendPulse Email Marketing Newsletter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 41.34 ▼9.14 |
Dashboard /wp-admin | 3.74 ▲0.40 | 55.70 ▼7.52 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 58.98 ▲6.70 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 112.44 ▲2.67 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 39.62 ▲2.57 |
SendPulse Forms /wp-admin/edit.php?post_type=sendpulse_form | 3.71 | 46.23 |
Add Form /wp-admin/post-new.php?post_type=sendpulse_form | 3.70 | 54.75 |
Settings /wp-admin/edit.php?post_type=sendpulse_form&page=send_pulse_settings | 3.64 | 40.25 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
sp_import_setting |
widget_recent-posts |
sp_api_setting |
Browser metrics Passed 4 tests
SendPulse Email Marketing Newsletter: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲228 | 14.69 ▲0.54 | 1.64 ▼0.26 | 41.60 ▲0.49 |
Dashboard /wp-admin | 2,392 ▲215 | 6.39 ▲0.80 | 122.60 ▲31.13 | 40.62 ▼2.42 |
Posts /wp-admin/edit.php | 2,322 ▲222 | 3.53 ▲1.56 | 57.86 ▲21.31 | 34.80 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,584 ▲47 | 18.42 ▲0.10 | 598.74 ▼24.34 | 41.75 ▼25.54 |
Media Library /wp-admin/upload.php | 1,459 ▲56 | 4.38 ▲0.20 | 87.46 ▼8.30 | 44.32 ▼0.63 |
SendPulse Forms /wp-admin/edit.php?post_type=sendpulse_form | 1,288 | 3.74 | 44.19 | 26.98 |
Add Form /wp-admin/post-new.php?post_type=sendpulse_form | 1,380 | 3.65 | 69.69 | 32.94 |
Settings /wp-admin/edit.php?post_type=sendpulse_form&page=send_pulse_settings | 1,131 | 3.47 | 49.02 | 28.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- sp_api_setting
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- sp_import_setting
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/sendpulse-email-marketing-newsletter/custom-error-page.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendpulse-email-marketing-newsletter/inc/class-senpulse-newsletter-forms.php:15
- > PHP Fatal error
Uncaught Exception: Empty ID or SECRET in wp-content/plugins/sendpulse-email-marketing-newsletter/vendor/sendpulse/sendpulse-rest-api-php/api/sendpulse.php:39
- > PHP Fatal error
Uncaught Error: Interface 'TokenStorageInterface' not found in wp-content/plugins/sendpulse-email-marketing-newsletter/vendor/sendpulse/sendpulse-rest-api-php/api/Storage/MemcacheStorage.php:7
- > PHP Fatal error
Uncaught Error: Class 'WeDevs_Settings_API' not found in wp-content/plugins/sendpulse-email-marketing-newsletter/inc/class-sendpulse-newsletter-settings.php:35
- > PHP Fatal error
Uncaught Error: Class 'Send_Pulse_Newsletter_Settings' not found in wp-content/plugins/sendpulse-email-marketing-newsletter/inc/class-sendpulse-newsletter-users.php:15
- > PHP Fatal error
Uncaught Error: Interface 'TokenStorageInterface' not found in wp-content/plugins/sendpulse-email-marketing-newsletter/vendor/sendpulse/sendpulse-rest-api-php/api/Storage/MemcachedStorage.php:7
- > PHP Fatal error
Uncaught Error: Interface 'TokenStorageInterface' not found in wp-content/plugins/sendpulse-email-marketing-newsletter/vendor/sendpulse/sendpulse-rest-api-php/api/Storage/FileStorage.php:7
- > PHP Fatal error
Uncaught Error: Interface 'TokenStorageInterface' not found in wp-content/plugins/sendpulse-email-marketing-newsletter/vendor/sendpulse/sendpulse-rest-api-php/api/Storage/SessionStorage.php:7
- > PHP Warning
require_once(wp-content/plugins/sendpulse-email-marketing-newsletter/vendor/tareq1988/wordpress-settings-api-class/example/oop-example.php): failed to open stream: No such file or directory in wp-content/plugins/sendpulse-email-marketing-newsletter/vendor/tareq1988/wordpress-settings-api-class/plugin.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendpulse-email-marketing-newsletter/inc/class-sendpulse-newsletter-ajax.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
sendpulse-email-marketing-newsletter/sendpulse-newsletter.php 77% from 13 tests
This is the main PHP file of "SendPulse Email Marketing Newsletter" version 2.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("sendpulse-email-marketing-newsletter.php" instead of "sendpulse-newsletter.php")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin6,596 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 0 | 0 | 3,781 |
PHP | 31 | 780 | 1,601 | 2,366 |
PO File | 1 | 71 | 93 | 226 |
JavaScript | 4 | 24 | 32 | 111 |
Markdown | 3 | 32 | 0 | 79 |
CSS | 2 | 6 | 0 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 235 | |
▷ Static methods | 21 | 8.94% |
▷ Public methods | 225 | 95.74% |
▷ Protected methods | 4 | 1.70% |
▷ Private methods | 6 | 2.55% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.38MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/menu_icon.png | 0.67KB | 0.71KB | 0.00% |
vendor/tareq1988/wordpress-settings-api-class/screenshot-1.png | 389.59KB | 115.93KB | ▼ 70.24% |