Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.36ms] Passed 4 tests
This is a short check of server-side resources used by Dropbox Upload Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.19 ▼0.43 |
Dashboard /wp-admin | 3.35 ▲0.05 | 43.41 ▼4.70 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.09 ▲0.04 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 84.30 ▼20.34 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.09 ▲5.87 |
WP-Dropbox /wp-admin/options-general.php?page=dropbox-upload-form/wp-dropbox.php | 3.22 | 27.54 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Dropbox Upload Form
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.29 ▼1.08 | 1.90 ▲0.11 | 39.32 ▼1.19 |
Dashboard /wp-admin | 2,210 ▲27 | 4.79 ▼0.15 | 109.67 ▼0.98 | 38.05 ▼6.25 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.01 | 38.83 ▼6.36 | 36.47 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.18 ▼0.15 | 629.21 ▲30.26 | 54.71 ▲2.44 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.16 ▼0.03 | 96.58 ▼3.85 | 43.61 ▼0.22 |
WP-Dropbox /wp-admin/options-general.php?page=dropbox-upload-form/wp-dropbox.php | 792 | 1.53 | 7.28 | 24.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=dropbox-upload-form/wp-dropbox.php
- > Notice in wp-content/plugins/dropbox-upload-form/wp-dropbox.php+165
Undefined index: wp_db_submit_hidden
- > GET request to /wp-admin/options-general.php?page=dropbox-upload-form/wp-dropbox.php
- > Warning in wp-content/plugins/dropbox-upload-form/wp-dropbox.php+219
Use of undefined constant wpdbUploadForm - assumed 'wpdbUploadForm' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=dropbox-upload-form/wp-dropbox.php
- > Error in wp-content/plugins/dropbox-upload-form/inc/dropbox.php+437
Uncaught Error: Class 'TijsVerkoyen\Dropbox\Exception' not found in wp-content/plugins/dropbox-upload-form/inc/dropbox.php:437
Stack trace:
#0 wp-content/plugins/dropbox-upload-form/inc/dropbox.php(685): TijsVerkoyen\Dropbox\Dropbox->doCall()
#1 wp-content/plugins/dropbox-upload-form/wp-dropbox.php(234): TijsVerkoyen\Dropbox\Dropbox->accountInfo()
#2 wp-includes/class-wp-hook.php(310): wp_dropbox_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/dropbox-upload-form/wp-dropbox.php on line 31
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dropbox-upload-form/wp-dropbox.php on line 31
- > PHP Warning
require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/dropbox-upload-form/wp-dropbox.php on line 31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== dropbox-upload-form ===
)
dropbox-upload-form/wp-dropbox.php 85% from 13 tests
The primary PHP file in "Dropbox Upload Form" version 0.2.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 247 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("dropbox-upload-form.php" instead of "wp-dropbox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected714 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 203 | 493 | 663 |
PO File | 1 | 14 | 14 | 42 |
CSS | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 84.00 |
▷ Minimum class complexity | 84.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 1 | 2.63% |
▷ Public methods | 27 | 71.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 28.95% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 8.51KB | 2.82KB | ▼ 66.82% |