89% g-smtp

Code Review | G-SMTP

WordPress plugin G-SMTP scored 89% from 54 tests.

About plugin

  • Plugin page: g-smtp
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 14, 2022
  • Latest release: May 25, 2022
  • Number of updates: 12
  • Update frequency: every 1.0 days
  • Top authors: thegeneration (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,562 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
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼4.16ms] Passed 4 tests

A check of server-side resources used by G-SMTP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1738.76 ▼6.20
Dashboard /wp-admin3.56 ▲0.2546.30 ▼1.09
Posts /wp-admin/edit.php3.61 ▲0.2547.76 ▼1.85
Add New Post /wp-admin/post-new.php6.09 ▲0.2191.32 ▼5.84
Media Library /wp-admin/upload.php3.42 ▲0.1937.48 ▼2.74
G-SMTP /wp-admin/options-general.php?page=g-smtp-options3.5732.91

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

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

Browser metrics Passed 4 tests

Checking browser requirements for G-SMTP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.68 ▼0.991.73 ▼0.3342.12 ▼6.92
Dashboard /wp-admin2,219 ▲314.86 ▼1.15112.24 ▼3.3939.20 ▼4.66
Posts /wp-admin/edit.php2,102 ▲132.02 ▲0.0136.26 ▲0.4835.22 ▲1.58
Add New Post /wp-admin/post-new.php1,526 ▼1123.53 ▲0.22692.43 ▲19.6954.74 ▲3.95
Media Library /wp-admin/upload.php1,398 ▲134.19 ▼0.0297.78 ▼27.2241.45 ▼7.80
G-SMTP /wp-admin/options-general.php?page=g-smtp-options8222.1929.0232.15

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive 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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: smtp

g-smtp/g-smtp.php 85% from 13 tests

"G-SMTP" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,281 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP204048001,669
Sass1560273
PO File195145172
JavaScript24862160
JSON1005
CSS2042

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity25.18
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods92
▷ Static methods4043.48%
▷ Public methods8794.57%
▷ Protected methods33.26%
▷ Private methods22.17%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.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