Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.57ms] Passed 4 tests
A check of server-side resources used by Dropbox Photo Sideloader
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.83 ▲1.65 |
Dashboard /wp-admin | 3.44 ▲0.09 | 44.68 ▼14.24 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.32 ▼5.21 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 111.58 ▲19.53 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 33.81 ▼0.47 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dropbox Photo Sideloader
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.17 | 1.71 ▼0.09 | 38.52 ▼1.38 |
Dashboard /wp-admin | 2,206 ▲15 | 5.84 ▲0.95 | 102.37 ▲0.40 | 40.37 ▼1.85 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.04 | 36.94 ▼1.64 | 33.69 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.28 ▼0.11 | 627.69 ▼72.58 | 51.22 ▼2.32 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.24 ▼0.02 | 97.93 ▲0.99 | 41.21 ▼2.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- 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 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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: Class 'Dropbox_OAuth' not found in wp-content/plugins/dropbox-photo-sideloader/Dropbox/OAuth/Wordpress.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropbox-photo-sideloader/dropbox-photo-sideloader.php:20
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: image, sideload, media, dropbox, photo
dropbox-photo-sideloader/dropbox-photo-sideloader.php Passed 13 tests
The entry point to "Dropbox Photo Sideloader" version 0.6 is a PHP file that has certain tags in its header comment area
108 characters long description:
Adds a new tab to the Media Uploader, which allows you to pull image files from your Dropbox into WordPress.
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
There were no executable files found in this plugin4,915 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 101 | 248 | 4,202 |
PHP | 5 | 226 | 369 | 654 |
CSS | 1 | 11 | 7 | 59 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 1 | 3.23% |
▷ Private methods | 4 | 12.90% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
i/doc-type-gif.png | 0.63KB | 0.50KB | ▼ 21.73% |
i/doc-type-jpg.png | 0.67KB | 0.52KB | ▼ 21.52% |
i/doc-type-png.png | 0.65KB | 0.50KB | ▼ 21.79% |
js/themes/classic/d.png | 7.36KB | 2.58KB | ▼ 64.91% |