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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.67ms] Passed 4 tests
This is a short check of server-side resources used by Creamailer for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.25 ▼1.23 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.27 ▼4.30 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.62 ▲2.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.90 ▼3.30 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.25 ▲3.69 |
Creamailer WooCommerce /wp-admin/options-general.php?page=creamailer-for-woocommerce | 3.19 | 31.34 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Creamailer for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.22 ▼1.08 | 2.08 ▲0.28 | 44.44 ▲0.51 |
Dashboard /wp-admin | 2,208 ▲20 | 5.86 ▲0.95 | 102.94 ▼13.60 | 40.36 ▼6.09 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.02 ▲0.01 | 35.92 ▼1.05 | 32.27 ▼2.19 |
Add New Post /wp-admin/post-new.php | 1,359 ▼155 | 17.10 ▼0.56 | 556.42 ▼131.15 | 57.93 ▲6.51 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.28 ▲0.05 | 96.53 ▼2.61 | 42.58 ▲0.38 |
Creamailer WooCommerce /wp-admin/options-general.php?page=creamailer-for-woocommerce | 875 | 2.05 | 22.45 | 33.55 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=creamailer-for-woocommerce
- > Notice in wp-content/plugins/creamailer-for-woocommerce/src/wp-creamailer-for-wordpress-plugin.php+275
Trying to access array offset on value of type bool
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/creamailer-for-woocommerce/main.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/creamailer-for-woocommerce/index.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
1 plugin tags: integration
creamailer-for-woocommerce/main.php 92% from 13 tests
"Creamailer for WooCommerce" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("creamailer-for-woocommerce.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin564 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 44 | 61 | 409 |
PO File | 1 | 24 | 30 | 65 |
CSS | 1 | 16 | 0 | 64 |
JavaScript | 1 | 7 | 1 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 1 | 3.70% |
▷ Private methods | 5 | 18.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 31.44KB | 10.78KB | ▼ 65.70% |