10% send-anywhere-file-transfer

Code Review | Send Anywhere (File transfer)

WordPress plugin Send Anywhere (File transfer) scored10%from 54 tests.

About plugin

  • Plugin page: send-anywhere-fil...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.2
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Jun 23, 2016
  • Number of updates: 13
  • Update frequency: every 22.5 days
  • Top authors: Estmob (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /6,191 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/send-anywhere-file-transfer/send-anywhere-file-transfer.php+132
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼60.72ms] Passed 4 tests

A check of server-side resources used by Send Anywhere (File transfer)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.26 ▼36.74
Dashboard /wp-admin2.09 ▼1.257.49 ▼66.83
Posts /wp-admin/edit.php2.09 ▼1.265.69 ▼45.48
Add New Post /wp-admin/post-new.php2.09 ▼3.795.99 ▼93.84
Media Library /wp-admin/upload.php2.09 ▼1.136.02 ▼29.95

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_sa_widget
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Send Anywhere (File transfer)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4414.35 ▼0.052.60 ▲0.8239.51 ▼4.93
Dashboard /wp-admin2,198 ▲185.66 ▼0.0491.30 ▲1.0242.47 ▼2.45
Posts /wp-admin/edit.php2,097 ▼32.02 ▼0.0040.76 ▲1.8935.68 ▲1.43
Add New Post /wp-admin/post-new.php1,555 ▲1018.36 ▼4.81639.32 ▼18.7751.77 ▼6.66
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.0799.27 ▲2.9141.99 ▼1.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/send-anywhere-file-transfer/send-anywhere-file-transfer.php+132
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_sa_widget

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
Good news, no errors were detected

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/send-anywhere-file-transfer/send-anywhere-file-transfer.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

send-anywhere-file-transfer/send-anywhere-file-transfer.php Passed 13 tests

The primary PHP file in "Send Anywhere (File transfer)" version 1.1.0 is used by WordPress to initiate all plugin functionality
40 characters long description:
The Simplest way to Send files Anywhere.

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
There were no executable files found in this plugin188 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102599
JavaScript113589

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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