84% juvo-mail-editor

Code Review | JUVO Mail Editor

WordPress plugin JUVO Mail Editor scored84%from 54 tests.

About plugin

  • Plugin page: juvo-mail-editor
  • Plugin version: 3.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3
  • WordPress version: 6.3.1
  • First release: Aug 5, 2021
  • Latest release: Oct 23, 2023
  • Number of updates: 27
  • Update frequency: every 30.0 days
  • Top authors: juvodesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,862 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▲4.44ms] Passed 4 tests

Analyzing server-side resources used by JUVO Mail Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3048.13 ▲1.25
Dashboard /wp-admin3.70 ▲0.4054.79 ▲10.15
Posts /wp-admin/edit.php3.81 ▲0.4651.87 ▲2.46
Add New Post /wp-admin/post-new.php6.41 ▲0.5398.20 ▲3.91
Media Library /wp-admin/upload.php3.62 ▲0.3953.10 ▲20.22
Add Mail /wp-admin/post-new.php?post_type=juvo-mail6.5898.38
Settings /wp-admin/edit.php?post_type=juvo-mail&page=settings3.6843.68
All Mails /wp-admin/edit.php?post_type=juvo-mail3.6744.04

Server storage [IO: ▲4.33MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,005 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for JUVO Mail Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.16 ▼1.104.46 ▲2.7841.38 ▲4.97
Dashboard /wp-admin2,243 ▲735.60 ▲0.0786.11 ▼11.2435.21 ▼7.19
Posts /wp-admin/edit.php2,150 ▲502.07 ▲0.0637.84 ▲2.0031.80 ▼1.20
Add New Post /wp-admin/post-new.php1,565 ▲3923.31 ▼0.33609.81 ▼65.8056.20 ▲1.03
Media Library /wp-admin/upload.php1,451 ▲514.34 ▲0.13106.98 ▼4.5147.05 ▼1.08
Add Mail /wp-admin/post-new.php?post_type=juvo-mail6,47226.22910.9639.21
Settings /wp-admin/edit.php?post_type=juvo-mail&page=settings9292.2828.5027.10
All Mails /wp-admin/edit.php?post_type=juvo-mail1,1552.0034.4530.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 332× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/juvo-mail-editor/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/juvo-mail-editor/vendor/cmb2/cmb2/includes/types/CMB2_Type_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/juvo-mail-editor/vendor/twig/twig/src/Extension/StringLoaderExtension.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/juvo-mail-editor/vendor/cmb2/cmb2/includes/CMB2_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Timber\\Core' not found in wp-content/plugins/juvo-mail-editor/vendor/timber/timber/lib/MenuItem.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/juvo-mail-editor/vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/juvo-mail-editor/vendor/twig/twig/src/Node/Expression/Binary/RangeBinary.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'JUVO_MailEditor\\Mail_Generator' not found in wp-content/plugins/juvo-mail-editor/src/Mails/Password_Changed.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/juvo-mail-editor/vendor/upstatement/routes/Routes.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/juvo-mail-editor/vendor/twig/twig/src/Node/Expression/Binary/NotEqualBinary.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: editor, framework, mail

juvo-mail-editor/juvo-mail-editor.php 92% from 13 tests

Analyzing the main PHP file in "JUVO Mail Editor" version 3.1.1
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin78,749 lines of code in 845 files:
LanguageFilesBlank linesComment linesLines of code
PHP6368,38017,99134,343
PO File12014,31518,50232,323
CSS142731,1914,654
Markdown371,42503,634
JavaScript83645831,454
Sass17306291,411
JSON100812
YAML34074
XML20325
reStructuredText18510
Twig6009

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 code0.43
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces47
Interfaces20
Traits0
Classes615
▷ Abstract classes243.90%
▷ Concrete classes59196.10%
▷ Final classes528.80%
Methods2,309
▷ Static methods36515.81%
▷ Public methods1,89482.03%
▷ Protected methods31013.43%
▷ Private methods1054.55%
Functions208
▷ Named functions15976.44%
▷ Anonymous functions4923.56%
Constants84
▷ Global constants1619.05%
▷ Class constants6880.95%
▷ Public constants68100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/cmb2/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
vendor/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
vendor/cmb2/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%