84% email-via-emailjs-blocks

Code Review | Emailjs Block

WordPress plugin Emailjs Block scored84%from 54 tests.

About plugin

  • Plugin page: email-via-emailjs...
  • Plugin version: 1.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Sep 23, 2022
  • Latest release: Sep 23, 2022
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: Chymmi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /221 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.84 ▲3.56
Dashboard /wp-admin3.34 ▲0.0453.66 ▲5.48
Posts /wp-admin/edit.php3.39 ▲0.0350.66 ▼2.33
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.46 ▼14.59
Media Library /wp-admin/upload.php3.26 ▲0.0346.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.33 ▲0.151.71 ▼0.0542.98 ▲2.51
Dashboard /wp-admin2,195 ▲185.61 ▼0.0799.27 ▲3.7341.99 ▼0.30
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0533.93 ▼5.4236.71 ▼1.96
Add New Post /wp-admin/post-new.php6,386 ▲4,86027.92 ▲4.43949.94 ▲298.9740.15 ▼33.52
Media Library /wp-admin/upload.php1,397 ▲34.17 ▲0.0099.07 ▼9.5144.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

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:
LanguageFilesBlank linesComment linesLines of code
JSON600121
Markdown111018
PHP1012018
CSS7007
JavaScript7007

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 code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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