Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼300.62ms] Passed 4 tests
Analyzing server-side resources used by Gravity Forms Quantity Limiter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.20 | 57.13 ▼3.40 |
Dashboard /wp-admin | 3.54 ▲0.13 | 35.30 ▼1.06 |
Posts /wp-admin/edit.php | 3.77 ▲0.13 | 41.93 ▼2.08 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.04 | 95.37 ▼1,195.94 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 29.95 ▲4.66 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravity Forms Quantity Limiter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,749 ▲4 | 15.62 ▲0.41 | 5.83 ▼0.24 | 2.40 ▲0.15 |
Dashboard /wp-admin | 2,878 ▲17 | 6.02 ▼0.16 | 125.87 ▼26.71 | 159.51 ▼23.38 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.24 ▲0.00 | 86.89 ▲22.30 | 142.86 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,690 ▼21 | 20.70 ▲0.05 | 452.12 ▼4.73 | 166.77 ▼29.47 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.48 ▼0.03 | 147.06 ▼5.08 | 194.43 ▼40.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-quantity-limits/gravity-forms-limiter.php:45
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gravity-forms-quantity-limits/gravity-forms-limiter.php on line 43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
gravity-forms-quantity-limits/gravity-forms-limiter.php 92% from 13 tests
The primary PHP file in "Gravity Forms Quantity Limiter" version 0.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gravity-forms-quantity-limits.php" instead of "gravity-forms-limiter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,052 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 261 | 88 | 1,009 |
Markdown | 1 | 22 | 0 | 43 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 33.33 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 39 | 86.67% |
▷ Public methods | 34 | 75.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 24.44% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/active0.png | 0.65KB | 0.61KB | ▼ 5.56% |
images/active1.png | 0.71KB | 0.63KB | ▼ 11.28% |