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.00MB] [CPU: ▲1.38ms] Passed 4 tests
Server-side resources used by WooCommerce MailChimp Newsletter Discount
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.64 ▲3.86 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.09 ▲0.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.86 ▼0.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.60 ▲1.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.70 ▲3.79 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
wcmnd_activated_on |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce MailChimp Newsletter Discount
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.10 | 1.66 ▼0.45 | 43.86 ▼1.42 |
Dashboard /wp-admin | 2,209 ▲18 | 5.86 ▲0.96 | 108.57 ▲5.79 | 41.97 ▼1.92 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▲0.02 | 35.22 ▼5.51 | 32.06 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,533 ▲16 | 23.04 ▲5.49 | 676.94 ▲41.37 | 61.41 ▲2.92 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.20 ▼0.00 | 99.86 ▼0.99 | 44.85 ▲1.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- wcmnd_activated_on
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | 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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-mailchimp-newsletter-discount/woocommerce-mailchimp-newsletter-discount.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-mailchimp-newsletter-discount/inc/options.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-mailchimp-newsletter-discount/admin/plugin-activation-error.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-mailchimp-newsletter-discount/inc/includes/class-options-sanitization.php:12
- > 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 errors were detected
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
woo-mailchimp-newsletter-discount/woocommerce-mailchimp-newsletter-discount.php 77% from 13 tests
Analyzing the main PHP file in "WooCommerce MailChimp Newsletter Discount" version 0.3.5
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: The domain path folder does not exist ("/languages/")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-mailchimp-newsletter-discount.php" instead of "woocommerce-mailchimp-newsletter-discount.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin9,705 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 194 | 43 | 6,790 |
PHP | 13 | 650 | 627 | 2,329 |
CSS | 2 | 20 | 6 | 586 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 5.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 5 | 9.43% |
▷ Public methods | 47 | 88.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 11.32% |
Functions | 47 | |
▷ Named functions | 45 | 95.74% |
▷ Anonymous functions | 2 | 4.26% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/extra-fields-addon.png | 9.14KB | 3.71KB | ▼ 59.35% |
inc/images/upgrade-to-pro.png | 7.99KB | 3.45KB | ▼ 56.79% |