90% sugar-event-calendar-gravity-forms

Code Review | Sugar Calendar - Gravity Forms Bridge

WordPress plugin Sugar Calendar - Gravity Forms Bridge scored90%from 54 tests.

About plugin

  • Plugin page: sugar-event-calen...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.6
  • WordPress version: 6.3.1
  • First release: Jul 11, 2012
  • Latest release: Aug 16, 2020
  • Number of updates: 14
  • Update frequency: every 211.3 days
  • Top authors: johnjamesjacoby (64.29%)mordauk (42.86%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /5,720 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Sugar Calendar - Gravity Forms Bridge
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.98 ▲0.41
Dashboard /wp-admin3.31 ▲0.0144.25 ▼2.55
Posts /wp-admin/edit.php3.36 ▲0.0045.11 ▼3.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.43 ▼11.37
Media Library /wp-admin/upload.php3.23 ▲0.0038.55 ▲2.98

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sugar Calendar - Gravity Forms Bridge
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.331.79 ▲0.2137.78 ▼1.94
Dashboard /wp-admin2,192 ▲145.63 ▼0.1292.19 ▼11.6838.76 ▼11.53
Posts /wp-admin/edit.php2,097 ▼61.99 ▲0.0040.23 ▲0.4839.34 ▲2.23
Add New Post /wp-admin/post-new.php1,529 ▲323.40 ▲0.24644.80 ▼8.0762.77 ▲5.28
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.03100.13 ▼7.0041.74 ▼5.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: gravity forms, events

sugar-event-calendar-gravity-forms/sugar-events-gravity-forms.php 92% from 13 tests

This is the main PHP file of "Sugar Calendar - Gravity Forms Bridge" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sugar-event-calendar-gravity-forms.php" instead of "sugar-events-gravity-forms.php")

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
Everything looks great! No dangerous files found in this plugin82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1415182

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions4
▷ Named functions4100.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