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
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.22ms] Passed 4 tests
Server-side resources used by MailUp for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.11 ▼1.33 |
Dashboard /wp-admin | 3.43 ▲0.13 | 48.17 ▼8.00 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 47.60 ▲0.39 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 85.67 ▼7.93 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.11 ▲1.00 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by MailUp for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.60 ▼0.75 | 9.75 ▲8.24 | 40.86 ▲0.77 |
Dashboard /wp-admin | 2,212 ▲31 | 5.59 ▲0.01 | 80.14 ▼20.76 | 37.29 ▼2.99 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.01 ▲0.05 | 34.14 ▼0.85 | 33.38 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 18.14 ▼4.96 | 645.40 ▼18.81 | 57.95 ▲6.44 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.15 ▼0.07 | 95.93 ▼0.27 | 44.73 ▲0.50 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
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
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-mailup/admin/ilghera-notice/class-ilghera-notice.php:214
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-mailup/admin/mufwc-admin-subscription-template.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wc-mailup/includes/mufwc-meta-box-template.php:10
- > PHP Fatal error
Uncaught Error: Class 'Ilghera_Notice' not found in wp-content/plugins/wc-mailup/admin/ilghera-notice/extension.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-mailup/includes/class-mufwc-button.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-mailup/includes/class-mufwc-edit-post.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-mailup/mailup-for-wc.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-mailup/includes/class-mufwc-auto-subscription.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-mailup/admin/mufwc-admin-general-template.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-mailup/includes/mufwc-meta-box-product-template.php:13
- > 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 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Options related to the newsletter flag in the WordPress registration form), #2 (Subscription button general options), #3 (Subscription button specific options), #4 (Single WooCommerce product settings)
wc-mailup/mailup-for-wc.php 92% from 13 tests
The main PHP script in "MailUp for WooCommerce" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-mailup.php" instead of "mailup-for-wc.php")
Code Analysis Passed 3 tests
File types Passed 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
There were no executable files found in this plugin12,420 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 137 | 55 | 7,852 |
JavaScript | 8 | 386 | 67 | 2,813 |
PHP | 20 | 510 | 664 | 1,332 |
JSON | 4 | 0 | 0 | 186 |
PO File | 1 | 72 | 96 | 172 |
Markdown | 2 | 22 | 0 | 53 |
YAML | 1 | 3 | 4 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 18.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 20 | 27.78% |
▷ Public methods | 68 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.56% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/tzCheckbox/img/line_bg.png | 0.26KB | 0.23KB | ▼ 9.16% |
admin/ilghera-notice/images/ilGhera-icon-40px.png | 10.48KB | 1.70KB | ▼ 83.74% |
vendor/harvesthq/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
js/tzCheckbox/img/page_bg.png | 0.19KB | 0.26KB | 0.00% |
js/tzCheckbox/jquery.tzCheckbox/background-small.png | 3.88KB | 2.22KB | ▼ 42.84% |