Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/wpc-smart-product-collections/includes/class-helper.php+13
Uncaught Error: Call to undefined function as_next_scheduled_action() in wp-content/plugins/wpc-smart-product-collections/includes/class-helper.php:13
Stack trace:
#0 wp-includes/class-wp-hook.php(310): Wpcpc_Helper->register_schedule()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.50ms] Passed 4 tests
Server-side resources used by WPC Smart Product Collections for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.83 ▲4.82 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.57 ▼20.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.77 ▼3.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.17 ▼19.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.22 ▲2.19 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/wpc-smart-product-collections/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WPC Smart Product Collections for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.73 ▲0.36 | 1.91 ▲0.13 | 43.46 ▼0.20 |
Dashboard /wp-admin | 2,224 ▲17 | 4.85 ▼0.13 | 108.19 ▼6.06 | 43.65 ▼1.03 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 39.50 ▼1.37 | 37.06 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,549 ▲17 | 23.41 ▲0.14 | 602.16 ▼13.21 | 54.08 ▼7.64 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.24 ▲0.02 | 100.15 ▼1.10 | 45.23 ▼1.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #1 is required in wpc-smart-product-collections/assets to your readme.txt
wpc-smart-product-collections/wpc-smart-product-collections.php Passed 13 tests
The primary PHP file in "WPC Smart Product Collections for WooCommerce" version 1.0.7 is used by WordPress to initiate all plugin functionality
86 characters long description:
WPC Smart Product Collections allows you to manage product collections in the easiest.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,166 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 211 | 50 | 1,399 |
CSS | 4 | 108 | 8 | 578 |
JavaScript | 3 | 28 | 5 | 160 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 42.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 3 | 5.36% |
▷ Public methods | 56 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
There are no PNG files in this plugin