Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.36ms] Passed 4 tests
Server-side resources used by Sendmachine for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.42 ▼5.43 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.93 ▼4.60 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.57 ▼2.03 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 81.37 ▼13.39 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.62 ▲8.65 |
Lists /wp-admin/admin.php?page=sendmachine_lists | 3.21 | 28.48 |
General /wp-admin/admin.php?page=sendmachine_settings | 3.28 | 30.04 |
Email Settings /wp-admin/admin.php?page=sendmachine_email | 3.33 | 29.16 |
Feed /wp-admin/admin.php?page=sendmachine_feed | 3.33 | 36.19 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
sendmachine_application |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Sendmachine for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.24 ▼1.07 | 1.71 ▼0.13 | 42.40 ▼3.88 |
Dashboard /wp-admin | 2,250 ▲62 | 4.85 ▼0.08 | 96.82 ▼20.80 | 85.97 ▲43.60 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.00 ▼0.03 | 34.80 ▼2.54 | 32.21 ▼5.40 |
Add New Post /wp-admin/post-new.php | 1,702 ▲166 | 22.13 ▼1.18 | 788.85 ▲108.84 | 57.76 ▲6.60 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.26 ▲0.03 | 109.71 ▲6.96 | 71.90 ▲24.96 |
Lists /wp-admin/admin.php?page=sendmachine_lists | 1,218 | 2.08 | 25.82 | 35.78 |
General /wp-admin/admin.php?page=sendmachine_settings | 886 | 2.04 | 26.35 | 30.57 |
Email Settings /wp-admin/admin.php?page=sendmachine_email | 1,121 | 2.21 | 24.01 | 33.59 |
Feed /wp-admin/admin.php?page=sendmachine_feed | 2,478 | 10.26 | 177.67 | 151.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=sendmachine_lists
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/really-simple-captcha): failed to open dir: No such file or directory
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 fix the following items
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sendmachine/api/examples/list_examples.php
- > /wp-content/plugins/sendmachine/api/examples/sender_examples.php
- > /wp-content/plugins/sendmachine/api/examples/template_examples.php
- > /wp-content/plugins/sendmachine/api/examples/campaign_examples.php
- > /wp-content/plugins/sendmachine/api/examples/mail_examples.php
- > /wp-content/plugins/sendmachine/api/examples/account_examples.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sendmachine/sendmachine_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sendmachine/views/wp_sm_feed_settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sendmachine/views/wp_sm_list_settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sendmachine/sendmachine_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sendmachine/views/wp_sm_email_settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'Sm_wp' not found in wp-content/plugins/sendmachine/sendmachine_wp_admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sendmachine/views/wp_sm_general_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sendmachine/views/wp_sm_feed_preview.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: subscribers, sendmachine, email marketing, campaigns, sign-up...
sendmachine/sendmachine_wp.php 85% from 13 tests
The main PHP script in "Sendmachine for WordPress" version 1.0.19 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sendmachine.php" instead of "sendmachine_wp.php")
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
Everything looks great! No dangerous files found in this plugin2,997 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 683 | 676 | 2,306 |
PO File | 1 | 148 | 155 | 416 |
CSS | 2 | 2 | 3 | 153 |
JavaScript | 2 | 41 | 0 | 107 |
JSON | 1 | 0 | 0 | 11 |
Markdown | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 17.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 6 | 5.26% |
▷ Public methods | 102 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 10.53% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/images/wp_sendmachine_logo_big.png | 3.21KB | 2.01KB | ▼ 37.37% |
static/images/wp_sendmachine_logo_old.png | 1.60KB | 1.38KB | ▼ 13.74% |
static/images/wp_sendmachine_logo.png | 0.45KB | 0.62KB | 0.00% |