68% cf7-grid-and-styler-for-divi

Code Review | Grid & Styler For Contact Form 7 And Divi

WordPress plugin Grid & Styler For Contact Form 7 And Divi scored 68% from 54 tests.

About plugin

  • Plugin page: cf7-grid-and-styl...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.1
  • WordPress version: 5.8.1
  • First release: Mar 30, 2020
  • Latest release: Apr 24, 2021
  • Number of updates: 8
  • Update frequency: every 49.5 days
  • Top authors: wpt00ls (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,206 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.73MB] [CPU: ▼117.24ms] Passed 4 tests

This is a short check of server-side resources used by Grid & Styler For Contact Form 7 And Divi
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.27 ▲5.5560.77 ▲39.25
Dashboard /wp-admin8.29 ▲5.2469.68 ▲24.75
Posts /wp-admin/edit.php8.29 ▲5.1965.55 ▲22.39
Add New Post /wp-admin/post-new.php8.62 ▲3.19110.11 ▼540.82
Media Library /wp-admin/upload.php8.29 ▲5.2958.27 ▲24.71
Contact Form 7 For Divi /wp-admin/admin.php?page=cf7-grid-and-styler-for-divi8.2949.48
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius8.2953.07

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 242 new files
Database: no new tables, 4 new options
New WordPress options
fs_accounts
fs_active_plugins
fs_debug_mode
fs_gdpr

Browser metrics Passed 4 tests

An overview of browser requirements for Grid & Styler For Contact Form 7 And Divi
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,734 ▲13816.01 ▲0.479.25 ▼2.0142.37 ▼7.71
Dashboard /wp-admin2,998 ▲646.13 ▲0.04137.75 ▼29.85123.78 ▲7.96
Posts /wp-admin/edit.php2,772 ▲332.74 ▲0.0170.25 ▲9.5698.45 ▲4.47
Add New Post /wp-admin/post-new.php1,625 ▼5821.53 ▲2.82265.80 ▼93.58106.78 ▼9.47
Media Library /wp-admin/upload.php1,761 ▲105.03 ▲0.06149.93 ▼8.67132.52 ▲15.39
Contact Form 7 For Divi /wp-admin/admin.php?page=cf7-grid-and-styler-for-divi1,3722.1657.76108.63
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius1,4902.1056.2575.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/cf7-grid-and-styler-for-divi/freemius/includes/class-freemius.php+8552
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 4 options in the database
    • fs_accounts
    • fs_debug_mode
    • fs_active_plugins
    • fs_gdpr

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cf7-grid-and-styler-for-divi/resources/views/admin_menu/sub_menu.php
    • > /wp-content/plugins/cf7-grid-and-styler-for-divi/freemius/templates/ajax-loader.php
  • 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Pimple\\Container' not found in wp-content/plugins/cf7-grid-and-styler-for-divi/includes/classes/Loader.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cf7-grid-and-styler-for-divi/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/cf7-grid-and-styler-for-divi/resources/views/shortcodes/one_fourth.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/cf7-grid-and-styler-for-divi/vendor/pimple/pimple/src/Pimple/Exception/ExpectedInvokableException.php:36
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/cf7-grid-and-styler-for-divi/vendor/pimple/pimple/src/Pimple/Psr11/Container.php:37
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/cf7-grid-and-styler-for-divi/vendor/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/cf7-grid-and-styler-for-divi/resources/views/shortcodes/two_third.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/cf7-grid-and-styler-for-divi/resources/views/shortcodes/one_third.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/cf7-grid-and-styler-for-divi/includes/modules/WptContactForm7/WptContactForm7.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/cf7-grid-and-styler-for-divi/includes/WptCf7Divi.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
The official readme.txt is a good inspiration

cf7-grid-and-styler-for-divi/cf7-grid-and-styler-for-divi.php Passed 13 tests

Analyzing the main PHP file in "Grid & Styler For Contact Form 7 And Divi" version 1.3.0
45 characters long description:
Grid Builder & Divi Styler for Contact Form 7

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected32,901 lines of code in 192 files:
LanguageFilesBlank linesComment linesLines of code
PHP1597,72716,92932,301
JavaScript104969280
JSON300164
reStructuredText19613997
CSS161020
XML12016
YAML14015
Markdown1508

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity55.29
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.46
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces11
Interfaces4
Traits0
Classes74
▷ Abstract classes22.70%
▷ Concrete classes7297.30%
▷ Final classes22.78%
Methods1,260
▷ Static methods18915.00%
▷ Public methods91872.86%
▷ Protected methods151.19%
▷ Private methods32725.95%
Functions111
▷ Named functions9686.49%
▷ Anonymous functions1513.51%
Constants123
▷ Global constants9879.67%
▷ Class constants2520.33%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/cf7-grid-and-styler-for-divi.png13.87KB5.76KB▼ 58.49%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%