84% wp-dropbox-dropins

Code Review | WP Dropbox Dropins

WordPress plugin WP Dropbox Dropins scored84%from 54 tests.

About plugin

  • Plugin page: wp-dropbox-dropins
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: May 12, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: redhopit (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,672 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by WP Dropbox Dropins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.33 ▼2.69
Dashboard /wp-admin3.31 ▲0.0149.77 ▼3.84
Posts /wp-admin/edit.php3.36 ▲0.0146.57 ▼0.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.12 ▼7.05
Media Library /wp-admin/upload.php3.24 ▲0.0138.50 ▲5.55

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Dropbox Dropins: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲9113.32 ▲0.082.94 ▼1.2542.62 ▲5.07
Dashboard /wp-admin2,235 ▲505.85 ▼0.00109.45 ▲5.6643.34 ▲3.57
Posts /wp-admin/edit.php2,100 ▲82.07 ▲0.0437.53 ▼2.6434.54 ▼2.69
Add New Post /wp-admin/post-new.php1,704 ▲19024.53 ▲0.94617.50 ▼13.63115.24 ▲56.78
Media Library /wp-admin/upload.php1,420 ▲324.28 ▲0.0699.40 ▲1.0658.03 ▲13.61

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-dropbox-dropins/admin-dropins.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-dropbox-dropins/wp_dropbox_dropins.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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 your attention:
  • Screenshots: Screenshot #1 (Plugin Integrates with your posts/page with shortcode) image not found
Please take inspiration from this readme.txt

wp-dropbox-dropins/wp_dropbox_dropins.php 92% from 13 tests

The main PHP script in "WP Dropbox Dropins" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-dropbox-dropins.php" instead of "wp_dropbox_dropins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,449 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS13203199894
PHP22729384
HTML1362171

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.21MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
help/assets/blueprint-css/plugins/buttons/icons/tick.png0.52KB0.52KB0.00%
help/assets/blueprint-css/plugins/buttons/icons/key.png0.44KB0.41KB▼ 8.13%
help/assets/blueprint-css/plugins/link-icons/icons/feed.png0.67KB0.90KB0.00%
help/assets/blueprint-css/plugins/link-icons/icons/external.png45.75KB0.11KB▼ 99.77%
help/assets/images/htmlstructure.png64.29KB17.65KB▼ 72.55%