Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method DC_Woo_Smart_Collection::activate_dc_Woo_Smart_Collection() should not be called statically
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.54ms] Passed 4 tests
A check of server-side resources used by WooCommerce Smart Collection
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.89 ▼1.71 |
Dashboard /wp-admin | 3.34 ▲0.00 | 46.90 ▼13.27 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.94 ▲0.71 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.64 ▼23.89 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.08 ▲5.84 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options |
---|
dc_Woo_Smart_Collection_installed |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
dc_dc_WC_SC_general_settings_name |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Smart Collection
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲57 | 13.27 ▼1.11 | 1.72 ▼0.22 | 43.81 ▼0.57 |
Dashboard /wp-admin | 2,234 ▲43 | 5.86 ▲0.98 | 102.67 ▲1.40 | 83.10 ▲41.04 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▼0.04 | 38.08 ▲0.23 | 33.98 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,693 ▲165 | 22.03 ▲3.71 | 747.58 ▲69.16 | 54.24 ▼14.86 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.18 ▼0.11 | 97.91 ▼5.11 | 76.78 ▲31.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method DC_Woo_Smart_Collection::deactivate_dc_Woo_Smart_Collection() should not be called statically
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- dc_dc_WC_SC_general_settings_name
- widget_theysaidso_widget
- db_upgraded
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 29 tag instead of maximum 10
woocommerce-smart-collection/Woo_Smart_Collection.php 92% from 13 tests
Analyzing the main PHP file in "WooCommerce Smart Collection" version 1.0.13
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-smart-collection.php" instead of "Woo_Smart_Collection.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 plugin1,364 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 292 | 264 | 1,103 |
JavaScript | 4 | 14 | 1 | 157 |
CSS | 3 | 9 | 1 | 65 |
PO File | 1 | 11 | 14 | 39 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 35.43 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/placeholder.png | 2.75KB | 2.92KB | 0.00% |
lib/jquery/upload/images/Placeholder.png | 4.94KB | 2.59KB | ▼ 47.59% |
assets/images/fpd/grid.png | 2.69KB | 0.13KB | ▼ 95.17% |
assets/images/dualcube_logo.png | 3.86KB | 3.47KB | ▼ 9.97% |
(invalid) assets/images/question_mark.png | 0.86KB | 0.00KB | ▼ 100.00% |