Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/simple-dropbox-upload-form/inc/wpsdb_auth.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; wpsdbAuth has a deprecated constructor
Server metrics [RAM: ▼1.62MB] [CPU: ▼56.00ms] Passed 4 tests
Server-side resources used by Simple Dropbox Upload
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.37 ▼1.10 | 6.14 ▼40.56 |
Dashboard /wp-admin | 2.39 ▼0.92 | 7.49 ▼44.03 |
Posts /wp-admin/edit.php | 2.39 ▼0.97 | 7.97 ▼41.29 |
Add New Post /wp-admin/post-new.php | 2.39 ▼3.50 | 6.81 ▼98.13 |
Media Library /wp-admin/upload.php | 2.39 ▼0.84 | 6.93 ▼29.15 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: no new tables, 21 new options
New WordPress options |
---|
wpsdb_thank_color |
wpsdb_delete_file |
wpsdb_show_multi |
wpsdb_show_multi_size |
wpsdb_show_progress |
wpsdb_activation_redirect |
wpsdb_multi_link_text |
wpsdb_show_form |
widget_recent-comments |
wpsdb_path |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Dropbox Upload
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.23 ▼0.12 | 1.74 ▲0.01 | 42.74 ▼2.03 |
Dashboard /wp-admin | 2,206 ▲29 | 5.51 ▼0.15 | 87.63 ▼15.03 | 76.94 ▲30.36 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.01 ▲0.02 | 35.31 ▼1.87 | 31.77 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,691 ▲160 | 20.02 ▼2.70 | 744.80 ▲114.06 | 53.05 ▼0.67 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.22 ▲0.02 | 101.28 ▼1.58 | 67.47 ▲25.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/simple-dropbox-upload-form/inc/wpsdb_auth.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; wpsdbAuth has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-dropbox-upload-form/index.php
- 67× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(HTTP/Request2/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes/HTTP/Request2/Response.php on line 47
- > PHP Warning
require_once(HTTP/OAuth/Message.php): failed to open stream: No such file or directory in wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes/HTTP/OAuth/Consumer/Response.php on line 24
- > PHP Warning
require_once(HTTP/OAuth/Message.php): failed to open stream: No such file or directory in wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes/HTTP/OAuth/Provider/Request.php on line 22
- > PHP Fatal error
require_once(): Failed opening required 'HTTP/OAuth/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes/HTTP/OAuth/Provider/Exception.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'HTTP/Request2.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes/HTTP/Request2/CookieJar.php on line 45
- > PHP Warning
require_once(HTTP/OAuth/Provider/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes/HTTP/OAuth/Provider/Exception/InvalidRequest.php on line 22
- > PHP Warning
require_once(HTTP/OAuth/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes/HTTP/OAuth/Provider/Exception.php on line 24
- > PHP Warning
require_once(PEAR/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes/HTTP/Request2/Exception.php on line 47
- > PHP Fatal error
require_once(): Failed opening required 'HTTP/Request2/Adapter.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes/HTTP/Request2/Adapter/Socket.php on line 47
- > PHP Warning
require_once(PEAR/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes/HTTP/OAuth/Exception.php on line 24
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Admin Panel before activation.), #2 (Step 1 of dropbox authorization.), #3 (Step 2 of dropbox authorization.), #4 (Step 3 of dropbox authorization.), #5 (Before a file is uploaded by user.), #6 (After a file is uploaded by user.)
simple-dropbox-upload-form/wp-dropbox.php 92% from 13 tests
The entry point to "Simple Dropbox Upload" version 1.8.8.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-dropbox-upload-form.php" instead of "wp-dropbox.php")
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 detected14,225 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,821 | 1,514 | 7,444 |
PHP | 50 | 2,054 | 5,179 | 5,857 |
CSS | 7 | 13 | 34 | 924 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 6 | 12.00% |
▷ Concrete classes | 44 | 88.00% |
▷ Final classes | 0 | 0.00% |
Methods | 320 | |
▷ Static methods | 23 | 7.19% |
▷ Public methods | 262 | 81.88% |
▷ Protected methods | 48 | 15.00% |
▷ Private methods | 10 | 3.12% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 59 | |
▷ Global constants | 2 | 3.39% |
▷ Class constants | 57 | 96.61% |
▷ Public constants | 57 | 100.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.43MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pinterest.png | 1.96KB | 1.16KB | ▼ 41.07% |
screenshot-6.png | 52.96KB | 29.79KB | ▼ 43.76% |
css/dragup/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
screenshot-3.png | 37.66KB | 15.10KB | ▼ 59.89% |
images/twitter.png | 2.38KB | 1.36KB | ▼ 42.72% |