84% surbma-divi-gravity-forms

Code Review | Surbma | Divi & Gravity Forms

WordPress plugin Surbma | Divi & Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: surbma-divi-gravi...
  • Plugin version: 5.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Feb 24, 2015
  • Latest release: Apr 8, 2023
  • Number of updates: 73
  • Update frequency: every 40.6 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

10,000+ active /165,453 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Surbma | Divi & Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.05 ▼3.25
Dashboard /wp-admin3.31 ▲0.0142.81 ▼3.00
Posts /wp-admin/edit.php3.36 ▲0.0047.07 ▲3.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0076.81 ▼21.58
Media Library /wp-admin/upload.php3.23 ▲0.0037.38 ▲4.36

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Surbma | Divi & Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.121.59 ▼0.0537.56 ▼2.86
Dashboard /wp-admin2,195 ▲185.61 ▲0.0293.18 ▲7.5041.46 ▼1.63
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0238.75 ▲3.1435.50 ▲0.56
Add New Post /wp-admin/post-new.php1,535 ▲918.54 ▼4.94616.82 ▼73.8770.06 ▲11.70
Media Library /wp-admin/upload.php1,400 ▲34.22 ▼0.0193.89 ▼13.6238.91 ▼9.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/surbma-divi-gravity-forms/surbma-divi-gravity-forms.php

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

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: gravityforms, gravity forms, divi

surbma-divi-gravity-forms/surbma-divi-gravity-forms.php Passed 13 tests

Analyzing the main PHP file in "Surbma | Divi & Gravity Forms" version 5.1
35 characters long description:
Divi form styles for Gravity Forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin285 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
LESS5372173
PHP1251475
PO File171833
Markdown1103
CSS1011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
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 functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin