90% wp-gmail-mailer

Code Review | Gmail Mailer

WordPress plugin Gmail Mailer scored90%from 54 tests.

About plugin

  • Plugin page: wp-gmail-mailer
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Mar 27, 2019
  • Latest release: Jul 22, 2021
  • Number of updates: 3
  • Update frequency: every 283.0 days
  • Top authors: naa986 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.36ms] Passed 4 tests

Server-side resources used by Gmail Mailer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1138.54 ▼5.09
Dashboard /wp-admin3.41 ▲0.1149.92 ▲2.85
Posts /wp-admin/edit.php3.52 ▲0.1747.70 ▲0.49
Add New Post /wp-admin/post-new.php5.99 ▲0.1185.43 ▼15.70
Media Library /wp-admin/upload.php3.33 ▲0.1136.36 ▲3.25
Gmail Mailer /wp-admin/options-general.php?page=gmail-mailer-settings3.3031.30

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Gmail Mailer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7514.46 ▲0.501.68 ▼0.2838.15 ▼0.79
Dashboard /wp-admin2,216 ▲284.87 ▲0.01102.41 ▼13.7840.23 ▼2.14
Posts /wp-admin/edit.php2,102 ▲102.01 ▼0.0236.48 ▼4.8239.11 ▲3.23
Add New Post /wp-admin/post-new.php1,541 ▲2723.48 ▲5.90663.57 ▼30.0651.63 ▼7.72
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.03100.85 ▼9.5841.13 ▼4.69
Gmail Mailer /wp-admin/options-general.php?page=gmail-mailer-settings9352.1425.7128.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: phpmailer, smtp, gmail, email, mail

wp-gmail-mailer/main.php 92% from 13 tests

"Gmail Mailer" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-gmail-mailer.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin564 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102100564

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin