Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼138.95ms] Passed 4 tests
This is a short check of server-side resources used by Bulk add files to media
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 48.30 ▲21.00 |
Dashboard /wp-admin | 3.09 ▲0.03 | 50.26 ▲4.51 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 45.88 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 99.14 ▼556.08 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.37 ▼3.92 |
پلاگین افزدون به مدیا /wp-admin/admin.php?page=mgh_add_attach_config | 3.01 | 31.86 |
انتقال به پوشه مدیا /wp-admin/admin.php?page=mgh_add_attach_mediadir | 3.01 | 32.30 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Bulk add files to media
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,737 ▲141 | 16.20 ▲0.83 | 9.72 ▲0.90 | 47.13 ▼4.52 |
Dashboard /wp-admin | 3,001 ▲70 | 5.92 ▼0.03 | 138.37 ▼15.20 | 139.57 ▲18.59 |
Posts /wp-admin/edit.php | 2,770 ▲34 | 2.69 ▼0.00 | 73.43 ▲3.02 | 96.14 ▼4.52 |
Add New Post /wp-admin/post-new.php | 1,705 ▲33 | 18.77 ▼0.20 | 364.53 ▼49.99 | 114.25 ▼0.08 |
Media Library /wp-admin/upload.php | 1,841 ▲34 | 4.99 ▼0.02 | 146.33 ▼12.82 | 143.09 ▲5.32 |
پلاگین افزدون به مدیا /wp-admin/admin.php?page=mgh_add_attach_config | 1,144 | 2.10 | 59.77 | 95.44 |
انتقال به پوشه مدیا /wp-admin/admin.php?page=mgh_add_attach_mediadir | 1,294 | 2.21 | 59.60 | 96.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (main.jpg)
wp-add-attachment/wp_add_attachment.php 77% from 13 tests
The entry point to "Bulk add files to media" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-add-attachment.php" instead of "wp_add_attachment.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin392 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 32 | 15 | 256 |
PO File | 2 | 38 | 38 | 136 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected