84% gf-divi

Code Review | Divi Styling Add-On for Gravity Forms

WordPress plugin Divi Styling Add-On for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-divi
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5
  • WordPress version: 6.3.1
  • First release: Apr 28, 2016
  • Latest release: Apr 29, 2016
  • Number of updates: 117
  • Update frequency: every 0.0 days
  • Top authors: divispace (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /10,638 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.21ms] Passed 4 tests

An overview of server-side resources used by Divi Styling Add-On for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.96 ▼0.31
Dashboard /wp-admin3.32 ▼0.0343.55 ▼9.98
Posts /wp-admin/edit.php3.37 ▲0.0144.22 ▲2.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.04 ▼5.34
Media Library /wp-admin/upload.php3.25 ▲0.0137.64 ▲7.85

Server storage [IO: ▲0.02MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Divi Styling Add-On for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.32 ▼1.111.68 ▼0.0442.26 ▲2.67
Dashboard /wp-admin2,203 ▲155.83 ▲0.9299.05 ▼19.5142.21 ▼2.83
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0536.07 ▲1.4031.53 ▼0.78
Add New Post /wp-admin/post-new.php1,533 ▲1123.22 ▲0.17660.09 ▲9.2852.85 ▲4.34
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0099.25 ▲3.2045.14 ▲4.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gf-divi/gf-divi.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: divi, extra, extra theme, gravityforms, divi gravityforms...

gf-divi/gf-divi.php 92% from 13 tests

"Divi Styling Add-On for Gravity Forms" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected289 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
LESS3350223
PO File171833
PHP141532
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin