Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.32MB] [CPU: ▲4.56ms] Passed 4 tests
This is a short check of server-side resources used by Styles & Layouts for Gravity Forms - Best Gravity Forms Styler, Designer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 43.99 ▲5.46 |
Dashboard /wp-admin | 3.63 ▲0.33 | 55.27 ▲5.66 |
Posts /wp-admin/edit.php | 3.74 ▲0.39 | 52.25 ▲4.36 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 109.12 ▲10.45 |
Media Library /wp-admin/upload.php | 3.55 ▲0.33 | 37.16 ▲2.77 |
Add-Ons /wp-admin/admin.php?page=stla-addons | 3.52 | 33.76 |
Licenses /wp-admin/admin.php?page=stla_licenses | 3.52 | 33.69 |
Documentation /wp-admin/admin.php?page=stla-documentation | 3.52 | 31.65 |
Server storage [IO: ▲7.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 105 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
stla_licenses |
widget_recent-comments |
gf_stla_reviews_installed_on |
Browser metrics Passed 4 tests
A check of browser resources used by Styles & Layouts for Gravity Forms - Best Gravity Forms Styler, Designer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 14.81 ▲0.23 | 1.85 ▲0.25 | 42.77 ▲4.85 |
Dashboard /wp-admin | 2,248 ▲60 | 5.90 ▲0.82 | 106.54 ▼4.86 | 40.74 ▼0.24 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 2.04 ▲0.03 | 40.38 ▼2.60 | 35.51 ▼3.29 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.56 ▲0.14 | 625.45 ▼19.80 | 53.65 ▼8.97 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.22 ▲0.01 | 100.15 ▲0.37 | 44.37 ▲0.32 |
Add-Ons /wp-admin/admin.php?page=stla-addons | 1,001 | 2.17 | 27.07 | 31.08 |
Licenses /wp-admin/admin.php?page=stla_licenses | 815 | 2.03 | 25.98 | 26.25 |
Documentation /wp-admin/admin.php?page=stla-documentation | 1,179 | 2.03 | 22.77 | 47.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- widget_theysaidso_widget
- stla_licenses
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- gf_stla_reviews_installed_on
Smoke tests 25% 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 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/styles-and-layouts-for-gravity-forms/styles-layouts-gravity-forms.php
- 59× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styles-and-layouts-for-gravity-forms/includes/section-break-title.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/styles-and-layouts-for-gravity-forms/admin-menu/licenses.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/styles-and-layouts-for-gravity-forms/helpers/customizer-controls/desktop-text-input.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styles-and-layouts-for-gravity-forms/includes/radio-inputs.php:3
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styles-and-layouts-for-gravity-forms/includes/section-break-title.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/styles-and-layouts-for-gravity-forms/helpers/customizer-controls/mobile-text-input.php:2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styles-and-layouts-for-gravity-forms/includes/general-settings.php on line 2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styles-and-layouts-for-gravity-forms/includes/placeholders.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styles-and-layouts-for-gravity-forms/includes/general-settings.php:2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styles-and-layouts-for-gravity-forms/includes/field-descriptions.php on line 5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=stla-documentation
- > Network (severe)
wp-content/plugins/styles-and-layouts-for-gravity-forms/css/images/welcome/material.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: gravity forms design, gravity forms themes, gravity forms css, gravity forms material design, gravity forms styler...
styles-and-layouts-for-gravity-forms/styles-layouts-gravity-forms.php 92% from 13 tests
The main PHP file in "Styles & Layouts for Gravity Forms - Best Gravity Forms Styler, Designer" ver. 4.3.11 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("styles-and-layouts-for-gravity-forms.php" instead of "styles-layouts-gravity-forms.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 plugin11,390 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 1,256 | 1,605 | 8,418 |
JavaScript | 5 | 520 | 183 | 2,349 |
CSS | 3 | 135 | 94 | 623 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 15 | 17.44% |
▷ Public methods | 77 | 89.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 10.47% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
29 PNG files occupy 5.32MB with 1.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/style&layoutlogo.png | 18.37KB | 5.60KB | ▼ 69.53% |
css/images/welcome/preview.png | 2.17KB | 1.51KB | ▼ 30.48% |
css/images/welcome/gird-layout.png | 0.53KB | 0.28KB | ▼ 46.38% |
css/images/welcome/cs-theme.png | 2.43KB | 1.61KB | ▼ 33.53% |
css/images/welcome/tooltip.png | 1.88KB | 1.84KB | ▼ 2.23% |