Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▲0.31ms] Passed 4 tests
An overview of server-side resources used by BSK Forms Validation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 47.82 ▲10.37 |
Dashboard /wp-admin | 3.94 ▲0.63 | 51.95 ▼1.17 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 51.90 ▲5.40 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 86.04 ▼10.95 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 41.19 ▲7.98 |
Settings /wp-admin/admin.php?page=bsk-forms-cv-settings | 3.80 | 47.28 |
Validaiton List /wp-admin/admin.php?page=bsk-forms-cv | 3.77 | 36.87 |
Blocked form data /wp-admin/admin.php?page=bsk-forms-cv-blocked-data | 3.77 | 37.96 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_bsk_gfcv_items |
wp_bsk_gfcv_list |
wp_bsk_gfcv_hits |
wp_bsk_gfcv_entries |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
_bsk_gfcv_db_ver_ |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
BSK Forms Validation: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲167 | 13.48 ▼0.87 | 8.99 ▲7.29 | 42.56 ▼2.84 |
Dashboard /wp-admin | 2,227 ▲47 | 5.81 ▲0.14 | 88.51 ▲0.16 | 37.03 ▼6.51 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 2.01 ▼0.11 | 39.98 ▲2.14 | 36.42 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 22.90 ▼0.30 | 633.89 ▲12.22 | 51.00 ▼14.54 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.31 ▲0.15 | 104.98 ▲2.32 | 43.46 ▼1.85 |
Settings /wp-admin/admin.php?page=bsk-forms-cv-settings | 1,509 | 5.85 | 112.67 | 29.32 |
Validaiton List /wp-admin/admin.php?page=bsk-forms-cv | 988 | 2.09 | 24.91 | 36.89 |
Blocked form data /wp-admin/admin.php?page=bsk-forms-cv-blocked-data | 1,038 | 2.08 | 23.69 | 32.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method BSK_GFCV::bsk_gfcv_uninstall() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bsk-gravity-forms-custom-validation/classes/dashboard/items.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bsk-gravity-forms-custom-validation/classes/dashboard/entries.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bsk-gravity-forms-custom-validation/classes/dashboard/lists.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bsk-gravity-forms-custom-validation/classes/dashboard/items.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bsk-gravity-forms-custom-validation/classes/dashboard/lists.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bsk-gravity-forms-custom-validation/classes/dashboard/lists.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bsk-gravity-forms-custom-validation/classes/dashboard/entries.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bsk-gravity-forms-custom-validation/classes/dashboard/entries.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bsk-gravity-forms-custom-validation/classes/dashboard/items.php on line 4
- > PHP Warning
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 90% 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:
- Screenshots: These screenshots require images: #1 (Menu item in Dashboard), #2 (Add rule to list), #3 (Apply validation list to Gravity Forms form field)
bsk-gravity-forms-custom-validation/bsk-gravityforms-cv.php 85% from 13 tests
The primary PHP file in "BSK Forms Validation" version 1.6.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bsk-gravity-forms-custom-validation.php" instead of "bsk-gravityforms-cv.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
Success! There were no dangerous files found in this plugin4,043 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 686 | 157 | 3,565 |
CSS | 1 | 58 | 14 | 268 |
JavaScript | 2 | 61 | 19 | 210 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 31.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 6.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 17 | 15.04% |
▷ Public methods | 111 | 98.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.77% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.31MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 91.48KB | 31.86KB | ▼ 65.17% |
screenshot-1.png | 36.80KB | 12.85KB | ▼ 65.09% |
images/active0.png | 14.99KB | 1.11KB | ▼ 92.58% |
images/active1.png | 15.01KB | 1.06KB | ▼ 92.96% |
images/delete-2.png | 1.45KB | 0.28KB | ▼ 80.89% |