Benchmarks
Plugin footprint 83% 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.04MB] [CPU: ▼1.97ms] Passed 4 tests
An overview of server-side resources used by Emailjs Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.84 ▲3.56 |
Dashboard /wp-admin | 3.34 ▲0.04 | 53.66 ▲5.48 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.66 ▼2.33 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 87.46 ▼14.59 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 46.36 ▲8.15 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Emailjs Block
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.33 ▲0.15 | 1.71 ▼0.05 | 42.98 ▲2.51 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.07 | 99.27 ▲3.73 | 41.99 ▼0.30 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.05 | 33.93 ▼5.42 | 36.71 ▼1.96 |
Add New Post /wp-admin/post-new.php | 6,386 ▲4,860 | 27.92 ▲4.43 | 949.94 ▲298.97 | 40.15 ▼33.52 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.17 ▲0.00 | 99.07 ▼9.51 | 44.23 ▼3.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-via-emailjs-blocks/email-via-emailjs-blocks.php:21
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: email, block, emailjs, gutenberg, contact-form
email-via-emailjs-blocks/email-via-emailjs-blocks.php 92% from 13 tests
The main PHP script in "Emailjs Block" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/locales")
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
No dangerous file extensions were detected171 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 0 | 0 | 121 |
Markdown | 1 | 11 | 0 | 18 |
PHP | 10 | 1 | 20 | 18 |
CSS | 7 | 0 | 0 | 7 |
JavaScript | 7 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
No PNG files were detected