78% ftp-sync

Code Review | FTP Sync - Theme, Media & Plugin Files

WordPress plugin FTP Sync - Theme, Media & Plugin Files scored78%from 54 tests.

About plugin

  • Plugin page: ftp-sync
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2014
  • Latest release: Dec 17, 2014
  • Number of updates: 21
  • Update frequency: every 14.5 days
  • Top authors: a2rocklobster (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /11,564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.37ms] Passed 4 tests

An overview of server-side resources used by FTP Sync - Theme, Media & Plugin Files
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.03 ▼6.83
Dashboard /wp-admin3.31 ▲0.0155.76 ▲6.05
Posts /wp-admin/edit.php3.36 ▲0.0153.02 ▼2.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.74 ▼16.11
Media Library /wp-admin/upload.php3.24 ▲0.0139.16 ▼0.10
FTP Sync /wp-admin/options-general.php?page=ftp-sync-options3.1833.36

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 10 new options
New WordPress options
ftp_sync_port
db_upgraded
widget_recent-comments
widget_theysaidso_widget
ftp_sync_newer_by
ftp_sync_active_mode
widget_recent-posts
theysaidso_admin_options
ftp_sync_remote_wp_content_dir
can_compress_scripts

Browser metrics Passed 4 tests

FTP Sync - Theme, Media & Plugin Files: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.40 ▼0.971.69 ▼0.2340.68 ▼3.37
Dashboard /wp-admin2,210 ▲195.85 ▲0.99101.29 ▼4.1636.96 ▼6.24
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0536.38 ▼4.5938.34 ▲1.19
Add New Post /wp-admin/post-new.php1,526 ▼423.07 ▲4.92698.78 ▲51.8060.83 ▼3.26
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.0298.86 ▼11.7841.26 ▼4.80
FTP Sync /wp-admin/options-general.php?page=ftp-sync-options7542.0724.9321.18

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 10 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • ftp_sync_active_mode
    • db_upgraded
    • ftp_sync_remote_wp_content_dir
    • ftp_sync_newer_by
    • can_compress_scripts
    • ftp_sync_port
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=ftp-sync-options
    • > Notice in wp-content/plugins/ftp-sync/ftp-sync.php+266
    Undefined variable: html

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ftp-sync/ftp-sync.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === ftp-sync === )
You can take inspiration from this readme.txt

ftp-sync/ftp-sync.php 92% from 13 tests

The main PHP script in "FTP Sync - Theme, Media & Plugin Files" version 1.1.6 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 224 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected851 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1203121851

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions17
▷ Named functions17100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ftp-sync-logo.png8.12KB4.73KB▼ 41.76%