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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.78ms] Passed 4 tests
An overview of server-side resources used by Bulk Categories Assign
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.32 ▼0.03 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.21 ▼19.40 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.07 ▲1.59 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.00 ▼4.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.54 ▼10.71 |
BCA /wp-admin/admin.php?page=bulk_categories_assign | 3.23 | 30.51 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 3.24 | 36.14 |
BCA Actions /wp-admin/admin.php?page=bca_actions | 3.19 | 30.84 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
category_children |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Bulk Categories Assign
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲175 | 14.05 ▼0.33 | 9.41 ▲7.74 | 40.98 ▼4.29 |
Dashboard /wp-admin | 2,243 ▲54 | 5.85 ▲0.87 | 109.35 ▼11.37 | 73.51 ▲28.27 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.05 ▲0.05 | 38.31 ▲4.18 | 31.28 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 23.40 ▼0.22 | 606.17 ▼93.55 | 33.91 ▼22.07 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.23 ▲0.00 | 94.52 ▼14.94 | 70.53 ▲22.15 |
BCA /wp-admin/admin.php?page=bulk_categories_assign | 1,216 | 3.11 | 43.46 | 67.13 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 1,479 | 2.27 | 29.75 | 36.74 |
BCA Actions /wp-admin/admin.php?page=bca_actions | 683 | 1.14 | 6.75 | 18.49 |
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 7 options in the database
- category_children
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bulk_categories_assign
- > Notice in wp-content/plugins/bulk-categories-assign/bulk-categories-assign.php+396
Undefined index: paged
- > GET request to /wp-admin/admin.php?page=bulk_categories_assign
- > Notice in wp-content/plugins/bulk-categories-assign/bulk-categories-assign.php+109
Undefined index: cat
- > GET request to /wp-admin/admin.php?page=bulk_categories_assign
- > Notice in wp-content/plugins/bulk-categories-assign/bulk-categories-assign.php+126
Undefined variable: categories_list
- > GET request to /wp-admin/admin.php?page=bulk_categories_assign
- > Notice in wp-content/plugins/bulk-categories-assign/bulk-categories-assign.php+139
Trying to get property 'max_num_pages' of non-object
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: "haider8278@gmail.com"
bulk-categories-assign/bulk-categories-assign.php Passed 13 tests
Analyzing the main PHP file in "Bulk Categories Assign" version 1.0
79 characters long description:
A plugin that will used to select and assign bulk categories to gallery images.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,351 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,391 | 852 | 5,070 |
PHP | 3 | 12 | 275 | 1,022 |
CSS | 3 | 18 | 20 | 259 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 9.27 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 5 | 33.33% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 2 | 13.33% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/a17.png | 5.38KB | 3.32KB | ▼ 38.24% |
images/gallery_next-hover.png | 2.08KB | 0.88KB | ▼ 57.61% |
images/gallery_next.png | 2.01KB | 0.78KB | ▼ 61.39% |
img/t01.png | 1.58KB | 0.74KB | ▼ 53.49% |
images/logo_icon.png | 4.47KB | 3.24KB | ▼ 27.47% |