Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.85ms] Passed 4 tests
Analyzing server-side resources used by WC Bulk Custom Add Related Products
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 40.06 ▼1.45 |
Dashboard /wp-admin | 3.37 ▲0.02 | 49.91 ▼11.09 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.06 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.15 ▼27.19 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.24 ▲1.55 |
Bulk add custom related products /wp-admin/admin.php?page=bulk-add-related-products | 3.26 | 33.47 |
Manage custom Related Products /wp-admin/admin.php?page=manage-related-products | 3.26 | 30.81 |
Server storage [IO: ▲0.20MB] [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, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WC Bulk Custom Add Related Products
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.71 ▲0.53 | 1.69 ▼0.10 | 45.17 ▲2.45 |
Dashboard /wp-admin | 2,210 ▲30 | 5.65 ▼0.03 | 89.27 ▼0.82 | 37.78 ▼5.42 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▼0.11 | 37.49 ▲1.79 | 35.63 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,551 ▲14 | 18.14 ▼0.10 | 672.50 ▲32.17 | 64.33 ▲3.73 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.24 ▲0.04 | 97.23 ▼2.69 | 43.96 ▼4.41 |
Bulk add custom related products /wp-admin/admin.php?page=bulk-add-related-products | 928 | 2.19 | 28.02 | 27.91 |
Manage custom Related Products /wp-admin/admin.php?page=manage-related-products | 862 | 2.19 | 24.21 | 24.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-bulk-add-custom-related-products/bulk-add-custom-related-products.php:29
- > PHP Fatal error
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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Back end - Select related products by category from right side then select products by category from left side, Click on add related button. all the right side selected products will be related to foreach left side product.), #2 (Back end - Get all products related to any products, and remove them by clicking remove button.)
wc-bulk-add-custom-related-products/bulk-add-custom-related-products.php 92% from 13 tests
The primary PHP file in "WC Bulk Custom Add Related Products" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wc-bulk-add-custom-related-products.php" instead of "bulk-add-custom-related-products.php")
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
There were no executable files found in this plugin559 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 96 | 39 | 351 |
JavaScript | 1 | 68 | 9 | 193 |
CSS | 2 | 3 | 4 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 11.12KB | 5.75KB | ▼ 48.33% |
screenshot-1.png | 15.45KB | 7.54KB | ▼ 51.21% |
images/remove.png | 0.62KB | 0.61KB | ▼ 2.35% |