78% dropbox-folder-share

Code Review | Dropbox Folder Share

WordPress plugin Dropbox Folder Share scored 78% from 54 tests.

About plugin

  • Plugin page: dropbox-folder-share
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Jan 18, 2013
  • Latest release: Mar 30, 2022
  • Number of updates: 71
  • Update frequency: every 47.3 days
  • Top authors: Hyno (90.14%)antony_salas (11.27%)

Code review

54 tests

User reviews

16 reviews

Install metrics

900+ active / 29,239 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 gracefully, with no errors

Server metrics [RAM: ▲0.66MB] [CPU: ▼327.72ms] Passed 4 tests

Analyzing server-side resources used by Dropbox Folder Share
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.44 ▲1.3271.36 ▲29.38
Dashboard /wp-admin4.32 ▲0.9141.18 ▼5.38
Posts /wp-admin/edit.php4.54 ▲0.9045.04 ▼20.16
Add New Post /wp-admin/post-new.php6.86 ▼0.1168.77 ▼1,284.77
Media Library /wp-admin/upload.php4.26 ▲0.9737.60 ▼0.55
Dropbox Folder Share /wp-admin/options-general.php?page=dropbox-folder-share4.2035.39

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 357 new files
Database: no new tables, 2 new options
New WordPress options
dropbox-folder-share-options
widget_dropboxfoldersharewidget

Browser metrics Passed 4 tests

An overview of browser requirements for Dropbox Folder Share
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,004 ▲25018.23 ▲2.847.23 ▼3.702.58 ▼1.20
Dashboard /wp-admin3,133 ▲2467.80 ▲1.23180.55 ▼55.01228.71 ▼15.08
Posts /wp-admin/edit.php2,903 ▲2154.65 ▲1.2290.99 ▼12.25176.59 ▼56.84
Add New Post /wp-admin/post-new.php1,794 ▲16923.25 ▲3.70553.80 ▼54.32209.41 ▲1.65
Media Library /wp-admin/upload.php1,912 ▲2177.08 ▲1.33173.34 ▼20.81275.28 ▲27.44
Dropbox Folder Share /wp-admin/options-general.php?page=dropbox-folder-share1,9774.9782.54199.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_dropboxfoldersharewidget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dropbox-folder-share/vendor/askupa-software/amarkal-admin-notification/bootstrap.php
    • > /wp-content/plugins/dropbox-folder-share/vendor/askupa-software/amarkal-admin-notification/composer.php
    • > /wp-content/plugins/dropbox-folder-share/HynoTech/UsosGenerales/js/editor-view.php
    • > /wp-content/plugins/dropbox-folder-share/vendor/askupa-software/amarkal-admin-notification/functions.php
    • > /wp-content/plugins/dropbox-folder-share/vendor/autoload.php
    • > /wp-content/plugins/dropbox-folder-share/dropbox-folder-share.php
    • > /wp-content/plugins/dropbox-folder-share/HynoTech/UsosGenerales/js/mce-button-inline.php
  • 136× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/DataCollector/TranslationDataCollector.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Translation\\MessageCatalogueInterface' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/MessageCatalogue.php:19
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/dropbox-folder-share/HynoTech/UsosGenerales/js/mce-button-inline.php on line 11
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Translation\\Dumper\\DumperInterface' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/Dumper/FileDumper.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/Tests/Writer/TranslationWriterTest.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/Dumper/PoFileDumper.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/Tests/DataCollector/TranslationDataCollectorTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'TestFixture' not found in wp-content/plugins/dropbox-folder-share/vendor/nesbot/carbon/tests/StartEndOfTest.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/Exception/NotFoundResourceException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'TestFixture' not found in wp-content/plugins/dropbox-folder-share/vendor/nesbot/carbon/tests/CreateFromFormatTest.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 to be fixed:
  • Screenshots: Please add images for these screenshots: #8 (Insert Gutenberg Block), #9 (Gutenberg Block)
You can look at the official readme.txt

dropbox-folder-share/dropbox-folder-share.php Passed 13 tests

The main file in "Dropbox Folder Share" v. 1.9.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
78 characters long description:
Plugin que permitira incluir carpetas de DropBox en nuestras entradas de blog.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected46,323 lines of code in 290 files:
LanguageFilesBlank linesComment linesLines of code
PHP2123,7597,16519,457
JSON130013,930
CSS91,0836575,810
XSD392482,803
HTML12801,600
PO File9247270738
Markdown92060732
SVG211590
XML1650328
JavaScript95684281
YAML53043
Qt Linguist10010
INI1001

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 157)
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.86
▷ Minimum class complexity1.00
▷ Maximum class complexity164.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity157.00
Code structure
Namespaces26
Interfaces9
Traits0
Classes146
▷ Abstract classes64.11%
▷ Concrete classes14095.89%
▷ Final classes10.71%
Methods1,617
▷ Static methods1257.73%
▷ Public methods1,48892.02%
▷ Protected methods583.59%
▷ Private methods714.39%
Functions81
▷ Named functions4859.26%
▷ Anonymous functions3340.74%
Constants63
▷ Global constants2133.33%
▷ Class constants4266.67%
▷ Public constants42100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.44MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/img/hyno-learn-more-bg.png0.14KB0.11KB▼ 15.83%
src/script/DropBoxFolderShare.png0.97KB1.16KB0.00%
src/img/HT-Works.png8.86KB4.82KB▼ 45.54%
src/img/download_dropbox.png1.27KB0.38KB▼ 69.98%
src/img/logo.png3.84KB2.14KB▼ 44.29%