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.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 5.8.1
  • First release: Jan 18, 2013
  • Latest release: Jul 23, 2020
  • Number of updates: 67
  • Update frequency: every 40.9 days
  • Top authors: Hyno (91.04%)antony_salas (10.45%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active / 27,883 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.85MB] [CPU: ▼141.42ms] 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 /3.72 ▲1.0042.98 ▲20.80
Dashboard /wp-admin4.05 ▲0.9948.25 ▲7.33
Posts /wp-admin/edit.php4.10 ▲1.0051.10 ▲5.50
Add New Post /wp-admin/post-new.php5.94 ▲0.5062.94 ▼582.33
Media Library /wp-admin/upload.php3.92 ▲0.9236.73 ▲3.82
Dropbox Folder Share /wp-admin/options-general.php?page=dropbox-folder-share3.9335.05

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

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

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 /3,894 ▲29818.33 ▲2.399.29 ▼0.7147.55 ▼2.93
Dashboard /wp-admin3,171 ▲2437.42 ▲1.21150.11 ▲4.84139.06 ▼3.32
Posts /wp-admin/edit.php2,955 ▲2164.45 ▲1.7374.21 ▲9.55108.59 ▲18.13
Add New Post /wp-admin/post-new.php1,660 ▲16020.42 ▲1.68359.74 ▼6.92114.53 ▲0.79
Media Library /wp-admin/upload.php1,963 ▲1537.29 ▲2.21137.59 ▼10.93158.03 ▲36.95
Dropbox Folder Share /wp-admin/options-general.php?page=dropbox-folder-share2,0314.4670.4286.41

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
  • 9× 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/hynotech/usos-generales/src/js/editor-view.php
    • > /wp-content/plugins/dropbox-folder-share/vendor/askupa-software/amarkal-admin-notification/composer.php
    • > /wp-content/plugins/dropbox-folder-share/vendor/autoload.php
    • > /wp-content/plugins/dropbox-folder-share/vendor/hynotech/usos-generales/src/js/mce-button-inline.php
    • > /wp-content/plugins/dropbox-folder-share/HynoTech/UsosGenerales/js/mce-button-inline.php
    • > /wp-content/plugins/dropbox-folder-share/dropbox-folder-share.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
  • 157× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/dropbox-folder-share/HynoTech/UsosGenerales/js/editor-view.php on line 34
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/dropbox-folder-share/HynoTech/UsosGenerales/js/editor-view.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Tests\\Catalogue\\AbstractOperationTest' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/Tests/Catalogue/TargetOperationTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'TestFixture' not found in wp-content/plugins/dropbox-folder-share/vendor/nesbot/carbon/tests/FluidSettersTest.php:14
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/dropbox-folder-share/vendor/hynotech/usos-generales/src/js/mce-button-inline.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\ArrayLoader' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/Loader/FileLoader.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/Dumper/IniFileDumper.php:21
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/dropbox-folder-share/HynoTech/UsosGenerales/js/editor-view.php on line 37
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/dropbox-folder-share/vendor/symfony/translation/Loader/PhpFileLoader.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'TestFixture' not found in wp-content/plugins/dropbox-folder-share/vendor/nesbot/carbon/tests/GettersTest.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.1 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,670 lines of code in 305 files:
LanguageFilesBlank linesComment linesLines of code
PHP2234,0427,07819,898
JSON150013,902
CSS91,0836575,810
XSD392482,803
HTML12801,600
PO File9247270738
Markdown101790666
SVG211590
XML1550301
JavaScript95684281
YAML711570
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.22
Average class complexity9.88
▷ Minimum class complexity1.00
▷ Maximum class complexity160.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity157.00
Code structure
Namespaces26
Interfaces9
Traits0
Classes154
▷ Abstract classes63.90%
▷ Concrete classes14896.10%
▷ Final classes10.68%
Methods1,662
▷ Static methods1116.68%
▷ Public methods1,53492.30%
▷ Protected methods583.49%
▷ Private methods704.21%
Functions80
▷ Named functions4860.00%
▷ Anonymous functions3240.00%
Constants70
▷ Global constants2028.57%
▷ Class constants5071.43%
▷ Public constants50100.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.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/img/logo.png3.84KB2.14KB▼ 44.29%
src/img/TinyMCE_Button.png2.49KB0.99KB▼ 60.16%
src/img/carpeta.png1.03KB0.83KB▼ 19.33%
src/img/DropBox-Folder-Share-300x300.png99.65KB25.48KB▼ 74.43%
src/img/paypal_200x96.png27.59KB7.41KB▼ 73.13%