Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼144.87ms] Passed 4 tests
This is a short check of server-side resources used by Gravity Forms Coupons: Exclude Shipping
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 30.10 ▲2.73 |
Dashboard /wp-admin | 3.07 ▲0.02 | 46.42 ▲10.39 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 41.74 ▼3.98 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 86.02 ▼576.26 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 37.57 ▼1.95 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Gravity Forms Coupons: Exclude Shipping: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.92 ▲0.27 | 9.87 ▼0.11 | 50.33 ▲2.93 |
Dashboard /wp-admin | 2,973 ▲42 | 5.98 ▼0.11 | 154.83 ▲2.83 | 117.38 ▲6.96 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.02 | 70.96 ▲5.02 | 94.04 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,672 ▼2,034 | 18.94 ▼0.35 | 407.17 ▼73.81 | 109.13 ▼0.25 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.02 | 151.59 ▼3.17 | 118.89 ▲2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-coupons-exclude-shipping/gw-gravity-forms-coupons-exclude-shipping.php:34
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: shipping, gravity forms, coupons, discount
gravity-forms-coupons-exclude-shipping/gw-gravity-forms-coupons-exclude-shipping.php 77% from 13 tests
The main PHP script in "Gravity Forms Coupons: Exclude Shipping" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gravity-forms-coupons-exclude-shipping.php" instead of "gw-gravity-forms-coupons-exclude-shipping.php")
- Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)
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
There were no executable files found in this plugin76 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 29 | 76 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin