90% tivwp-email

Code Review | TIVWP Email

WordPress plugin TIVWP Email scored90%from 54 tests.

About plugin

  • Plugin page: tivwp-email
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5
  • WordPress version: 6.3.1
  • First release: May 5, 2014
  • Latest release: Sep 16, 2020
  • Number of updates: 19
  • Update frequency: every 122.4 days
  • Top authors: tivnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /968 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.06ms] Passed 4 tests

Analyzing server-side resources used by TIVWP Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.11 ▼4.91
Dashboard /wp-admin3.31 ▲0.0045.65 ▼3.85
Posts /wp-admin/edit.php3.36 ▲0.0048.72 ▲0.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.46 ▼29.83
Media Library /wp-admin/upload.php3.23 ▲0.0035.95 ▼1.63

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by TIVWP Email
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.23 ▼1.151.75 ▼0.4337.27 ▼5.10
Dashboard /wp-admin2,203 ▲185.83 ▲0.05110.44 ▼6.4739.80 ▼7.04
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0340.04 ▲0.0535.13 ▼0.34
Add New Post /wp-admin/post-new.php1,514 ▼1417.53 ▼0.79653.72 ▲22.1558.39 ▲4.83
Media Library /wp-admin/upload.php1,385 ▼64.24 ▲0.0294.03 ▼3.7641.29 ▼0.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
5 plugin tags: development, developer, smtp, tivwp, email

tivwp-email/tivwp-email.php Passed 13 tests

This is the main PHP file of "TIVWP Email" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
Configure WordPress email settings (SMTP, MAIL_TO)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin250 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP448214182
PO File1191962
Markdown1306

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.50
▷ Minimum class complexity4.00
▷ Maximum class complexity13.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.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