Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.30ms] Passed 4 tests
This is a short check of server-side resources used by Event Espresso - Custom Email Template Shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.22 ▼2.24 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.43 ▼8.57 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.36 ▲0.16 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.58 ▼6.53 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.15 ▲2.68 |
About /wp-admin/admin.php?page=ee_email_shortcode_about | 3.25 | 35.62 |
Add New E-Shortcode /wp-admin/admin.php?page=ee_email_shortcode_add_new | 3.33 | 36.30 |
Custom E-Shortcodes /wp-admin/admin.php?page=ee_email_shortcode | 3.41 | 40.05 |
Server storage [IO: ▲0.33MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Event Espresso - Custom Email Template Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲203 | 13.66 ▼0.74 | 5.28 ▲3.63 | 39.03 ▼6.41 |
Dashboard /wp-admin | 2,250 ▲62 | 4.87 ▲0.00 | 111.14 ▼4.94 | 43.24 ▼2.04 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.05 ▲0.06 | 40.89 ▲6.00 | 35.27 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 23.10 ▲5.67 | 676.19 ▲6.35 | 73.89 ▲20.98 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.23 ▼0.02 | 99.71 ▲2.54 | 44.12 ▼0.42 |
About /wp-admin/admin.php?page=ee_email_shortcode_about | 1,015 | 2.09 | 27.41 | 40.95 |
Add New E-Shortcode /wp-admin/admin.php?page=ee_email_shortcode_add_new | 984 | 1.74 | 24.50 | 29.84 |
Custom E-Shortcodes /wp-admin/admin.php?page=ee_email_shortcode | 1,081 | 1.68 | 30.11 | 26.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=ee_email_shortcode
- > Warning in wp-content/plugins/email-shortcode/admin/partials/custom_e-shortcodes.php+428
count(): Parameter must be an array or an object that implements Countable
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/email-shortcode/admin/partials/ee-email-shortcode-admin-display.php
- > /wp-content/plugins/email-shortcode/public/partials/ee-email-shortcode-public-display.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=ee_email_shortcode_about
- > Network (severe)
wp-content/plugins/ee-email-shortcode/admin/img/add_new_e_shortcode.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=ee_email_shortcode_about
- > Network (severe)
wp-content/plugins/ee-email-shortcode/admin/img/e_shortcodes.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=ee_email_shortcode_about
- > Network (severe)
wp-content/plugins/ee-email-shortcode/admin/img/update_e_shortcode.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=ee_email_shortcode_about
- > Network (severe)
wp-content/plugins/ee-email-shortcode/admin/img/help_1.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=ee_email_shortcode_about
- > Network (severe)
wp-content/plugins/ee-email-shortcode/admin/img/help_2.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: "www.elsner.com"
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== email-shortcode ===
) - Screenshots: Please add descriptions for these screenshots #1, #2, #3 in email-shortcode/assets to your readme.txt
email-shortcode/ee-email-shortcode.php 85% from 13 tests
The principal PHP file in "Event Espresso - Custom Email Template Shortcode" v. 1.0.0 is loaded by WordPress automatically on each request
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 ("email-shortcode.php" instead of "ee-email-shortcode.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,280 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 293 | 619 | 1,184 |
CSS | 2 | 11 | 13 | 52 |
JavaScript | 2 | 8 | 54 | 44 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/add_new_e_shortcode.png | 29.25KB | 8.93KB | ▼ 69.49% |
admin/img/e_shortcodes.png | 56.98KB | 17.57KB | ▼ 69.17% |
admin/img/help_1.png | 60.46KB | 20.05KB | ▼ 66.84% |
admin/img/update_e_shortcode.png | 29.29KB | 9.05KB | ▼ 69.11% |
admin/img/help_2.png | 68.83KB | 20.61KB | ▼ 70.05% |