84% smtp-uri

Code Review | SMTP URI and logging

WordPress plugin SMTP URI and logging scored84%from 54 tests.

About plugin

  • Plugin page: smtp-uri
  • Plugin version: 0.4.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Dec 28, 2015
  • Number of updates: 8
  • Update frequency: every 17.5 days
  • Top authors: szepe.viktor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,142 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: ▲0.94ms] Passed 4 tests

This is a short check of server-side resources used by SMTP URI and logging
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0346.99 ▼1.44
Dashboard /wp-admin3.35 ▲0.0449.99 ▲1.75
Posts /wp-admin/edit.php3.40 ▲0.0448.60 ▲1.93
Add New Post /wp-admin/post-new.php5.93 ▲0.04104.51 ▲15.71
Media Library /wp-admin/upload.php3.27 ▲0.0437.97 ▲1.53

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SMTP URI and logging
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.051.75 ▼0.3642.03 ▼0.24
Dashboard /wp-admin2,203 ▲155.81 ▲0.88101.26 ▼8.3039.94 ▼1.80
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0232.78 ▼2.9234.55 ▲1.03
Add New Post /wp-admin/post-new.php1,534 ▲123.36 ▲0.25668.41 ▼68.6663.68 ▲1.96
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.03103.91 ▼3.1446.39 ▲1.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/smtp-uri/smtp-uri.php:36

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: mail, gmail, outlook, starttls, tls...

smtp-uri/smtp-uri.php Passed 13 tests

Analyzing the main PHP file in "SMTP URI and logging" version 0.4.7
46 characters long description:
SMTP settings for WordPress and error logging.

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
Good job! No executable or dangerous file extensions detected169 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP153103169

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected