Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.91ms] Passed 4 tests
An overview of server-side resources used by Bulk Attachment Download
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.67 ▼4.67 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.77 ▼18.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.94 ▲2.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.45 ▼19.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.56 ▼1.58 |
Server storage [IO: ▲3.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 191 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
fs_debug_mode |
can_compress_scripts |
fs_accounts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Bulk Attachment Download
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.32 | 1.64 ▼0.04 | 38.80 ▼4.41 |
Dashboard /wp-admin | 2,200 ▲17 | 5.83 ▼0.07 | 98.32 ▼4.98 | 37.29 ▼5.44 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.05 | 40.10 ▲4.98 | 34.96 ▲2.36 |
Add New Post /wp-admin/post-new.php | 1,528 ▼15 | 23.35 ▲5.00 | 652.28 ▲2.48 | 55.63 ▼1.65 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▲0.00 | 95.81 ▼4.01 | 41.06 ▼1.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- can_compress_scripts
- fs_active_plugins
- fs_accounts
- widget_recent-posts
- fs_debug_mode
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: images, bulk, download, media, attachments
bulk-attachment-download/bulk-attachment-download.php Passed 13 tests
The primary PHP file in "Bulk Attachment Download" version 1.3.7 is used by WordPress to initiate all plugin functionality
85 characters long description:
Bulk download media or attachments selectively from your Media Library as a zip file.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin35,739 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 8,528 | 18,014 | 34,734 |
JavaScript | 6 | 89 | 102 | 458 |
Markdown | 1 | 68 | 0 | 214 |
PO File | 1 | 82 | 103 | 190 |
CSS | 17 | 17 | 8 | 143 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 95.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,342 | |
▷ Static methods | 230 | 17.14% |
▷ Public methods | 930 | 69.30% |
▷ Protected methods | 17 | 1.27% |
▷ Private methods | 395 | 29.43% |
Functions | 99 | |
▷ Named functions | 99 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |