Benchmarks
Plugin footprint 83% from 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.26MB] [CPU: ▼5.34ms] Passed 4 tests
A check of server-side resources used by Styler for WPForms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 44.28 ▲1.03 |
Dashboard /wp-admin | 3.57 ▲0.27 | 48.46 ▼3.08 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 48.78 ▲2.90 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 83.12 ▼16.64 |
Media Library /wp-admin/upload.php | 3.49 ▲0.27 | 33.22 ▼2.67 |
Add-Ons /wp-admin/admin.php?page=sfwf-addons | 3.46 | 29.66 |
Licenses /wp-admin/admin.php?page=sfwf_licenses | 3.46 | 33.08 |
Documentation /wp-admin/admin.php?page=sfwf-documentation | 3.46 | 29.93 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: no new tables, 8 new options
New WordPress options |
---|
sfwf_reviews_installed_on |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
sfwf_licenses |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Styler for WPForms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.33 ▼1.02 | 2.10 ▲0.40 | 43.37 ▼5.36 |
Dashboard /wp-admin | 2,239 ▲54 | 5.87 ▲0.95 | 114.21 ▲4.88 | 41.45 ▼4.21 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.04 ▲0.05 | 35.61 ▼3.85 | 36.20 ▲3.89 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 22.92 ▼0.12 | 716.76 ▲71.73 | 52.95 ▲1.69 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.22 ▲0.05 | 94.36 ▼1.69 | 41.03 ▼0.04 |
Add-Ons /wp-admin/admin.php?page=sfwf-addons | 922 | 2.13 | 25.00 | 32.36 |
Licenses /wp-admin/admin.php?page=sfwf_licenses | 809 | 2.06 | 29.35 | 26.65 |
Documentation /wp-admin/admin.php?page=sfwf-documentation | 1,133 | 2.19 | 26.19 | 51.22 |
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
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- sfwf_licenses
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- sfwf_reviews_installed_on
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/styler-for-wpforms/helpers/customizer-controls/custom-controls.php
- > /wp-content/plugins/styler-for-wpforms/styler-for-wpforms.php
- 59× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-wpforms/includes/section-break-title.php:3
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-wpforms/includes/field-descriptions.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/styler-for-wpforms/helpers/customizer-controls/tab-text-input.php:2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-wpforms/includes/checkbox-inputs.php on line 3
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-wpforms/includes/text-fields.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/styler-for-wpforms/admin-menu/addons.php:88
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-wpforms/includes/dropdown-fields.php:3
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/styler-for-wpforms/includes/confirmation-message.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-wpforms/includes/form-wrapper.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/styler-for-wpforms/includes/form-title.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wpforms designer, wpforms templates, wpforms css, wpforms themes, wpforms styler
styler-for-wpforms/styler-for-wpforms.php Passed 13 tests
The main PHP file in "Styler for WPForms" ver. 2.0.5 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
Create beautiful styles for your WPForms
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin11,762 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 963 | 550 | 8,483 |
JavaScript | 5 | 332 | 446 | 2,261 |
CSS | 4 | 175 | 126 | 1,018 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 16 | 20.51% |
▷ Public methods | 75 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.85% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
28 PNG files occupy 1.04MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
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/theme.png | 2.27KB | 1.61KB | ▼ 29.31% |
css/images/addons/tooltips.png | 33.91KB | 5.77KB | ▼ 82.99% |
css/images/inactive.png | 1.58KB | 1.32KB | ▼ 16.60% |