Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼282.40ms] Passed 4 tests
This is a short check of server-side resources used by Woo Custom Emails
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 58.70 ▲7.55 |
Dashboard /wp-admin | 3.52 ▲0.11 | 36.70 ▲3.58 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 44.16 ▲6.46 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 94.12 ▼1,143.33 |
Media Library /wp-admin/upload.php | 3.40 ▲0.10 | 31.77 ▲3.68 |
Custom Emails /wp-admin/admin.php?page=wcemails-settings | 3.34 | 46.37 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woo Custom Emails
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲29 | 15.52 ▼0.17 | 5.80 ▼0.04 | 2.14 ▼0.48 |
Dashboard /wp-admin | 2,895 ▲42 | 6.03 ▼0.20 | 120.74 ▼7.58 | 155.97 ▼4.94 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.00 | 71.96 ▼22.30 | 157.86 ▲14.37 |
Add New Post /wp-admin/post-new.php | 1,661 ▼37 | 16.00 ▼5.89 | 417.08 ▼15.09 | 163.95 ▼0.36 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.54 ▲0.05 | 146.13 ▲0.69 | 193.38 ▲3.40 |
Custom Emails /wp-admin/admin.php?page=wcemails-settings | 804 | 1.97 | 36.80 | 71.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-custom-emails/admin/class-wcemails-list.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/woo-custom-emails/admin/class-wcemails-list.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-custom-emails/admin/class-wcemails-list.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: custom email template, email, woocommerce custom emails, woo custom emails, woocommerce...
woo-custom-emails/woo-custom-emails.php Passed 13 tests
The primary PHP file in "Woo Custom Emails" version 2.2 is used by WordPress to initiate all plugin functionality
48 characters long description:
A woocommerce add on to support customize emails
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected886 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 195 | 209 | 798 |
Markdown | 1 | 36 | 0 | 77 |
JavaScript | 2 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 47 | 94.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin