84% surbma-datepicker-localization-for-gravity-forms

Code Review | Surbma | Datepicker localization for Gravity Forms

WordPress plugin Surbma | Datepicker localization for Gravity Forms scored 84% from 54 tests.

About plugin

  • Plugin page: surbma-datepicker...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Nov 26, 2014
  • Latest release: Apr 8, 2023
  • Number of updates: 26
  • Update frequency: every 117.5 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 2,748 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Surbma | Datepicker localization for Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.19 ▼1.25
Dashboard /wp-admin3.31 ▲0.0144.24 ▼3.94
Posts /wp-admin/edit.php3.36 ▲0.0045.67 ▼6.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.68 ▼19.74
Media Library /wp-admin/upload.php3.23 ▲0.0035.29 ▲2.91

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

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

Browser metrics Passed 4 tests

Surbma | Datepicker localization for Gravity Forms: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.124.48 ▲2.6745.35 ▲1.69
Dashboard /wp-admin2,209 ▲215.86 ▼0.0395.70 ▼3.5539.53 ▼8.50
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0334.20 ▼7.6234.47 ▼5.54
Add New Post /wp-admin/post-new.php1,528 ▼623.08 ▼0.17674.03 ▲1.3157.70 ▼10.42
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0898.53 ▼2.3944.02 ▼7.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/surbma-datepicker-localization-for-gravity-forms/surbma-datepicker-localization-for-gravity-forms.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: datepicker, localization, gravityforms, gravity forms

surbma-datepicker-localization-for-gravity-forms/surbma-datepicker-localization-for-gravity-forms.php Passed 13 tests

The main PHP file in "Surbma | Datepicker localization for Gravity Forms" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Localize the Datepicker field with this plugin's automatic localization.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,841 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript633172581,793
PO File171833
PHP181512
Markdown1103

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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
No PNG images were found in this plugin