10% smtp-cycle-email

Code Review | SMTP Cycle Email

WordPress plugin SMTP Cycle Email scored 10% from 54 tests.

About plugin

  • Plugin page: smtp-cycle-email
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.2.4
  • WordPress version: 6.3.1
  • First release: Oct 15, 2012
  • Latest release: Apr 22, 2016
  • Number of updates: 18
  • Update frequency: every 94.1 days
  • Top authors: cybernetikz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,340 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Compile error in wp-content/plugins/smtp-cycle-email/smtp-cycle-email.php+832
    Redefinition of parameter $p

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

A check of server-side resources used by SMTP Cycle Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.72 ▼5.70
Dashboard /wp-admin3.31 ▲0.0046.76 ▼7.52
Posts /wp-admin/edit.php3.36 ▲0.0047.05 ▼2.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.12 ▲0.85
Media Library /wp-admin/upload.php3.23 ▲0.0035.33 ▲0.36

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for SMTP Cycle Email
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.19 ▼1.104.61 ▲2.5240.36 ▼11.16
Dashboard /wp-admin2,206 ▲184.85 ▼0.07109.31 ▼8.0542.53 ▼5.60
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0539.54 ▲1.8234.42 ▲0.74
Add New Post /wp-admin/post-new.php1,519 ▼1423.31 ▲0.02638.54 ▼27.0351.44 ▼6.83
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0592.94 ▼10.5541.67 ▼5.36

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Redefinition of parameter $p in wp-content/plugins/smtp-cycle-email/smtp-cycle-email.php on line 832
    • > PHP Fatal error
      Redefinition of parameter $p in wp-content/plugins/smtp-cycle-email/cron.php on line 35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Add SMTP server information), #2 (add email message), #3 (how to schedule message), #4 (option page layout)
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

smtp-cycle-email/smtp-cycle-email.php Passed 13 tests

The main PHP file in "SMTP Cycle Email" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
110 characters long description:
Using this plugins, you can send email to different user using various smtp server with spinning text feature.

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
Success! There were no dangerous files found in this plugin815 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2139106808
CSS1007

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png36.75KB13.31KB▼ 63.77%
screenshot-4.png39.74KB15.73KB▼ 60.42%
screenshot-1.png41.68KB16.08KB▼ 61.43%
screenshot-2.png49.93KB19.11KB▼ 61.73%
screenshot-3.png36.61KB13.57KB▼ 62.94%