90% 9mail-wp-email-templates-designer

Code Review | 9MAIL - WordPress Email Templates Designer

WordPress plugin 9MAIL - WordPress Email Templates Designer scored90%from 54 tests.

About plugin

  • Plugin page: 9mail-wp-email-te...
  • Plugin version: 1.0.12
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2022
  • Latest release: Apr 15, 2023
  • Number of updates: 23
  • Update frequency: every 16.5 days
  • Top authors: thanhtd (82.61%)villatheme (21.74%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,768 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.47MB] [CPU: ▲4.78ms] 75% from 4 tests

Server-side resources used by 9MAIL - WordPress Email Templates Designer
It is recommended to improve the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 508.28ms on /wp-admin/edit.php?post_type=wp_email_tmpl&page=9mail-wp-email-templates-designer-extensions)
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4348.52 ▲8.11
Dashboard /wp-admin3.84 ▲0.5063.20 ▲4.11
Posts /wp-admin/edit.php3.88 ▲0.5259.02 ▲14.87
Add New Post /wp-admin/post-new.php6.36 ▲0.4889.81 ▼4.28
Media Library /wp-admin/upload.php3.70 ▲0.4845.05 ▲11.16
All Emails /wp-admin/edit.php?post_type=wp_email_tmpl3.8752.23
Add New /wp-admin/post-new.php?post_type=wp_email_tmpl4.0459.48
Extensions /wp-admin/edit.php?post_type=wp_email_tmpl&page=9mail-wp-email-templates-designer-extensions3.94508.28

Server storage [IO: ▲2.93MB] [DB: ▲0.03MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 178 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
9mail-wp-email-templates-designer_start_use
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for 9MAIL - WordPress Email Templates Designer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11513.22 ▼1.534.60 ▲2.7248.02 ▲4.64
Dashboard /wp-admin2,261 ▲765.82 ▼0.0699.15 ▼21.5543.29 ▼1.82
Posts /wp-admin/edit.php2,144 ▲552.05 ▲0.0136.99 ▲1.1134.00 ▼3.65
Add New Post /wp-admin/post-new.php1,582 ▲4918.13 ▼5.00607.32 ▼34.1050.82 ▼6.05
Media Library /wp-admin/upload.php1,446 ▲614.18 ▼0.0599.83 ▼2.3744.55 ▼0.04
All Emails /wp-admin/edit.php?post_type=wp_email_tmpl1,6641.9935.3530.48
Add New /wp-admin/post-new.php?post_type=wp_email_tmpl2,2255.42110.6379.74
Extensions /wp-admin/edit.php?post_type=wp_email_tmpl&page=9mail-wp-email-templates-designer-extensions1,7572.0325.4062.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • 9mail-wp-email-templates-designer_start_use
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: email template, email customizer, email, wordpress

9mail-wp-email-templates-designer/9mail-wp-email-templates-designer.php Passed 13 tests

"9MAIL - WordPress Email Templates Designer" version 1.0.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Make your WordPress emails become professional.

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
Success! There were no dangerous files found in this plugin13,903 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
SVG40123,847
PHP174951013,119
JavaScript174481083,114
CSS16117841,767
Sass2382191,668
PO File1179261388

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity37.78
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods120
▷ Static methods2218.33%
▷ Public methods11394.17%
▷ Protected methods10.83%
▷ Private methods65.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants1
▷ Global constants1100.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
95 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/phone-black-border.png0.47KB0.32KB▼ 32.22%
assets/img/li-white-color.png0.82KB0.46KB▼ 44.40%
assets/img/home-white-black.png0.47KB0.29KB▼ 38.43%
assets/img/li-color.png0.50KB0.32KB▼ 36.20%
assets/img/ins-black.png0.79KB0.41KB▼ 47.91%