Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.53ms] Passed 4 tests
Analyzing server-side resources used by Cart Limiter For WooCommerce, Min - Max Quantity Limits
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.80 ▼7.40 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.68 ▼1.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.76 ▼1.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.42 ▲3.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.09 ▲0.28 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Cart Limiter For WooCommerce, Min - Max Quantity Limits
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.26 ▼1.49 | 1.57 ▼0.73 | 38.17 ▼11.44 |
Dashboard /wp-admin | 2,209 ▲21 | 5.85 ▲0.94 | 99.29 ▼16.80 | 39.88 ▼3.04 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 34.27 ▼5.51 | 34.07 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.46 ▼4.77 | 606.61 ▼66.16 | 59.16 ▲2.88 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.25 ▲0.05 | 99.19 ▼4.97 | 41.59 ▼1.87 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Parse error
syntax error, unexpected '=>' (T_DOUBLE_ARROW) in wp-content/plugins/cart-limiter/includes/utils/LimiterUtils.php on line 77
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WWCLR\\Base' not found in wp-content/plugins/cart-limiter/includes/settings/settingsFields/FieldBase.php:11
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in cart-limiter/assets to your readme.txt
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
cart-limiter/gpls-wwclr-woo-cart-limiter.php 92% from 13 tests
This is the main PHP file of "Cart Limiter For WooCommerce, Min - Max Quantity Limits" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("cart-limiter.php" instead of "gpls-wwclr-woo-cart-limiter.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 plugin4,025 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 675 | 2,051 | 4,016 |
CSS | 5 | 0 | 5 | 5 |
JavaScript | 4 | 0 | 6 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 5 | |
Classes | 23 | |
▷ Abstract classes | 3 | 13.04% |
▷ Concrete classes | 20 | 86.96% |
▷ Final classes | 0 | 0.00% |
Methods | 264 | |
▷ Static methods | 42 | 15.91% |
▷ Public methods | 167 | 63.26% |
▷ Protected methods | 31 | 11.74% |
▷ Private methods | 66 | 25.00% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/dist/images/logo-icon-lg.png | 3.56KB | 2.72KB | ▼ 23.62% |
core/assets/dist/images/logo-icon-md.png | 0.91KB | 0.96KB | 0.00% |
core/assets/dist/images/logo-icon-sm.png | 0.62KB | 0.72KB | 0.00% |
core/assets/dist/images/full-logo.png | 6.58KB | 3.86KB | ▼ 41.28% |