84% send-link-to-friend

Code Review | Send link to friend

WordPress plugin Send link to friend scored84%from 54 tests.

About plugin

  • Plugin page: send-link-to-friend
  • Plugin version: 12.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Aug 15, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 118
  • Update frequency: every 41.2 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /41,817 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.13MB] [CPU: ▼4.64ms] Passed 4 tests

An overview of server-side resources used by Send link to friend
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1536.93 ▼0.11
Dashboard /wp-admin3.44 ▲0.1044.03 ▼13.63
Posts /wp-admin/edit.php3.56 ▲0.2046.25 ▲4.41
Add New Post /wp-admin/post-new.php6.03 ▲0.1480.75 ▼6.17
Media Library /wp-admin/upload.php3.37 ▲0.1433.63 ▲1.35
Send link to friend /wp-admin/options-general.php?page=send-link-to-friend3.3332.28

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 20 new options
New WordPress options
db_upgraded
can_compress_scripts
gSendtofriend_On_Archives
theysaidso_admin_options
gSendtofriend_fromname
gSendtofriend_captcha_secret
gSendtofriend_On_Posts
gSendtofriend_On_Pages
gSendtofriend_mailcontent
gSendtofriend_captcha
...

Browser metrics Passed 4 tests

Send link to friend: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13313.81 ▼0.297.92 ▲6.2739.12 ▼4.56
Dashboard /wp-admin2,199 ▲195.56 ▼0.1282.08 ▼7.8435.84 ▼9.23
Posts /wp-admin/edit.php2,104 ▲12.04 ▲0.0139.83 ▲4.3435.49 ▲0.05
Add New Post /wp-admin/post-new.php1,529 ▲323.76 ▲0.70673.92 ▲21.7357.03 ▲6.08
Media Library /wp-admin/upload.php1,407 ▲74.11 ▼0.1197.69 ▼10.5145.84 ▲0.96
Send link to friend /wp-admin/options-general.php?page=send-link-to-friend8951.9925.1028.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_send-link-to-friend
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/send-link-to-friend/send-link-to-friend.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: send link to friend, email to friend, send to friend

send-link-to-friend/send-link-to-friend.php Passed 13 tests

Analyzing the main PHP file in "Send link to friend" version 12.4
137 characters long description:
If user think the content is useful to their friend, they can use this form to send the URL instead of copy and paste the URL into email.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin918 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP29720661
PO File283102192
JavaScript112365

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity6.80
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin