Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/send-email-attachment-to-dropbox/classes/settings.php+482
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.48MB] [CPU: ▼54.97ms] Passed 4 tests
A check of server-side resources used by Send email attachment to dropbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.52 ▼0.95 | 5.99 ▼31.75 |
Dashboard /wp-admin | 2.54 ▼0.81 | 7.04 ▼55.00 |
Posts /wp-admin/edit.php | 2.54 ▼0.82 | 7.90 ▼41.37 |
Add New Post /wp-admin/post-new.php | 2.54 ▼3.35 | 8.90 ▼91.75 |
Media Library /wp-admin/upload.php | 2.54 ▼0.69 | 7.87 ▼29.54 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Send email attachment to dropbox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.32 ▼1.06 | 1.78 ▲0.12 | 42.34 ▼0.13 |
Dashboard /wp-admin | 2,225 ▲34 | 4.84 ▼0.06 | 111.37 ▲11.88 | 41.58 ▲0.02 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▼0.01 | 40.96 ▲2.39 | 34.48 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,555 ▲36 | 18.24 ▼2.64 | 596.70 ▼130.52 | 53.20 ▼1.90 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.19 ▼0.03 | 97.98 ▼5.29 | 41.36 ▼5.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/send-email-attachment-to-dropbox/classes/settings.php+482
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dropbox\\Exception' not found in wp-content/plugins/send-email-attachment-to-dropbox/lib/Dropbox/Exception/ProtocolError.php:8
- > PHP Fatal error
Uncaught Error: Class 'Dropbox\\WebAuthBase' not found in wp-content/plugins/send-email-attachment-to-dropbox/lib/Dropbox/WebAuth.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/send-email-attachment-to-dropbox/templates/attachment/lists.php:3
- > PHP Fatal error
Uncaught Error: Class 'Dropbox\\Exception_ProtocolError' not found in wp-content/plugins/send-email-attachment-to-dropbox/lib/Dropbox/Exception/BadResponse.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/send-email-attachment-to-dropbox/templates/attachment/settings.php:28
- > PHP Fatal error
Uncaught Error: Class 'Dropbox\\Exception_BadResponse' not found in wp-content/plugins/send-email-attachment-to-dropbox/lib/Dropbox/Exception/BadResponseCode.php:7
- > PHP Fatal error
Uncaught Error: Class 'Dropbox\\WebAuthBase' not found in wp-content/plugins/send-email-attachment-to-dropbox/lib/Dropbox/WebAuthNoRedirect.php:39
- > PHP Fatal error
Uncaught Error: Interface 'Dropbox\\ValueStore' not found in wp-content/plugins/send-email-attachment-to-dropbox/lib/Dropbox/ArrayEntryStore.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function mdrop_page() in wp-content/plugins/send-email-attachment-to-dropbox/templates/attachment/header.php:2
- > PHP Fatal error
Uncaught Error: Class 'Dropbox\\Exception_ProtocolError' not found in wp-content/plugins/send-email-attachment-to-dropbox/lib/Dropbox/Exception/BadRequest.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: email wordpress post, email to wordpress, email to wp, email wp post, email to dropbox
send-email-attachment-to-dropbox/mdrop.php 92% from 13 tests
The main PHP script in "Send email attachment to dropbox" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("send-email-attachment-to-dropbox.php" instead of "mdrop.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/send-email-attachment-to-dropbox/lib/Dropbox/certs/trusted-certs.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 944 | 2,069 | 4,042 |
JavaScript | 1 | 35 | 0 | 220 |
CSS | 1 | 11 | 0 | 81 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 342.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 46 | 100.00% |
▷ Final classes | 18 | 39.13% |
Methods | 266 | |
▷ Static methods | 83 | 31.20% |
▷ Public methods | 243 | 91.35% |
▷ Protected methods | 3 | 1.13% |
▷ Private methods | 20 | 7.52% |
Functions | 26 | |
▷ Named functions | 19 | 73.08% |
▷ Anonymous functions | 7 | 26.92% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin