78% styler-for-wpforms

Code Review | Styler for WPForms

WordPress plugin Styler for WPForms scored78%from 54 tests.

About plugin

  • Plugin page: styler-for-wpforms
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 24, 2017
  • Latest release: Oct 2, 2023
  • Number of updates: 25
  • Update frequency: every 95.2 days
  • Top authors: wpmonks (100%)

Code review

54 tests

User reviews

102 reviews

Install metrics

30,000+ active /198,503 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2644.28 ▲1.03
Dashboard /wp-admin3.57 ▲0.2748.46 ▼3.08
Posts /wp-admin/edit.php3.68 ▲0.3348.78 ▲2.90
Add New Post /wp-admin/post-new.php6.15 ▲0.2783.12 ▼16.64
Media Library /wp-admin/upload.php3.49 ▲0.2733.22 ▼2.67
Add-Ons /wp-admin/admin.php?page=sfwf-addons3.4629.66
Licenses /wp-admin/admin.php?page=sfwf_licenses3.4633.08
Documentation /wp-admin/admin.php?page=sfwf-documentation3.4629.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.33 ▼1.022.10 ▲0.4043.37 ▼5.36
Dashboard /wp-admin2,239 ▲545.87 ▲0.95114.21 ▲4.8841.45 ▼4.21
Posts /wp-admin/edit.php2,122 ▲332.04 ▲0.0535.61 ▼3.8536.20 ▲3.89
Add New Post /wp-admin/post-new.php1,556 ▲2322.92 ▼0.12716.76 ▲71.7352.95 ▲1.69
Media Library /wp-admin/upload.php1,418 ▲304.22 ▲0.0594.36 ▼1.6941.03 ▼0.04
Add-Ons /wp-admin/admin.php?page=sfwf-addons9222.1325.0032.36
Licenses /wp-admin/admin.php?page=sfwf_licenses8092.0629.3526.65
Documentation /wp-admin/admin.php?page=sfwf-documentation1,1332.1926.1951.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP439635508,483
JavaScript53324462,261
CSS41751261,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 code0.26
Average class complexity9.48
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods78
▷ Static methods1620.51%
▷ Public methods7596.15%
▷ Protected methods00.00%
▷ Private methods33.85%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants337.50%
▷ Class constants562.50%
▷ Public constants5100.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
FileSize - originalSize - compressedSavings
css/images/welcome/gird-layout.png0.53KB0.28KB▼ 46.38%
css/images/welcome/cs-theme.png2.43KB1.61KB▼ 33.53%
css/images/welcome/theme.png2.27KB1.61KB▼ 29.31%
css/images/addons/tooltips.png33.91KB5.77KB▼ 82.99%
css/images/inactive.png1.58KB1.32KB▼ 16.60%