10% offsite-content-storage-via-smartfile

Code Review | Offsite Content Storage via Smartfile

WordPress plugin Offsite Content Storage via Smartfile scored10%from 54 tests.

About plugin

  • Plugin page: offsite-content-s...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4
  • WordPress version: 6.3.1
  • First release: Jan 1, 2016
  • Latest release: Jan 5, 2016
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: fifthsegment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,185 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
You still need to fix the following installer errors
  • Install procedure had errors
    • > Error in wp-content/plugins/offsite-content-storage-via-smartfile/admin/fseg-admin.php+216
    Uncaught ArgumentCountError: Too few arguments to function Fseg_Admin::get_settings(), 0 passed in wp-content/plugins/offsite-content-storage-via-smartfile/admin/fseg-admin.php on line 166 and exactly 1 expected in wp-content/plugins/offsite-content-storage-via-smartfile/admin/fseg-admin.php:216
    Stack trace:
    #0 wp-content/plugins/offsite-content-storage-via-smartfile/admin/fseg-admin.php(166): Fseg_Admin->get_settings()
    #1 wp-content/plugins/offsite-content-storage-via-smartfile/admin/fseg-admin.php(40): Fseg_Admin->update_schema()
    #2 wp-content/plugins/offsite-content-storage-via-smartfile/smartfile-storage-tank.php(369): Fseg_Admin->__construct()
    #3 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #4 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

An overview of server-side resources used by Offsite Content Storage via Smartfile
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.07 ▲5.23
Dashboard /wp-admin3.31 ▲0.0044.96 ▼1.07
Posts /wp-admin/edit.php3.36 ▲0.0044.11 ▼4.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.66 ▲4.21
Media Library /wp-admin/upload.php3.23 ▲0.0034.18 ▼0.58

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Offsite Content Storage via Smartfile
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.155.07 ▲3.4943.28 ▲5.67
Dashboard /wp-admin2,209 ▲214.85 ▼1.04100.02 ▼3.9941.30 ▼4.08
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0132.54 ▼4.1833.39 ▼2.90
Add New Post /wp-admin/post-new.php1,533 ▼023.11 ▼0.21613.61 ▼40.6658.28 ▲9.40
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0794.32 ▼24.8143.93 ▼4.06

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • 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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
Please take inspiration from this readme.txt

offsite-content-storage-via-smartfile/smartfile-storage-tank.php 85% from 13 tests

"Offsite Content Storage via Smartfile" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("offsite-content-storage-via-smartfile.php" instead of "smartfile-storage-tank.php")
  • Description: The description should be shorter than 140 characters (currently 311 characters long)

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 detected26,384 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript323,44517,47516,904
CSS312177,339
PHP412874627
HTML19180498
JSON1300434
Markdown51220294
SVG100288

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity24.50
▷ Minimum class complexity21.00
▷ Maximum class complexity28.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods00.00%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected