Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.43ms] Passed 4 tests
Analyzing server-side resources used by Mail Debug for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 33.80 ▼9.69 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.28 ▲3.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.13 ▲0.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.72 ▼9.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.13 ▲1.09 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Mail Debug for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.22 ▼1.08 | 1.66 ▼0.40 | 39.18 ▼4.99 |
Dashboard /wp-admin | 2,209 ▲24 | 4.86 ▼0.23 | 110.84 ▲0.69 | 42.33 ▼1.80 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.06 ▲0.05 | 38.69 ▼0.76 | 35.22 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 23.35 ▲5.17 | 664.60 ▲20.47 | 64.26 ▲2.30 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.27 ▲0.09 | 96.90 ▼4.32 | 41.75 ▼2.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mail-debug-for-woocommerce/views/settings-end.php
- > /wp-content/plugins/mail-debug-for-woocommerce/views/preview-box.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mail-debug-for-woocommerce/init.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/mail-debug-for-woocommerce/views/settings-start.php:2
- > PHP Warning
Use of undefined constant MDWC_VIEWS_PATH - assumed 'MDWC_VIEWS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mail-debug-for-woocommerce/views/settings.php on line 4
- > PHP Warning
require(MDWC_VIEWS_PATHsettings-start.php): failed to open stream: No such file or directory in wp-content/plugins/mail-debug-for-woocommerce/views/settings.php on line 4
- > PHP Fatal error
require(): Failed opening required 'MDWC_VIEWS_PATHsettings-start.php' (include_path='.:/usr/share/php') in wp-content/plugins/mail-debug-for-woocommerce/views/settings.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: woocommerce email, debug, mail debug, email, woocommerce debug
mail-debug-for-woocommerce/init.php 85% from 13 tests
The main PHP file in "Mail Debug for WooCommerce" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mail-debug-for-woocommerce.php" instead of "init.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 plugin1,020 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 145 | 86 | 702 |
CSS | 1 | 42 | 6 | 205 |
JavaScript | 4 | 16 | 2 | 113 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 4 | 10.00% |
▷ Public methods | 34 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin