Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/woocollections-for-woocommerce/init.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; woo_collection has a deprecated constructor
Server metrics [RAM: ▼2.39MB] [CPU: ▼351.04ms] Passed 4 tests
Analyzing server-side resources used by WooCollections for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.98 ▼1.54 | 4.57 ▼46.09 |
Dashboard /wp-admin | 1.99 ▼1.41 | 4.15 ▼32.36 |
Posts /wp-admin/edit.php | 2.00 ▼1.64 | 4.26 ▼31.48 |
Add New Post /wp-admin/post-new.php | 1.99 ▼4.97 | 4.05 ▼1,294.24 |
Media Library /wp-admin/upload.php | 1.99 ▼1.30 | 3.91 ▼19.82 |
Widgets /wp-admin/widgets.php | 2.00 | 4.27 |
Menus /wp-admin/nav-menus.php | 2.13 | 4.45 |
All Collections /wp-admin/edit.php?post_type=woo_collection | 2.00 | 4.41 |
Add New /wp-admin/post-new.php?post_type=woo_collection | 2.00 | 3.95 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WooCollections for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,978 ▲224 | 16.32 ▲0.61 | 11.45 ▲5.21 | 2.66 ▲0.16 |
Dashboard /wp-admin | 2,937 ▲76 | 6.05 ▼0.12 | 117.29 ▼25.47 | 157.45 ▼7.39 |
Posts /wp-admin/edit.php | 2,738 ▲44 | 3.23 ▼0.01 | 64.48 ▼0.28 | 140.49 ▼4.71 |
Add New Post /wp-admin/post-new.php | 1,787 ▲126 | 21.41 ▲4.79 | 456.76 ▲31.34 | 155.48 ▲0.37 |
Media Library /wp-admin/upload.php | 1,741 ▲43 | 5.51 ▼0.01 | 144.73 ▲2.25 | 188.56 ▲1.62 |
Widgets /wp-admin/widgets.php | 2,510 | 23.76 | 527.19 | 129.83 |
Menus /wp-admin/nav-menus.php | 2,321 | 3.31 | 80.38 | 127.68 |
All Collections /wp-admin/edit.php?post_type=woo_collection | 1,421 | 2.92 | 60.17 | 113.56 |
Add New /wp-admin/post-new.php?post_type=woo_collection | 2,832 | 10.08 | 181.71 | 203.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/woocollections-for-woocommerce/init.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; woo_collection has a deprecated constructor
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 19 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=woo_collection
- > Deprecated in wp-content/plugins/woocollections-for-woocommerce/init.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; woo_collection has a deprecated constructor
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
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocollections-for-woocommerce/init.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woocollections-for-woocommerce/woocollections-for-woocommerce.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocollections-for-woocommerce/includes/um-setup.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocollections-for-woocommerce/includes/bp-setup.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (**Collection Link** - Clickable link to open Collection Modal), #2 (**Collection Modal** - Area where a user can edit and remove a product from their collection as well as create a new Collection), #3 (**User's Collection** - A list of a user's collection)
woocollections-for-woocommerce/woocollections-for-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "WooCollections for WooCommerce" version 1.0.1
80 characters long description:
Adds the ability for users to create collections of items and share with friends
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin973 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 29 | 147 | 433 |
JavaScript | 2 | 44 | 37 | 353 |
CSS | 3 | 8 | 12 | 111 |
PO File | 1 | 30 | 31 | 76 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin