Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.13ms] Passed 4 tests
Server-side resources used by Advanced Emailing for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.35 ▼2.23 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.33 ▼0.81 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 48.20 ▼3.49 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.45 ▼9.99 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.47 ▲3.13 |
Server storage [IO: ▲23.81MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 700 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_rnadvanceemailingwc_emails |
wp_rnadvanceemailingwc_emails_trigger |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Emailing for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.71 ▼0.67 | 1.92 ▲0.04 | 39.38 ▼1.09 |
Dashboard /wp-admin | 2,206 ▲21 | 4.87 ▼1.04 | 102.73 ▼1.09 | 45.57 ▼0.07 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.04 | 36.79 ▼2.90 | 34.57 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 23.24 ▲4.96 | 652.60 ▲17.92 | 60.06 ▲5.34 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.01 | 101.31 ▼1.33 | 46.84 ▲1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_rnadvanceemailingwc_emails
- wp_rnadvanceemailingwc_emails_trigger
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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)
Good news, no errors were detected
SRP 50% 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
- 366× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Module\\ModuleInterface' not found in wp-content/plugins/advanced-emailing-for-woocommerce/vendor/bacon/bacon-qr-code/src/Renderer/Module/SquareModule.php:13
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/advanced-emailing-for-woocommerce/vendor/twig/twig/src/TokenParser/ApplyTokenParser.php:29
- > PHP Fatal error
Uncaught Error: Class 'rnadvanceemailingwc\\Fields\\Core\\FieldBase' not found in wp-content/plugins/advanced-emailing-for-woocommerce/Fields/SubTotalFields/SubTotalField.php:7
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\IncludeNode' not found in wp-content/plugins/advanced-emailing-for-woocommerce/vendor/twig/twig/src/Node/EmbedNode.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/advanced-emailing-for-woocommerce/vendor/twig/twig/src/Node/ForNode.php:24
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Path\\OperationInterface' not found in wp-content/plugins/advanced-emailing-for-woocommerce/vendor/bacon/bacon-qr-code/src/Renderer/Path/Curve.php:6
- > PHP Fatal error
Uncaught Error: Class 'rnadvanceemailingwc\\Managers\\ConditionManager\\Comparators\\Core\\ComparatorBase' not found in wp-content/plugins/advanced-emailing-for-woocommerce/Managers/ConditionManager/Comparators/StandardComparator.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/advanced-emailing-for-woocommerce/vendor/twig/twig/src/Node/Expression/Binary/BitwiseOrBinary.php:17
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Eye\\EyeInterface' not found in wp-content/plugins/advanced-emailing-for-woocommerce/vendor/bacon/bacon-qr-code/src/Renderer/Eye/ModuleEye.php:13
- > PHP Fatal error
Uncaught Error: Interface 'rnadvanceemailingwc\\Utilities\\TreeSeeker\\INode' not found in wp-content/plugins/advanced-emailing-for-woocommerce/TwigManager/TextRenderer/Core/TextRendererBase.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce, emailing, woocommerce emails
advanced-emailing-for-woocommerce/rnadvancedemailingwc.php 77% from 13 tests
The main file in "Advanced Emailing for WooCommerce" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-emailing-for-woocommerce.php" instead of "rnadvancedemailingwc.php")
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin70,658 lines of code in 667 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 561 | 7,629 | 8,207 | 33,470 |
JavaScript | 38 | 7,558 | 989 | 29,995 |
CSS | 29 | 888 | 115 | 5,704 |
JSON | 17 | 0 | 0 | 1,134 |
Markdown | 9 | 65 | 0 | 256 |
Twig | 10 | 5 | 9 | 72 |
XML | 1 | 1 | 0 | 16 |
reStructuredText | 1 | 8 | 5 | 10 |
YAML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 117 | |
Interfaces | 46 | |
Traits | 0 | |
Classes | 501 | |
▷ Abstract classes | 27 | 5.39% |
▷ Concrete classes | 474 | 94.61% |
▷ Final classes | 164 | 34.60% |
Methods | 2,469 | |
▷ Static methods | 229 | 9.28% |
▷ Public methods | 2,178 | 88.21% |
▷ Protected methods | 85 | 3.44% |
▷ Private methods | 206 | 8.34% |
Functions | 208 | |
▷ Named functions | 163 | 78.37% |
▷ Anonymous functions | 45 | 21.63% |
Constants | 182 | |
▷ Global constants | 7 | 3.85% |
▷ Class constants | 175 | 96.15% |
▷ Public constants | 90 | 51.43% |
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
8 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Templates/Locals/ContactForm/Image.png | 3.14KB | 1.71KB | ▼ 45.76% |
Templates/Locals/Blank/Image.png | 6.98KB | 3.43KB | ▼ 50.84% |
images/temporalImage.png | 15.96KB | 5.61KB | ▼ 64.86% |
vendor/bacon/bacon-qr-code/test/Integration/__snapshots__/files/ImagickRenderingTest__testIssue79__1.png | 8.17KB | 4.75KB | ▼ 41.88% |
images/fieldimages/paragraph.png | 0.15KB | 0.11KB | ▼ 25.49% |