Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/triangle-email-template/src/Plugin/Helper/Directory.php+69
mkdir(): File exists
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.31ms] Passed 4 tests
A check of server-side resources used by Triangle - Email Template Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.54 ▼1.50 |
Dashboard /wp-admin | 3.48 ▲0.17 | 48.62 ▲0.58 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 49.61 ▲0.24 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 94.23 ▼12.56 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 40.48 ▲8.57 |
Contact /wp-admin/admin.php?page=triangle | 3.38 | 53.01 |
Template /wp-admin/edit.php?post_type=emailtemplate | 3.51 | 40.38 |
Setting /wp-admin/admin.php?page=triangle-setting | 3.42 | 34.90 |
Server storage [IO: ▲6.35MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 174 new files
Database: no new tables, 10 new options
New WordPress options |
---|
triangle_animation_content |
widget_recent-comments |
db_upgraded |
triangle_animation |
widget_recent-posts |
theysaidso_admin_options |
triangle_animation_tab |
triangle_builder_inliner |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Triangle - Email Template Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 14.80 ▲0.06 | 1.65 ▼0.25 | 39.78 ▲0.14 |
Dashboard /wp-admin | 2,236 ▲51 | 4.88 ▲0.03 | 101.02 ▼2.22 | 38.53 ▼2.85 |
Posts /wp-admin/edit.php | 2,119 ▲27 | 2.01 ▼0.05 | 38.99 ▼2.41 | 35.64 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,552 ▲10 | 18.21 ▲0.05 | 670.79 ▲65.20 | 52.90 ▼8.68 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.17 ▼0.01 | 107.20 ▲7.34 | 46.42 ▲3.31 |
Contact /wp-admin/admin.php?page=triangle | 1,170 | 3.69 | 87.67 | 34.24 |
Template /wp-admin/edit.php?post_type=emailtemplate | 1,718 | 2.33 | 31.80 | 26.58 |
Setting /wp-admin/admin.php?page=triangle-setting | 2,388 | 2.56 | 40.93 | 36.48 |
Uninstaller [IO: ▲0.59MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- triangle_builder_inliner
- db_upgraded
- widget_theysaidso_widget
- triangle_animation_tab
- theysaidso_admin_options
- widget_recent-comments
- triangle_animation
- triangle_animation_content
- can_compress_scripts
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/triangle-email-template/src/View/Element/redirect.php
- > /wp-content/plugins/triangle-email-template/src/View/EmailTemplate/element/row-setting.php
- > /wp-content/plugins/triangle-email-template/src/View/EmailTemplate/email-content.php
- > /wp-content/plugins/triangle-email-template/src/View/EmailTemplate/backend/customizer.php
- > /wp-content/plugins/triangle-email-template/src/View/Backend/script.php
- > /wp-content/plugins/triangle-email-template/src/View/EmailTemplate/edit-builder.php
- > /wp-content/plugins/triangle-email-template/src/View/Element/loading-field.php
- > /wp-content/plugins/triangle-email-template/src/View/EmailTemplate/backend/customizer-script.php
- > /wp-content/plugins/triangle-email-template/src/View/Element/loading.php
- > /wp-content/plugins/triangle-email-template/src/View/Element/option_animations.php
- 236× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/triangle-email-template/src/View/Element/option_animations.php on line 70
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/triangle-email-template/src/View/Element/option_animations.php on line 40
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/triangle-email-template/src/View/Element/option_animations.php on line 22
- > PHP Notice
Trying to get property 'css' of non-object in wp-content/plugins/triangle-email-template/src/View/EmailTemplate/email-content.php on line 21
- > PHP Notice
unserialize(): Error at offset 0 of 13 bytes in wp-content/plugins/triangle-email-template/src/View/Element/loading.php on line 5
- > PHP Notice
Trying to get property 'width' of non-object in wp-content/plugins/triangle-email-template/src/View/EmailTemplate/backend/customizer.php on line 20
- > PHP Notice
Undefined variable: args in wp-content/plugins/triangle-email-template/src/View/Element/option_animations.php on line 28
- > PHP Notice
Undefined variable: args in wp-content/plugins/triangle-email-template/src/View/Element/option_animations.php on line 46
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/triangle-email-template/src/View/Element/option_animations.php on line 70
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/triangle-email-template/src/View/Element/option_animations.php on line 82
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in triangle-email-template/assets to your readme.txt
triangle-email-template/triangle-email-template.php Passed 13 tests
"Triangle - Email Template Builder" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
Drag and drop email template editor for wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected31,342 lines of code in 133 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 3,311 | 9,471 | 15,769 |
SVG | 3 | 0 | 12 | 9,299 |
PHP | 79 | 791 | 1,934 | 3,527 |
CSS | 15 | 481 | 56 | 1,493 |
Sass | 12 | 235 | 36 | 1,093 |
HTML | 2 | 7 | 0 | 126 |
JSON | 4 | 0 | 0 | 35 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 4 | 8.00% |
▷ Concrete classes | 46 | 92.00% |
▷ Final classes | 0 | 0.00% |
Methods | 291 | |
▷ Static methods | 3 | 1.03% |
▷ Public methods | 284 | 97.59% |
▷ Protected methods | 1 | 0.34% |
▷ Private methods | 6 | 2.06% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/demo/fashion/images/006-instagram-logo.png | 7.29KB | 5.00KB | ▼ 31.43% |
assets/demo/fashion/images/004-twitter-logo.png | 7.34KB | 3.82KB | ▼ 48.00% |
assets/demo/fashion/images/005-facebook.png | 2.27KB | 1.08KB | ▼ 52.43% |
assets/demo/e-verify/images/email.png | 9.91KB | 10.93KB | 0.00% |