94% gravity-forms-sisyphus

Code Review | Gravity Forms Sisyphus

WordPress plugin Gravity Forms Sisyphus scored 94% from 54 tests.

About plugin

  • Plugin page: gravity-forms-sis...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 5.8.1
  • First release: May 15, 2013
  • Latest release: Jan 2, 2014
  • Number of updates: 8
  • Update frequency: every 29.0 days
  • Top authors: benhays (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 2,538 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Gravity Forms Sisyphus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.72 ▲10.62
Dashboard /wp-admin3.06 ▲0.0144.45 ▲0.82
Posts /wp-admin/edit.php3.11 ▼0.0038.14 ▼14.24
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.86 ▼549.87
Media Library /wp-admin/upload.php3.01 ▲0.0030.07 ▼0.46

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms Sisyphus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲5616.00 ▲0.299.20 ▼0.0444.80 ▼7.81
Dashboard /wp-admin2,967 ▲305.94 ▼0.22136.89 ▼5.32114.99 ▼2.28
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0072.24 ▲11.4190.02 ▲4.44
Add New Post /wp-admin/post-new.php1,872 ▲37219.16 ▲0.59367.15 ▼6.91112.54 ▲8.48
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.02141.52 ▼0.14121.85 ▲2.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-sisyphus/gravity-forms-sisyphus.php:30

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

gravity-forms-sisyphus/gravity-forms-sisyphus.php 92% from 13 tests

The principal PHP file in "Gravity Forms Sisyphus" v. 2.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 153 characters long)

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
There were no executable files found in this plugin557 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript350139363
PHP13727141
Markdown113029
JSON10024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods1191.67%
▷ Public methods866.67%
▷ Protected methods00.00%
▷ Private methods433.33%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin