Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼306.45ms] Passed 4 tests
Server-side resources used by ACF Dropzone
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.11 | 58.50 ▼9.42 |
Dashboard /wp-admin | 3.45 ▲0.04 | 38.82 ▲5.06 |
Posts /wp-admin/edit.php | 3.69 ▲0.04 | 49.61 ▼50.32 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.05 | 99.32 ▼1,168.65 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 30.06 ▲2.61 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by ACF Dropzone
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,766 ▲12 | 15.93 ▲0.27 | 6.19 ▼0.36 | 2.21 ▼0.80 |
Dashboard /wp-admin | 2,899 ▲42 | 6.12 ▼0.01 | 141.70 ▲18.52 | 166.87 ▲3.38 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.00 | 63.58 ▼1.54 | 217.48 ▲68.81 |
Add New Post /wp-admin/post-new.php | 1,661 ▼99 | 16.50 ▼6.14 | 409.20 ▼42.07 | 158.06 ▼1.94 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▲0.03 | 141.48 ▼12.64 | 258.21 ▲60.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
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
Good news, no errors were detected
SRP 0% 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
Please take a closer look at the following
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/acf-dropzone/include/autoload.php
- > /wp-content/plugins/acf-dropzone/include/AcfDropzone/Core/Core.php
- > /wp-content/plugins/acf-dropzone/include/AcfDropzone/Core/Plugin.php
- > /wp-content/plugins/acf-dropzone/include/AcfDropzone/Compat/ACF.php
- > /wp-content/plugins/acf-dropzone/include/AcfDropzone/Asset/Asset.php
- > /wp-content/plugins/acf-dropzone/index.php
- > /wp-content/plugins/acf-dropzone/include/AcfDropzone/Core/CoreInterface.php
- > /wp-content/plugins/acf-dropzone/include/AcfDropzone/Core/ComponentInterface.php
- > /wp-content/plugins/acf-dropzone/include/AcfDropzone/Core/Singleton.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function AcfDropzone\\add_filter() in wp-content/plugins/acf-dropzone/test/test.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: paste, file upload, drag-drop, acf
acf-dropzone/index.php 92% from 13 tests
The main file in "ACF Dropzone" v. 1.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-dropzone.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin737 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 219 | 365 | 526 |
JSON | 1 | 0 | 0 | 208 |
JavaScript | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 4 | 7.27% |
▷ Public methods | 47 | 85.45% |
▷ Protected methods | 4 | 7.27% |
▷ Private methods | 4 | 7.27% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin