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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼140.92ms] Passed 4 tests
Server-side resources used by CC & BCC for Woocommerce Order Emails
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 34.03 ▼0.72 |
Dashboard /wp-admin | 3.08 ▲0.03 | 43.50 ▲1.38 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 45.28 ▲2.13 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 88.51 ▼561.73 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 32.18 ▼2.59 |
CC & BCC /wp-admin/admin.php?page=dc-wech-menu-page | 3.08 | 26.00 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 19 new options
New WordPress options |
---|
dc_wech_booking_confirmed |
dc_wech_refunded_order |
dc_wech_completed_order |
dc_wech_admin_booking_cancelled |
dc_wech_new_order |
dc_wech_email_list_bcc |
dc_wech_customer_new_account |
dc_wech_activate_bookings |
dc_wech_booking_reminder |
dc_wech_activate |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CC & BCC for Woocommerce Order Emails
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,719 ▲123 | 15.89 ▲0.37 | 9.38 ▲1.39 | 47.53 ▼6.30 |
Dashboard /wp-admin | 2,989 ▲58 | 5.87 ▼0.05 | 137.66 ▼8.58 | 101.38 ▼16.95 |
Posts /wp-admin/edit.php | 2,756 ▲20 | 2.70 ▲0.03 | 68.33 ▲1.71 | 96.74 ▲9.14 |
Add New Post /wp-admin/post-new.php | 1,680 ▼3 | 18.81 ▲0.09 | 354.06 ▼5.57 | 110.13 ▼1.07 |
Media Library /wp-admin/upload.php | 1,824 ▲14 | 5.03 ▲0.01 | 144.54 ▼14.84 | 124.21 ▲8.08 |
CC & BCC /wp-admin/admin.php?page=dc-wech-menu-page | 1,422 | 2.09 | 61.81 | 92.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cc-bcc-for-woocommerce-order-emails/public/partials/dc-cc-bcc-woe-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cc-bcc-for-woocommerce-order-emails/admin/partials/dc-cc-bcc-woe-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
cc-bcc-for-woocommerce-order-emails/dc-cc-bcc-woe.php 85% from 13 tests
This is the main PHP file of "CC & BCC for Woocommerce Order Emails" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cc-bcc-for-woocommerce-order-emails.php" instead of "dc-cc-bcc-woe.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected585 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 140 | 556 | 495 |
PO File | 1 | 28 | 31 | 84 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin