84% caldera-smtp-mailer

Code Review | Caldera SMTP Mailer

WordPress plugin Caldera SMTP Mailer scored84%from 54 tests.

About plugin

  • Plugin page: caldera-smtp-mailer
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.0
  • WordPress version: 6.3.1
  • First release: Nov 16, 2014
  • Latest release: Jan 14, 2015
  • Number of updates: 6
  • Update frequency: every 9.8 days
  • Top authors: Desertsnowman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /4,869 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.88ms] Passed 4 tests

This is a short check of server-side resources used by Caldera SMTP Mailer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.76 ▼22.53
Dashboard /wp-admin3.36 ▲0.0551.66 ▼4.45
Posts /wp-admin/edit.php3.47 ▲0.1152.17 ▼8.09
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.13 ▼8.46
Media Library /wp-admin/upload.php3.28 ▲0.0534.87 ▼3.38
Caldera SMTP /wp-admin/options-general.php?page=caldera_smtp_mailer3.2736.13

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Caldera SMTP Mailer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.081.73 ▼1.0347.26 ▼6.37
Dashboard /wp-admin2,202 ▲285.62 ▼0.0486.64 ▼12.5640.75 ▼6.58
Posts /wp-admin/edit.php2,104 ▲11.99 ▲0.0340.82 ▼0.1439.16 ▼2.02
Add New Post /wp-admin/post-new.php1,531 ▼723.10 ▼0.11685.17 ▲49.2258.33 ▲2.28
Media Library /wp-admin/upload.php1,404 ▲74.20 ▼0.03100.31 ▼14.8443.28 ▼7.71
Caldera SMTP /wp-admin/options-general.php?page=caldera_smtp_mailer1,0562.4050.1744.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Caldera_Smtp_Mailer' not found in wp-content/plugins/caldera-smtp-mailer/includes/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/caldera-smtp-mailer/includes/templates/main-ui.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/caldera-smtp-mailer/includes/templates/advanced-panel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/caldera-smtp-mailer/includes/templates/smtp-panel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/caldera-smtp-mailer/includes/templates/extra-panel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/caldera-smtp-mailer/includes/edit.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/caldera-smtp-mailer/includes/templates/test_send-panel.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: Please take inspiration from this readme.txt

caldera-smtp-mailer/plugincore.php 92% from 13 tests

The entry point to "Caldera SMTP Mailer" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("caldera-smtp-mailer.php" instead of "plugincore.php")

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
There were no executable files found in this plugin3,874 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript26213833,341
PHP9117153301
CSS1131232

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.26
Average class complexity15.50
▷ Minimum class complexity11.00
▷ Maximum class complexity20.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods635.29%
▷ Public methods1376.47%
▷ Protected methods00.00%
▷ Private methods423.53%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin