84% cf7-styler-for-divi

Code Review | Divi Forms Styler - Gravity Forms, Fluent Forms & Contact Form 7

WordPress plugin Divi Forms Styler - Gravity Forms, Fluent Forms & Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: cf7-styler-for-divi
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 5, 2019
  • Latest release: Nov 24, 2023
  • Number of updates: 65
  • Update frequency: every 26.9 days
  • Top authors: divipeople (95.38%)badhonrocks (6.15%)

Code review

54 tests

User reviews

37 reviews

Install metrics

30,000+ active /225,043 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.72ms] Passed 4 tests

A check of server-side resources used by Divi Forms Styler - Gravity Forms, Fluent Forms & Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1334.73 ▼9.10
Dashboard /wp-admin3.43 ▲0.1345.31 ▼3.69
Posts /wp-admin/edit.php3.54 ▲0.1947.59 ▼3.55
Add New Post /wp-admin/post-new.php6.01 ▲0.1282.72 ▼10.52
Media Library /wp-admin/upload.php3.35 ▲0.1240.61 ▲7.70
Divi Forms Styler /wp-admin/admin.php?page=divi-forms-styler3.3234.39

Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
tfs_plugin_current_version
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Divi Forms Styler - Gravity Forms, Fluent Forms & Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲10713.74 ▼0.9027.39 ▲25.5335.91 ▼11.37
Dashboard /wp-admin2,232 ▲555.52 ▲0.0194.80 ▼3.3874.17 ▲28.46
Posts /wp-admin/edit.php2,141 ▲442.09 ▲0.0841.11 ▼0.9234.07 ▼3.87
Add New Post /wp-admin/post-new.php1,572 ▲4619.05 ▼4.11676.68 ▲3.1463.32 ▲5.11
Media Library /wp-admin/upload.php1,437 ▲344.18 ▼0.02103.80 ▲2.5385.51 ▲41.03
Divi Forms Styler /wp-admin/admin.php?page=divi-forms-styler1,03411.20229.80153.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • tfs_plugin_current_version
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(TFS_PLUGIN_PATHincludes/deprecated/cf7-helper.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-styler-for-divi/plugin.php on line 36
    • > PHP Fatal error
      require_once(): Failed opening required 'TFS_PLUGIN_PATHincludes/deprecated/cf7-helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/cf7-styler-for-divi/plugin.php on line 36
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/cf7-styler-for-divi/includes/modules/Base/Base.php:3
    • > PHP Warning
      Use of undefined constant TFS_PLUGIN_PATH - assumed 'TFS_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-styler-for-divi/plugin.php on line 25
    • > PHP Warning
      Use of undefined constant TFS_BASENAME - assumed 'TFS_BASENAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-styler-for-divi/plugin.php on line 25
    • > PHP Warning
      include_once(TFS_PLUGIN_PATHincludes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-styler-for-divi/plugin.php on line 35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cf7-styler-for-divi/includes/special-notices.php:4
    • > PHP Warning
      include_once(): Failed opening 'TFS_PLUGIN_PATHincludes/functions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cf7-styler-for-divi/plugin.php on line 35
    • > PHP Warning
      Use of undefined constant TFS_BASENAME_DIR - assumed 'TFS_BASENAME_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-styler-for-divi/plugin.php on line 25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: divi builder, divi, contact form 7, divi theme, divi modules

cf7-styler-for-divi/cf7-styler.php 85% from 13 tests

This is the main PHP file of "Divi Forms Styler - Gravity Forms, Fluent Forms & Contact Form 7" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-styler-for-divi.php" instead of "cf7-styler.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
No dangerous file extensions were detected3,387 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP12447803,142
CSS3400232
JSON1008
JavaScript4025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.78
▷ Minimum class complexity4.00
▷ Maximum class complexity101.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods94
▷ Static methods2021.28%
▷ Public methods6670.21%
▷ Protected methods22.13%
▷ Private methods2627.66%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants15
▷ Global constants640.00%
▷ Class constants960.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin